File indexing completed on 2025-12-15 10:29:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
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;
0024 Style_t fFillStyle;
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; }
0032 virtual Style_t GetFillStyle() const { return fFillStyle; }
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();
0038 virtual void SetFillColor(Color_t fcolor) { fFillColor = fcolor; }
0039 virtual void SetFillColorAlpha(Color_t fcolor, Float_t falpha);
0040 virtual void SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; }
0041
0042 void SetFillColor(TColorNumber);
0043
0044 ClassDef(TAttFill,2)
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