File indexing completed on 2024-11-15 09:56:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TAttMarker
0013 #define ROOT_TAttMarker
0014
0015
0016 #include "Rtypes.h"
0017
0018
0019 class TAttMarker {
0020
0021 protected:
0022 Color_t fMarkerColor;
0023 Style_t fMarkerStyle;
0024 Size_t fMarkerSize;
0025
0026 public:
0027 TAttMarker();
0028 TAttMarker(Color_t color, Style_t style, Size_t msize);
0029 virtual ~TAttMarker();
0030 void Copy(TAttMarker &attmarker) const;
0031 virtual Color_t GetMarkerColor() const {return fMarkerColor;}
0032 virtual Style_t GetMarkerStyle() const {return fMarkerStyle;}
0033 virtual Size_t GetMarkerSize() const {return fMarkerSize;}
0034 virtual void Modify();
0035 virtual void ResetAttMarker(Option_t *toption="");
0036 virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
0037 virtual void SetMarkerAttributes();
0038 virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;}
0039 virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
0040 virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;}
0041
0042
0043
0044
0045 virtual void SetMarkerSize(Size_t msize=1) { fMarkerSize = msize;}
0046
0047 static Style_t GetMarkerStyleBase(Style_t style);
0048 static Width_t GetMarkerLineWidth(Style_t style);
0049
0050 ClassDef(TAttMarker,2);
0051 };
0052
0053 enum EMarkerStyle {kDot=1, kPlus, kStar, kCircle=4, kMultiply=5,
0054 kFullDotSmall=6, kFullDotMedium=7, kFullDotLarge=8,
0055 kFullCircle=20, kFullSquare=21, kFullTriangleUp=22,
0056 kFullTriangleDown=23, kOpenCircle=24, kOpenSquare=25,
0057 kOpenTriangleUp=26, kOpenDiamond=27, kOpenCross=28,
0058 kFullStar=29, kOpenStar=30, kOpenTriangleDown=32,
0059 kFullDiamond=33, kFullCross=34, kOpenDiamondCross=35,
0060 kOpenSquareDiagonal=36, kOpenThreeTriangles=37,
0061 kOctagonCross=38, kFullThreeTriangles=39,
0062 kOpenFourTrianglesX=40, kFullFourTrianglesX=41,
0063 kOpenDoubleDiamond=42, kFullDoubleDiamond=43,
0064 kOpenFourTrianglesPlus=44, kFullFourTrianglesPlus=45,
0065 kOpenCrossX=46, kFullCrossX=47, kFourSquaresX=48,
0066 kFourSquaresPlus=49 };
0067
0068 #endif
0069