ROOT » GRAF2D » QT » TQtBrush

class TQtBrush: public QBrush


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


Function Members (Methods)

public:
virtual~TQtBrush()
static TClass*Class()
const QColor&QBrush::color() const
QBrush::DataPtr&QBrush::data_ptr()
const QColor&GetColor() const
intGetStyle() const
const QGradient*QBrush::gradient() const
virtual TClass*IsA() const
boolQBrush::isDetached() const
boolQBrush::isOpaque() const
Bool_tIsTransparent() const
const QMatrix&QBrush::matrix() const
QVariantQBrush::operator QVariant() const
boolQBrush::operator!=(const QBrush& b) const
TQtBrush&operator=(const TAttFill& rootFillAttributes)
TQtBrush&operator=(const TQtBrush&)
boolQBrush::operator==(const QBrush& b) const
voidSetColor(const QColor& qtcolor)
voidSetColor(Color_t cindex)
voidQBrush::setColor(const QColor& color)
voidQBrush::setColor(Qt::GlobalColor color)
voidSetFillAttributes(const TAttFill& rootFillAttributes)
voidQBrush::setMatrix(const QMatrix& mat)
voidSetStyle(int newStyle = 1000)
voidQBrush::setStyle(Qt::BrushStyle)
voidSetStyle(int style, int fasi)
voidQBrush::setTexture(const QPixmap& pixmap)
voidQBrush::setTextureImage(const QImage& image)
voidQBrush::setTransform(const QTransform&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Qt::BrushStyleQBrush::style() const
voidQBrush::swap(QBrush& other)
QPixmapQBrush::texture() const
QImageQBrush::textureImage() const
TQtBrush()
TQtBrush(const TQtBrush& src)
TQtBrush(const TAttFill& rootFillAttributes)
QTransformQBrush::transform() const
protected:
voidSetColorOwn()

Data Members

protected:
intfAlphatransparency
QColorfBackground
intfFasi
intfStyle

Class Charts

Inheritance Chart:
QBrush
TQtBrush

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; }