ROOT logo
ROOT » GRAF2D » QT » TQtBrush

class TQtBrush: public QBrush


 TQtBrush creates the QBrush Qt object based on the ROOT "TAttFill" attributes


Function Members (Methods)

public:
TQtBrush()
TQtBrush(const TQtBrush& src)
TQtBrush(const TAttFill& rootFillAttributes)
virtual~TQtBrush()
static TClass*Class()
const QColor&GetColor() const
intGetStyle() const
virtual TClass*IsA() const
Bool_tIsTransparent() const
TQtBrush&operator=(const TAttFill& rootFillAttributes)
TQtBrush&operator=(const TQtBrush&)
voidSetColor(const QColor& qtcolor)
voidSetColor(Color_t cindex)
voidSetFillAttributes(const TAttFill& rootFillAttributes)
voidSetStyle(int newStyle = 1000)
voidSetStyle(int style, int fasi)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
protected:
voidSetColorOwn()

Data Members

protected:
intfAlphatransparency
QColorfBackground
intfFasi
intfStyle

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQtBrush()
{}
TQtBrush(const TAttFill& rootFillAttributes)
 TQtBrush ctor from ROOT TAttFill object
~TQtBrush()
 TQtBrush dtor
TQtBrush & operator=(const TAttFill& rootFillAttributes)
void SetFillAttributes(const TAttFill& rootFillAttributes)
void SetColor(Color_t cindex)
 Set color index for to fill shapes
  cindex    : color index
void SetColor(const QColor& qtcolor)
 remember the user's alpha value and set the  brush color
void SetColorOwn()
 Set the brush color and adjust its alpha value from fStyle
 Take in account the new transperency if needed
void SetStyle(int style, int fasi)
Set fill area style index*-*-*-*-*-
*-*                  =========================
*-*  style   : fill area interior style hollow or solid
*
Bool_t IsTransparent() const
{ return fStyle >= 4000 && fStyle <= 4100 ? kTRUE : kFALSE; }
TQtBrush()
TQtBrush & operator=(const TAttFill& rootFillAttributes)
void SetStyle(int newStyle = 1000)
const QColor & GetColor() const
{ return fBackground;}
int GetStyle() const
{ return 1000*fStyle + fFasi; }