A++ » INCLUDE » TGLRect

class TGLRect


TGLVertex3

3 component (x/y/z) vertex class

 This is part of collection of utility classes for GL in TGLUtil.h/cxx
These provide const and non-const accessors Arr() / CArr() to a GL
 compatible internal field - so can be used directly with OpenGL C API
calls. They are not intended to be fully featured just provide
minimum required.

Function Members (Methods)

public:
virtual~TGLRect()
Double_tAspect() const
Int_tBottom() const
const Int_t*CArr() const
Int_t*CArr()
Int_tCenterX() const
Int_tCenterY() const
static TClass*Class()
Int_tDiagonal() const
voidExpand(Int_t x, Int_t y)
Int_tHeight() const
Int_t&Height()
virtual TClass*IsA() const
Int_tLeft() const
Int_tLongest() const
voidOffset(Int_t dX, Int_t dY)
TGLRect&operator=(const TGLRect&)
Rgl::EOverlapOverlap(const TGLRect& other) const
Int_tRight() const
voidSet(Int_t x, Int_t y, Int_t width, Int_t height)
voidSetCorner(Int_t x, Int_t y)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLRect()
TGLRect(const TGLRect&)
TGLRect(Int_t x, Int_t y, Int_t width, Int_t height)
TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height)
Int_tTop() const
Int_tWidth() const
Int_t&Width()
Int_tX() const
Int_t&X()
Int_tY() const
Int_t&Y()

Data Members

private:
Int_tfHeight! Positive width/height
Int_tfWidth! Positive width/height
Int_tfX! Corner
Int_tfY! Corner

Class Charts

Inheritance Chart:
TGLRect

Function documentation

void Set(Int_t x, Int_t y, Int_t width, Int_t height)
void SetCorner(Int_t x, Int_t y)
void Offset(Int_t dX, Int_t dY)
Int_t Longest() const
Double_t Aspect() const
Double_t X() const
{ return fVals[0]; }
Double_t & X()
{ return fVals[0]; }
Double_t Y() const
{ return fVals[1]; }
Double_t & Y()
{ return fVals[1]; }
const Double_t * CArr() const
{ return fVals; }
TGLRect()
TGLRect(Int_t x, Int_t y, Int_t width, Int_t height)
TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual ~TGLRect()
void Expand(Int_t x, Int_t y)
const Int_t* CArr() const
 Accessors
{ return &fX; }
Int_t Width() const
{ return fWidth; }
Int_t & Width()
{ return fWidth; }
Int_t Height() const
{ return fHeight; }
Int_t & Height()
{ return fHeight; }
Int_t CenterX() const
{ return fX + fWidth/2; }
Int_t CenterY() const
{ return fY + fHeight/2; }
Int_t Left() const
{ return fX; }
Int_t Right() const
{ return fX + fWidth; }
Int_t Top() const
{ return fY; }
Int_t Bottom() const
{ return fY + fHeight; }
Int_t Diagonal() const
TGLColor& operator=(const TGLRect& )