Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
43  ClassDef(TAttMarker,2); //Marker attributes
44 };
45 
46  enum EMarkerStyle {kDot=1, kPlus, kStar, kCircle=4, kMultiply=5,
47  kFullDotSmall=6, kFullDotMedium=7, kFullDotLarge=8,
48  kFullCircle=20, kFullSquare=21, kFullTriangleUp=22,
49  kFullTriangleDown=23, kOpenCircle=24, kOpenSquare=25,
50  kOpenTriangleUp=26, kOpenDiamond=27, kOpenCross=28,
51  kFullStar=29, kOpenStar=30, kOpenTriangleDown=32,
52  kFullDiamond=33, kFullCross=34, kOpenDiamondCross=35,
53  kOpenSquareDiagonal=36, kOpenThreeTriangles=37,
54  kOctagonCross=38, kFullThreeTriangles=39,
55  kOpenFourTrianglesX=40, kFullFourTrianglesX=41,
56  kOpenDoubleDiamond=42, kFullDoubleDiamond=43,
57  kOpenFourTrianglesPlus=44, kFullFourTrianglesPlus=45,
58  kOpenCrossX=46, kFullCrossX=47, kFourSquaresX=48,
59  kFourSquaresPlus=49 };
60 
61 #endif
62