Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:29:27

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   12/12/94
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_TAttFill
0013 #define ROOT_TAttFill
0014 
0015 
0016 #include "Rtypes.h"
0017 
0018 class TColorNumber;
0019 
0020 class TAttFill {
0021 
0022 protected:
0023    Color_t    fFillColor;           ///< Fill area color
0024    Style_t    fFillStyle;           ///< Fill area style
0025 
0026 public:
0027    TAttFill();
0028    TAttFill(Color_t fcolor,Style_t fstyle);
0029    virtual ~TAttFill();
0030    void             Copy(TAttFill &attfill) const;
0031    virtual Color_t  GetFillColor() const { return fFillColor; } ///< Return the fill area color
0032    virtual Style_t  GetFillStyle() const { return fFillStyle; } ///< Return the fill area style
0033    virtual Bool_t   IsTransparent() const;
0034    virtual void     Modify();
0035    virtual void     ResetAttFill(Option_t *option="");
0036    virtual void     SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001);
0037    virtual void     SetFillAttributes(); // *MENU*
0038    virtual void     SetFillColor(Color_t fcolor) { fFillColor = fcolor; } ///< Set the fill area color
0039    virtual void     SetFillColorAlpha(Color_t fcolor, Float_t falpha);
0040    virtual void     SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; } ///< Set the fill area style
0041 
0042    void SetFillColor(TColorNumber);
0043 
0044    ClassDef(TAttFill,2)  //Fill area attributes
0045 };
0046 
0047 inline Bool_t TAttFill::IsTransparent() const
0048 { return fFillStyle >= 4000 && fFillStyle <= 4100 ? kTRUE : kFALSE; }
0049 
0050    enum EFillStyle {kFDotted1  = 3001, kFDotted2    = 3002, kFDotted3  = 3003,
0051                     kFHatched1 = 3004, kHatched2    = 3005, kFHatched3 = 3006,
0052                     kFHatched4 = 3007, kFWicker     = 3008, kFScales   = 3009,
0053                     kFBricks   = 3010, kFSnowflakes = 3011, kFCircles  = 3012,
0054                     kFTiles    = 3013, kFMondrian   = 3014, kFDiamonds = 3015,
0055                     kFWaves1   = 3016, kFDashed1    = 3017, kFDashed2  = 3018,
0056                     kFAlhambra = 3019, kFWaves2     = 3020, kFStars1   = 3021,
0057                     kFStars2   = 3022, kFPyramids   = 3023, kFFrieze   = 3024,
0058                     kFMetopes  = 3025, kFEmpty      = 0   , kFSolid    = 1};
0059 
0060 #endif