Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TAttFill.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Rene Brun 12/12/94
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_TAttFill
13#define ROOT_TAttFill
14
15
16#include "Rtypes.h"
17
18class TColorNumber;
19
20class TAttFill {
21
22protected:
23 Color_t fFillColor; ///< Fill area color
24 Style_t fFillStyle; ///< Fill area style
25
26public:
27 TAttFill();
29 virtual ~TAttFill();
30 void Copy(TAttFill &attfill) const;
31 virtual Color_t GetFillColor() const { return fFillColor; } ///< Return the fill area color
32 virtual Style_t GetFillStyle() const { return fFillStyle; } ///< Return the fill area style
33 virtual Bool_t IsTransparent() const;
34 virtual void Modify();
35 virtual void ResetAttFill(Option_t *option="");
36 virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001);
37 virtual void SetFillAttributes(); // *MENU*
38 virtual void SetFillColor(Color_t fcolor) { fFillColor = fcolor; } ///< Set the fill area color
39 virtual void SetFillColorAlpha(Color_t fcolor, Float_t falpha);
40 virtual void SetFillStyle(Style_t fstyle) { fFillStyle = fstyle; } ///< Set the fill area style
41
43
44 ClassDef(TAttFill,2) //Fill area attributes
45};
46
48{ return fFillStyle >= 4000 && fFillStyle <= 4100 ? kTRUE : kFALSE; }
49
50 enum EFillStyle {kFDotted1 = 3001, kFDotted2 = 3002, kFDotted3 = 3003,
51 kFHatched1 = 3004, kHatched2 = 3005, kFHatched3 = 3006,
52 kFHatched4 = 3007, kFWicker = 3008, kFScales = 3009,
53 kFBricks = 3010, kFSnowflakes = 3011, kFCircles = 3012,
54 kFTiles = 3013, kFMondrian = 3014, kFDiamonds = 3015,
55 kFWaves1 = 3016, kFDashed1 = 3017, kFDashed2 = 3018,
56 kFAlhambra = 3019, kFWaves2 = 3020, kFStars1 = 3021,
57 kFStars2 = 3022, kFPyramids = 3023, kFFrieze = 3024,
58 kFMetopes = 3025, kFEmpty = 0 , kFSolid = 1};
59
60#endif
short Style_t
Definition RtypesCore.h:82
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
short Color_t
Definition RtypesCore.h:85
float Float_t
Definition RtypesCore.h:57
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:342
EFillStyle
Definition TAttFill.h:50
@ kFAlhambra
Definition TAttFill.h:56
@ kFDotted3
Definition TAttFill.h:50
@ kFMetopes
Definition TAttFill.h:58
@ kFWicker
Definition TAttFill.h:52
@ kFSolid
Definition TAttFill.h:58
@ kFDashed1
Definition TAttFill.h:55
@ kFDiamonds
Definition TAttFill.h:54
@ kFDashed2
Definition TAttFill.h:55
@ kFTiles
Definition TAttFill.h:54
@ kFBricks
Definition TAttFill.h:53
@ kFStars1
Definition TAttFill.h:56
@ kFPyramids
Definition TAttFill.h:57
@ kFWaves1
Definition TAttFill.h:55
@ kHatched2
Definition TAttFill.h:51
@ kFCircles
Definition TAttFill.h:53
@ kFDotted2
Definition TAttFill.h:50
@ kFHatched3
Definition TAttFill.h:51
@ kFDotted1
Definition TAttFill.h:50
@ kFFrieze
Definition TAttFill.h:57
@ kFHatched4
Definition TAttFill.h:52
@ kFSnowflakes
Definition TAttFill.h:53
@ kFScales
Definition TAttFill.h:52
@ kFEmpty
Definition TAttFill.h:58
@ kFMondrian
Definition TAttFill.h:54
@ kFWaves2
Definition TAttFill.h:56
@ kFHatched1
Definition TAttFill.h:51
@ kFStars2
Definition TAttFill.h:57
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t option
Option_t Option_t SetFillColor
char name[80]
Definition TGX11.cxx:110
Fill Area Attributes class.
Definition TAttFill.h:20
virtual Color_t GetFillColor() const
Return the fill area color.
Definition TAttFill.h:31
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
Definition TAttFill.cxx:207
virtual Style_t GetFillStyle() const
Return the fill area style.
Definition TAttFill.h:32
virtual void Modify()
Change current fill area attributes if necessary.
Definition TAttFill.cxx:216
Style_t fFillStyle
Fill area style.
Definition TAttFill.h:24
virtual ~TAttFill()
AttFill destructor.
Definition TAttFill.cxx:200
Color_t fFillColor
Fill area color.
Definition TAttFill.h:23
TAttFill()
AttFill default constructor.
Definition TAttFill.cxx:179
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition TAttFill.h:38
virtual void SetFillColorAlpha(Color_t fcolor, Float_t falpha)
Set a transparent fill color.
Definition TAttFill.cxx:261
virtual void SetFillAttributes()
Invoke the DialogCanvas Fill attributes.
Definition TAttFill.cxx:250
virtual void ResetAttFill(Option_t *option="")
Reset this fill attributes to default values.
Definition TAttFill.cxx:230
virtual Bool_t IsTransparent() const
Definition TAttFill.h:47
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition TAttFill.h:40
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
Definition TAttFill.cxx:239