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(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 59 enum EMarkerStyle {kDot=1, kPlus, kStar, kCircle=4, kMultiply=5, 60 kFullDotSmall=6, kFullDotMedium=7, kFullDotLarge=8, 61 kFullCircle=20, kFullSquare=21, kFullTriangleUp=22, 62 kFullTriangleDown=23, kOpenCircle=24, kOpenSquare=25, 63 kOpenTriangleUp=26, kOpenDiamond=27, kOpenCross=28, 64 kFullStar=29, kOpenStar=30, kOpenTriangleDown=32, 65 kFullDiamond=33, kFullCross=34}; 66 67 #endif 68 69