ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TGLSelectRecord Class Reference

Standard selection record including information about containing scene and details ob out selected object (TGLPhysicalShape*, TObject* or simply a void* for foreign scenes).

Definition at line 74 of file TGLSelectRecord.h.

Public Types

enum  ESecSelResult { kNone, kEnteringSelection, kLeavingSelection, kModifyingInternalSelection }
 

Public Member Functions

 TGLSelectRecord ()
 Default constructor. More...
 
 TGLSelectRecord (UInt_t *data)
 Constructor from raw GL-select record. More...
 
 TGLSelectRecord (const TGLSelectRecord &rec)
 Copy constructor. More...
 
virtual ~TGLSelectRecord ()
 Destructor. More...
 
TGLSelectRecordoperator= (const TGLSelectRecord &rec)
 Copy operator. More...
 
virtual void Set (UInt_t *data)
 Setup the record from raw buffer. More...
 
virtual void Reset ()
 Reinitialise all data to null values. More...
 
Bool_t GetTransparent () const
 
TGLSceneInfoGetSceneInfo () const
 
TGLPhysicalShapeGetPhysShape () const
 
TGLLogicalShapeGetLogShape () const
 
TObjectGetObject () const
 
voidGetSpecific () const
 
Bool_t GetMultiple () const
 
Bool_t GetHighlight () const
 
ESecSelResult GetSecSelResult () const
 
void SetTransparent (Bool_t t)
 
void SetSceneInfo (TGLSceneInfo *si)
 
void SetPhysShape (TGLPhysicalShape *pshp)
 
void SetLogShape (TGLLogicalShape *lshp)
 
void SetObject (TObject *obj)
 
void SetSpecific (void *spec)
 
void SetMultiple (Bool_t multi)
 
void SetHighlight (Bool_t hlt)
 
void SetSecSelResult (ESecSelResult r)
 
void Print ()
 Print contents of the select record to stdout. More...
 
- Public Member Functions inherited from TGLSelectRecordBase
 TGLSelectRecordBase ()
 Default constructor. More...
 
 TGLSelectRecordBase (UInt_t *data)
 Constructor from raw GL-select record. More...
 
 TGLSelectRecordBase (const TGLSelectRecordBase &rec)
 Copy constructor. More...
 
virtual ~TGLSelectRecordBase ()
 Destructor. More...
 
TGLSelectRecordBaseoperator= (const TGLSelectRecordBase &rec)
 Copy operator. More...
 
void SetRawOnly (UInt_t *data)
 Setup the record from raw buffer. More...
 
Int_t GetN () const
 
UInt_tGetItems () const
 
UInt_t GetItem (Int_t i) const
 
Float_t GetMinZ () const
 
Float_t GetMaxZ () const
 
UInt_t GetCurrItem () const
 
Int_t GetNLeft () const
 
void NextPos ()
 
void PrevPos ()
 
void ResetPos ()
 

Static Public Member Functions

static Bool_t AreSameSelectionWise (const TGLSelectRecord &r1, const TGLSelectRecord &r2)
 Check if the records imply the same selection result, that is, their secondary members are all equal. More...
 

Protected Attributes

Bool_t fTransparent
 
TGLSceneInfofSceneInfo
 
TGLPhysicalShapefPhysShape
 
TGLLogicalShapefLogShape
 
TObjectfObject
 
voidfSpecific
 
Bool_t fMultiple
 
Bool_t fHighlight
 
ESecSelResult fSecSelRes
 
- Protected Attributes inherited from TGLSelectRecordBase
Int_t fN
 
UInt_tfItems
 
Float_t fMinZ
 
Float_t fMaxZ
 
Int_t fPos
 

Additional Inherited Members

- Protected Member Functions inherited from TGLSelectRecordBase
void CopyItems (UInt_t *items)
 Copy data from names. fN must already be set. More...
 

#include <TGLSelectRecord.h>

+ Inheritance diagram for TGLSelectRecord:
+ Collaboration diagram for TGLSelectRecord:

Member Enumeration Documentation

Enumerator
kNone 
kEnteringSelection 
kLeavingSelection 
kModifyingInternalSelection 

Definition at line 77 of file TGLSelectRecord.h.

Constructor & Destructor Documentation

TGLSelectRecord::TGLSelectRecord ( )

Default constructor.

Definition at line 151 of file TGLSelectRecord.cxx.

TGLSelectRecord::TGLSelectRecord ( UInt_t data)

Constructor from raw GL-select record.

Definition at line 168 of file TGLSelectRecord.cxx.

TGLSelectRecord::TGLSelectRecord ( const TGLSelectRecord rec)

Copy constructor.

Definition at line 185 of file TGLSelectRecord.cxx.

TGLSelectRecord::~TGLSelectRecord ( )
virtual

Destructor.

Definition at line 202 of file TGLSelectRecord.cxx.

Member Function Documentation

Bool_t TGLSelectRecord::AreSameSelectionWise ( const TGLSelectRecord r1,
const TGLSelectRecord r2 
)
static

Check if the records imply the same selection result, that is, their secondary members are all equal.

Definition at line 280 of file TGLSelectRecord.cxx.

Referenced by TGLViewer::DoSelect().

