Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:56:50

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   12/05/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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;       ///< Marker color
0023    Style_t    fMarkerStyle;       ///< Marker style
0024    Size_t     fMarkerSize;        ///< Marker size
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;} ///< Return the marker color
0032    virtual Style_t  GetMarkerStyle() const {return fMarkerStyle;} ///< Return the marker style
0033    virtual Size_t   GetMarkerSize()  const {return fMarkerSize;}  ///< Return the marker size
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();  // *MENU*
0038    virtual void     SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;} ///< Set the marker color
0039    virtual void     SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
0040    virtual void     SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;} ///< Set the marker style
0041    /// Set the marker size.
0042    /// Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled.
0043    /// They are meant to be very fast to draw and are always drawn with the same number of pixels;
0044    /// therefore this method does not apply on them.
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);  //Marker attributes
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