Logo ROOT  
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 #include "Rtypes.h"
17 
18 
19 class TAttMarker {
20 
21 protected:
22  Color_t fMarkerColor; ///< Marker color
23  Style_t fMarkerStyle; ///< Marker style
24  Size_t fMarkerSize; ///< Marker size
25 
26 public:
27  TAttMarker();
28  TAttMarker(Color_t color, Style_t style, Size_t msize);
29  virtual ~TAttMarker();
30  void Copy(TAttMarker &attmarker) const;
31  virtual Color_t GetMarkerColor() const {return fMarkerColor;} ///< Return the marker color
32  virtual Style_t GetMarkerStyle() const {return fMarkerStyle;} ///< Return the marker style
33  virtual Size_t GetMarkerSize() const {return fMarkerSize;} ///< Return the marker size
34  virtual void Modify();
35  virtual void ResetAttMarker(Option_t *toption="");
36  virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
37  virtual void SetMarkerAttributes(); // *MENU*
38  virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;} ///< Set the marker color
39  virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
40  virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;} ///< Set the marker style
41  virtual void SetMarkerSize(Size_t msize=1) { fMarkerSize = msize;} ///< Set the marker size
42 
45 
46  ClassDef(TAttMarker,2); //Marker attributes
47 };
48 
63 
64 #endif
65 
kFullStar
@ kFullStar
Definition: TAttMarker.h:54
TAttMarker::SetMarkerSize
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Definition: TAttMarker.h:41
TAttMarker::~TAttMarker
virtual ~TAttMarker()
TAttMarker destructor.
Definition: TAttMarker.cxx:228
kOpenCircle
@ kOpenCircle
Definition: TAttMarker.h:52
EMarkerStyle
EMarkerStyle
Definition: TAttMarker.h:49
Style_t
short Style_t
Definition: RtypesCore.h:80
TAttMarker::SetMarkerColorAlpha
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
Set a transparent marker color.
Definition: TAttMarker.cxx:368
kFullFourTrianglesX
@ kFullFourTrianglesX
Definition: TAttMarker.h:58
Option_t
const char Option_t
Definition: RtypesCore.h:66
kFullCross
@ kFullCross
Definition: TAttMarker.h:55
kOpenCrossX
@ kOpenCrossX
Definition: TAttMarker.h:61
TAttMarker::GetMarkerSize
virtual Size_t GetMarkerSize() const
Return the marker size.
Definition: TAttMarker.h:33
kOpenStar
@ kOpenStar
Definition: TAttMarker.h:54
TAttMarker::GetMarkerLineWidth
static Width_t GetMarkerLineWidth(Style_t style)
Internal helper function that returns the line width of the given marker style (0 = filled marker)
Definition: TAttMarker.cxx:297
TAttMarker::Copy
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
Definition: TAttMarker.cxx:235
kFullFourTrianglesPlus
@ kFullFourTrianglesPlus
Definition: TAttMarker.h:60
Float_t
float Float_t
Definition: RtypesCore.h:57
Int_t
int Int_t
Definition: RtypesCore.h:45
kPlus
@ kPlus
Definition: TAttMarker.h:49
TAttMarker::GetMarkerStyle
virtual Style_t GetMarkerStyle() const
Return the marker style.
Definition: TAttMarker.h:32
Color_t
short Color_t
Definition: RtypesCore.h:83
kOpenTriangleDown
@ kOpenTriangleDown
Definition: TAttMarker.h:54
kFullDoubleDiamond
@ kFullDoubleDiamond
Definition: TAttMarker.h:59
kOpenDiamondCross
@ kOpenDiamondCross
Definition: TAttMarker.h:55
style
TCanvas * style()
Definition: style.C:1
kOpenFourTrianglesX
@ kOpenFourTrianglesX
Definition: TAttMarker.h:58
kOpenFourTrianglesPlus
@ kOpenFourTrianglesPlus
Definition: TAttMarker.h:60
TAttMarker::SaveMarkerAttributes
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:339
kFullCircle
@ kFullCircle
Definition: TAttMarker.h:51
kFullTriangleUp
@ kFullTriangleUp
Definition: TAttMarker.h:51
kCircle
@ kCircle
Definition: TAttMarker.h:49
TAttMarker::SetMarkerColor
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Definition: TAttMarker.h:38
TAttMarker::TAttMarker
TAttMarker()
TAttMarker default constructor.
Definition: TAttMarker.cxx:202
TAttMarker::ResetAttMarker
virtual void ResetAttMarker(Option_t *toption="")
Reset this marker attributes to the default values.
Definition: TAttMarker.cxx:329
kDot
@ kDot
Definition: TAttMarker.h:49
Width_t
short Width_t
Definition: RtypesCore.h:82
kOctagonCross
@ kOctagonCross
Definition: TAttMarker.h:57
TAttMarker::SetMarkerAttributes
virtual void SetMarkerAttributes()
Invoke the DialogCanvas Marker attributes.
Definition: TAttMarker.cxx:359
TAttMarker
Marker Attributes class.
Definition: TAttMarker.h:19
kFullDotSmall
@ kFullDotSmall
Definition: TAttMarker.h:50
TAttMarker::Modify
virtual void Modify()
Change current marker attributes if necessary.
Definition: TAttMarker.cxx:314
kOpenThreeTriangles
@ kOpenThreeTriangles
Definition: TAttMarker.h:56
kStar
@ kStar
Definition: TAttMarker.h:49
TAttMarker::GetMarkerColor
virtual Color_t GetMarkerColor() const
Return the marker color.
Definition: TAttMarker.h:31
kOpenCross
@ kOpenCross
Definition: TAttMarker.h:53
TAttMarker::GetMarkerStyleBase
static Style_t GetMarkerStyleBase(Style_t style)
Internal helper function that returns the corresponding marker style with line width 1 for the given ...
Definition: TAttMarker.cxx:246
kFullSquare
@ kFullSquare
Definition: TAttMarker.h:51
kFullCrossX
@ kFullCrossX
Definition: TAttMarker.h:61
kOpenDoubleDiamond
@ kOpenDoubleDiamond
Definition: TAttMarker.h:59
kFullDotLarge
@ kFullDotLarge
Definition: TAttMarker.h:50
kOpenDiamond
@ kOpenDiamond
Definition: TAttMarker.h:53
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TAttMarker::fMarkerColor
Color_t fMarkerColor
Marker color.
Definition: TAttMarker.h:22
name
char name[80]
Definition: TGX11.cxx:110
kOpenSquare
@ kOpenSquare
Definition: TAttMarker.h:52
TAttMarker::fMarkerStyle
Style_t fMarkerStyle
Marker style.
Definition: TAttMarker.h:23
kFourSquaresPlus
@ kFourSquaresPlus
Definition: TAttMarker.h:62
kOpenSquareDiagonal
@ kOpenSquareDiagonal
Definition: TAttMarker.h:56
kFourSquaresX
@ kFourSquaresX
Definition: TAttMarker.h:61
TAttMarker::SetMarkerStyle
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Definition: TAttMarker.h:40
kOpenTriangleUp
@ kOpenTriangleUp
Definition: TAttMarker.h:53
kFullTriangleDown
@ kFullTriangleDown
Definition: TAttMarker.h:52
TAttMarker::fMarkerSize
Size_t fMarkerSize
Marker size.
Definition: TAttMarker.h:24
Rtypes.h
kFullThreeTriangles
@ kFullThreeTriangles
Definition: TAttMarker.h:57
kMultiply
@ kMultiply
Definition: TAttMarker.h:49
kFullDiamond
@ kFullDiamond
Definition: TAttMarker.h:55
kFullDotMedium
@ kFullDotMedium
Definition: TAttMarker.h:50
Size_t
float Size_t
Definition: RtypesCore.h:87