Bool_t TGLSelectRecord::GetHighlight ( ) const
inline
TGLLogicalShape* TGLSelectRecord::GetLogShape ( ) const
inline
Bool_t TGLSelectRecord::GetMultiple ( ) const
inline
TObject* TGLSelectRecord::GetObject ( ) const
inline
TGLPhysicalShape* TGLSelectRecord::GetPhysShape ( ) const
inline
TGLSceneInfo* TGLSelectRecord::GetSceneInfo ( ) const
inline

Definition at line 105 of file TGLSelectRecord.h.

Referenced by TGLViewer::DoSecondarySelect().

ESecSelResult TGLSelectRecord::GetSecSelResult ( ) const
inline
void* TGLSelectRecord::GetSpecific ( ) const
inline

Definition at line 109 of file TGLSelectRecord.h.

Bool_t TGLSelectRecord::GetTransparent ( ) const
inline
TGLSelectRecord & TGLSelectRecord::operator= ( const TGLSelectRecord rec)

Copy operator.

Definition at line 209 of file TGLSelectRecord.cxx.

void TGLSelectRecord::Print ( )

Print contents of the select record to stdout.

Definition at line 265 of file TGLSelectRecord.cxx.

Referenced by TGLViewer::DoSecondarySelect(), and TGLViewer::DoSelect().

void TGLSelectRecord::Reset ( void  )
virtual

Reinitialise all data to null values.

Reimplemented from TGLSelectRecordBase.

Definition at line 248 of file TGLSelectRecord.cxx.

Referenced by TGLViewer::DoSecondarySelect(), and TGLViewer::DoSelect().

void TGLSelectRecord::Set ( UInt_t data)
virtual

Setup the record from raw buffer.

Non-core members are reset.

Reimplemented from TGLSelectRecordBase.

Definition at line 231 of file TGLSelectRecord.cxx.

void TGLSelectRecord::SetHighlight ( Bool_t  hlt)
inline

Definition at line 122 of file TGLSelectRecord.h.

Referenced by TGLEventHandler::SelectForMouseOver().

void TGLSelectRecord::SetLogShape ( TGLLogicalShape lshp)
inline

Definition at line 118 of file TGLSelectRecord.h.

Referenced by TGLScene::ResolveSelectRecord().

void TGLSelectRecord::SetMultiple ( Bool_t  multi)
inline
void TGLSelectRecord::SetObject ( TObject obj)
inline

Definition at line 119 of file TGLSelectRecord.h.

Referenced by TGLScene::ResolveSelectRecord().

void TGLSelectRecord::SetPhysShape ( TGLPhysicalShape pshp)
inline

Definition at line 117 of file TGLSelectRecord.h.

Referenced by TGLScene::ResolveSelectRecord().

void TGLSelectRecord::SetSceneInfo ( TGLSceneInfo si)
inline

Definition at line 116 of file TGLSelectRecord.h.

Referenced by TGLViewerBase::ResolveSelectRecord().

void TGLSelectRecord::SetSecSelResult ( ESecSelResult  r)
inline
void TGLSelectRecord::SetSpecific ( void spec)
inline

Definition at line 120 of file TGLSelectRecord.h.

Referenced by TGLScene::ResolveSelectRecord().

void TGLSelectRecord::SetTransparent ( Bool_t  t)
inline

Definition at line 115 of file TGLSelectRecord.h.

Referenced by TGLScene::ResolveSelectRecord().

Member Data Documentation

Bool_t TGLSelectRecord::fHighlight
protected

Definition at line 89 of file TGLSelectRecord.h.

Referenced by GetHighlight(), operator=(), Print(), Reset(), and Set().

TGLLogicalShape* TGLSelectRecord::fLogShape
protected

Definition at line 85 of file TGLSelectRecord.h.

Referenced by GetLogShape(), operator=(), Reset(), and Set().

Bool_t TGLSelectRecord::fMultiple
protected

Definition at line 88 of file TGLSelectRecord.h.

Referenced by GetMultiple(), operator=(), Print(), Reset(), and Set().

TObject* TGLSelectRecord::fObject
protected

Definition at line 86 of file TGLSelectRecord.h.

Referenced by AreSameSelectionWise(), GetObject(), operator=(), Print(), Reset(), and Set().

TGLPhysicalShape* TGLSelectRecord::fPhysShape
protected

Definition at line 84 of file TGLSelectRecord.h.

Referenced by AreSameSelectionWise(), GetPhysShape(), operator=(), Print(), Reset(), and Set().

TGLSceneInfo* TGLSelectRecord::fSceneInfo
protected

Definition at line 83 of file TGLSelectRecord.h.

Referenced by AreSameSelectionWise(), GetSceneInfo(), operator=(), Print(), Reset(), and Set().

ESecSelResult TGLSelectRecord::fSecSelRes
protected

Definition at line 91 of file TGLSelectRecord.h.

Referenced by GetSecSelResult(), operator=(), Reset(), and Set().

void* TGLSelectRecord::fSpecific
protected

Definition at line 87 of file TGLSelectRecord.h.

Referenced by AreSameSelectionWise(), GetSpecific(), operator=(), Print(), Reset(), and Set().

Bool_t TGLSelectRecord::fTransparent
protected

Definition at line 82 of file TGLSelectRecord.h.

Referenced by GetTransparent(), operator=(), Print(), Reset(), and Set().


The documentation for this class was generated from the following files: