ROOT logo
ROOT » GRAF3D » GL » TGLSelectRecordBase

class TGLSelectRecordBase


 Base class for select records.
 Supports initialization from a raw GL record (UInt_t*) and
 copies the name-data into internal array.

Function Members (Methods)

public:
TGLSelectRecordBase()
TGLSelectRecordBase(UInt_t* data)
TGLSelectRecordBase(const TGLSelectRecordBase& rec)
virtual~TGLSelectRecordBase()
static TClass*Class()
UInt_tGetCurrItem() const
UInt_tGetItem(Int_t i) const
UInt_t*GetItems() const
Float_tGetMaxZ() const
Float_tGetMinZ() const
Int_tGetN() const
Int_tGetNLeft() const
virtual TClass*IsA() const
voidNextPos()
TGLSelectRecordBase&operator=(const TGLSelectRecordBase& rec)
voidPrevPos()
virtual voidReset()
voidResetPos()
virtual voidSet(UInt_t* data)
voidSetRawOnly(UInt_t* data)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidCopyItems(UInt_t* items)

Data Members

protected:
UInt_t*fItems
Float_tfMaxZ
Float_tfMinZ
Int_tfN
Int_tfPos

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLSelectRecordBase()
 Default constructor.
TGLSelectRecordBase(UInt_t* data)
 Constructor from raw GL-select record.
TGLSelectRecordBase(const TGLSelectRecordBase& rec)
 Copy constructor.
~TGLSelectRecordBase()
 Destructor.
TGLSelectRecordBase& operator=(const TGLSelectRecordBase& rec)
 Copy operator.
void CopyItems(UInt_t* items)
 Copy data from names. fN must already be set.
void SetRawOnly(UInt_t* data)
 Setup the record from raw buffer.
void Set(UInt_t* data)
 Setup the record from raw buffer.
void Reset()
 Reinitalize all data to null values.
Int_t GetN() const
{ return fN; }
UInt_t* GetItems() const
{ return fItems; }
UInt_t GetItem(Int_t i) const
{ return fItems[i]; }
Float_t GetMinZ() const
{ return fMinZ; }
Float_t GetMaxZ() const
{ return fMaxZ; }
UInt_t GetCurrItem() const
{ return fPos < fN ? fItems[fPos] : 0; }
Int_t GetNLeft() const
{ return fN - fPos; }
void NextPos()
{ ++fPos; }
void PrevPos()
{ --fPos; }
void ResetPos()
{ fPos = 0; }