ROOT  6.06/09
Reference Guide
TAttMarker.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 12/05/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAttMarker
13 #define ROOT_TAttMarker
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TAttMarker //
19 // //
20 // Marker attributes. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_Rtypes
25 #include "Rtypes.h"
26 #endif
27 #ifndef ROOT_Riosfwd
28 #include "Riosfwd.h"
29 #endif
30 
31 
32 class TAttMarker {
33 
34 protected:
35  Color_t fMarkerColor; //Marker color index
36  Style_t fMarkerStyle; //Marker style
37  Size_t fMarkerSize; //Marker size
38 
39 public:
40  TAttMarker();
41  TAttMarker(Color_t color, Style_t style, Size_t msize);
42  virtual ~TAttMarker();
43  void Copy(TAttMarker &attmarker) const;
44  virtual Color_t GetMarkerColor() const {return fMarkerColor;}
45  virtual Style_t GetMarkerStyle() const {return fMarkerStyle;}
46  virtual Size_t GetMarkerSize() const {return fMarkerSize;}
47  virtual void Modify();
48  virtual void ResetAttMarker(Option_t *toption="");
49  virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
50  virtual void SetMarkerAttributes(); // *MENU*
51  virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;}
52  virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
53  virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;}
54  virtual void SetMarkerSize(Size_t msize=1) { fMarkerSize = msize;}
55 
56  ClassDef(TAttMarker,2); //Marker attributes
57 };
58 
66 
67 #endif
68 
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
Definition: TAttMarker.cxx:191
short Style_t
Definition: RtypesCore.h:76
float Float_t
Definition: RtypesCore.h:53
float Size_t
Definition: RtypesCore.h:83
const char Option_t
Definition: RtypesCore.h:62
Size_t fMarkerSize
Definition: TAttMarker.h:37
virtual void SetMarkerAttributes()
Invoke the DialogCanvas Marker attributes.
Definition: TAttMarker.cxx:246
int Int_t
Definition: RtypesCore.h:41
EMarkerStyle
Definition: TAttMarker.h:59
Marker Attributes class.
Definition: TAttMarker.h:32
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
Set a transparent marker color.
Definition: TAttMarker.cxx:255
virtual void SetMarkerColor(Color_t mcolor=1)
Definition: TAttMarker.h:51
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
Definition: TAttMarker.cxx:226
char * out
Definition: TBase64.cxx:29
short Color_t
Definition: RtypesCore.h:79
Style_t fMarkerStyle
Definition: TAttMarker.h:36
virtual void Modify()
Change current marker attributes if necessary.
Definition: TAttMarker.cxx:201
virtual Size_t GetMarkerSize() const
Definition: TAttMarker.h:46
virtual void SetMarkerStyle(Style_t mstyle=1)
Definition: TAttMarker.h:53
virtual void SetMarkerSize(Size_t msize=1)
Definition: TAttMarker.h:54
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
Definition: TAttMarker.cxx:216
TCanvas * style()
Definition: style.C:1
virtual ~TAttMarker()
TAttMarker destructor.
Definition: TAttMarker.cxx:184
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual Color_t GetMarkerColor() const
Definition: TAttMarker.h:44
ClassDef(TAttMarker, 2)
virtual Style_t GetMarkerStyle() const
Definition: TAttMarker.h:45
Color_t fMarkerColor
Definition: TAttMarker.h:35