Logo ROOT   6.08/07
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 #ifndef ROOT_Rtypes
17 #include "Rtypes.h"
18 #endif
19 #ifndef ROOT_Riosfwd
20 #include "Riosfwd.h"
21 #endif
22 
23 
24 class TAttMarker {
25 
26 protected:
27  Color_t fMarkerColor; ///< Marker color
28  Style_t fMarkerStyle; ///< Marker style
29  Size_t fMarkerSize; ///< Marker size
30 
31 public:
32  TAttMarker();
33  TAttMarker(Color_t color, Style_t style, Size_t msize);
34  virtual ~TAttMarker();
35  void Copy(TAttMarker &attmarker) const;
36  virtual Color_t GetMarkerColor() const {return fMarkerColor;} ///< Return the marker color
37  virtual Style_t GetMarkerStyle() const {return fMarkerStyle;} ///< Return the marker style
38  virtual Size_t GetMarkerSize() const {return fMarkerSize;} ///< Return the marker size
39  virtual void Modify();
40  virtual void ResetAttMarker(Option_t *toption="");
41  virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
42  virtual void SetMarkerAttributes(); // *MENU*
43  virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;} ///< Set the marker color
44  virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
45  virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;} ///< Set the marker style
46  virtual void SetMarkerSize(Size_t msize=1) { fMarkerSize = msize;} ///< Set the marker size
47 
48  ClassDef(TAttMarker,2); //Marker attributes
49 };
50 
58 
59 #endif
60 
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
TAttMarker()
TAttMarker default constructor.
Definition: TAttMarker.cxx:161
Size_t fMarkerSize
Marker size.
Definition: TAttMarker.h:29
virtual void SetMarkerAttributes()
Invoke the DialogCanvas Marker attributes.
Definition: TAttMarker.cxx:249
int Int_t
Definition: RtypesCore.h:41
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
Definition: TAttMarker.cxx:194
EMarkerStyle
Definition: TAttMarker.h:51
virtual Style_t GetMarkerStyle() const
Return the marker style.
Definition: TAttMarker.h:37
Marker Attributes class.
Definition: TAttMarker.h:24
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
Set a transparent marker color.
Definition: TAttMarker.cxx:258
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Definition: TAttMarker.h:43
virtual Size_t GetMarkerSize() const
Return the marker size.
Definition: TAttMarker.h:38
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:229
short Color_t
Definition: RtypesCore.h:79
Style_t fMarkerStyle
Marker style.
Definition: TAttMarker.h:28
virtual void Modify()
Change current marker attributes if necessary.
Definition: TAttMarker.cxx:204
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Definition: TAttMarker.h:45
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Definition: TAttMarker.h:46
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
Definition: TAttMarker.cxx:219
TCanvas * style()
Definition: style.C:1
virtual ~TAttMarker()
TAttMarker destructor.
Definition: TAttMarker.cxx:187
virtual Color_t GetMarkerColor() const
Return the marker color.
Definition: TAttMarker.h:36
Color_t fMarkerColor
Marker color.
Definition: TAttMarker.h:27
char name[80]
Definition: TGX11.cxx:109