A++ » INCLUDE » TGLVertex3

class TGLVertex3


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~TGLVertex3()
Double_t*Arr()
const Double_t*CArr() const
static TClass*Class()
voidDump() const
voidFill(Double_t val)
virtual TClass*IsA() const
voidMaximum(const TGLVertex3& other)
voidMinimum(const TGLVertex3& other)
voidNegate()
TGLVertex3&operator*=(Double_t f)
const TGLVertex3&operator+=(const TGLVector3& val)
TGLVertex3operator-() const
const TGLVertex3&operator-=(const TGLVector3& val)
TGLVertex3&operator=(const TGLVertex3& rhs)
Bool_toperator==(const TGLVertex3& rhs) const
Double_t&operator[](Int_t index)
const Double_t&operator[](Int_t index) const
voidSet(const Double_t* xyz)
voidSet(const TGLVertex3& other)
voidSet(Double_t x, Double_t y, Double_t z)
voidShift(TGLVector3& shift)
voidShift(Double_t xDelta, Double_t yDelta, Double_t zDelta)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLVertex3()
TGLVertex3(Double_t* v)
TGLVertex3(const TGLVertex3& other)
TGLVertex3(Double_t x, Double_t y, Double_t z)
Double_tX() const
Double_t&X()
Double_tY() const
Double_t&Y()
Double_tZ() const
Double_t&Z()
protected:
Bool_tValidIndex(UInt_t index) const

Data Members

protected:
Double_tfVals[3]

Class Charts

Inheritance Chart:
TGLVertex3
TGLVector3

Function documentation

void Negate()
void Fill(Double_t val)
void Set(Double_t x, Double_t y, Double_t z)
void Set(const Double_t* xyz)
void Set(const TGLVertex3& other)
class TGLVector3; // Forward declare for Shift()
 TODO: Split these into own h/cxx files - too long now!


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.

Bool_t ValidIndex(UInt_t index) const
 Fields
{ return (index < 3); }
TGLVertex3()
TGLVertex3(Double_t x, Double_t y, Double_t z)
TGLVertex3(Double_t* v)
TGLVertex3(const TGLVertex3& other)
virtual ~TGLVertex3()
void Shift(TGLVector3& shift)
void Minimum(const TGLVertex3& other)
void Maximum(const TGLVertex3& other)
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]; }
Double_t Z() const
{ return fVals[2]; }
Double_t & Z()
{ return fVals[2]; }
const Double_t * CArr() const
{ return fVals; }
Double_t * Arr()
{ return fVals; }
void Dump() const
TGLMatrix & operator*=(Double_t f)
{ MultRight(rhs); return *this; }
TGLColor& operator=(const TGLVertex3& rhs)