Logo ROOT  
Reference Guide
TGLManipSet Class Reference

Combine all available manipulators in a collection.

At first I wanted to merge them back into TGLManip (to have a single class) but then it seemed somehow messy. Maybe next time.

Definition at line 20 of file TGLManipSet.h.

Public Types

enum  EManip { kTrans , kScale , kRotate , kEndType }
 
- Public Types inherited from TGLOverlayElement
enum  ERole { kUser , kViewer , kAnnotation , kAll }
 
enum  EState { kInvisible = 1 , kDisabled = 2 , kActive = 4 , kAllVisible = kDisabled | kActive }
 

Public Member Functions

 TGLManipSet ()
 also draw bounding-box around physical More...
 
virtual ~TGLManipSet ()
 Destructor. More...
 
TGLManipGetCurrentManip () const
 
Bool_t GetDrawBBox () const
 
Int_t GetManipType () const
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual TClassIsA () const
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Render the manipulator and bounding-box. More...
 
void SetDrawBBox (Bool_t bb)
 
void SetManipType (Int_t type)
 Set manipulator type, range checked. More...
 
virtual void SetPShape (TGLPhysicalShape *shape)
 Set phys-shape, override of virtual from TGLPShapeRef. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
ERole GetRole () const
 
EState GetState () const
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual void Render (TGLRnrCtx &rnrCtx)=0
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState s)
 
- Public Member Functions inherited from TGLPShapeRef
 TGLPShapeRef ()
 Default constructor. More...
 
 TGLPShapeRef (TGLPhysicalShape *shape)
 Constructor with known shape - reference it. More...
 
virtual ~TGLPShapeRef ()
 Destructor - unreference the shape if set. More...
 
TGLPhysicalShapeGetPShape () const
 
virtual TClassIsA () const
 
virtual void PShapeModified ()
 This is called from physical shape when it is modified. More...
 
virtual void SetPShape (TGLPhysicalShape *shape)
 Set the shape. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGLPShapeRef
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Attributes

Bool_t fDrawBBox
 current manipulator More...
 
TGLManipfManip [3]
 
EManip fType
 manipulator store More...
 
- Protected Attributes inherited from TGLOverlayElement
ERole fRole
 
EState fState
 
- Protected Attributes inherited from TGLPShapeRef
TGLPhysicalShapefPShape
 

Private Member Functions

 TGLManipSet (const TGLManipSet &)
 
TGLManipSetoperator= (const TGLManipSet &)
 

Additional Inherited Members

- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()
 

#include <TGLManipSet.h>

Inheritance diagram for TGLManipSet:
[legend]

Member Enumeration Documentation

◆ EManip

Enumerator
kTrans 
kScale 
kRotate 
kEndType 

Definition at line 24 of file TGLManipSet.h.

Constructor & Destructor Documentation

◆ TGLManipSet() [1/2]

TGLManipSet::TGLManipSet ( const TGLManipSet )
private

◆ TGLManipSet() [2/2]

TGLManipSet::TGLManipSet ( )

also draw bounding-box around physical

Definition at line 38 of file TGLManipSet.cxx.

◆ ~TGLManipSet()

TGLManipSet::~TGLManipSet ( )
virtual

Destructor.

Definition at line 53 of file TGLManipSet.cxx.

Member Function Documentation

◆ Class()

static TClass * TGLManipSet::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLManipSet::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLManipSet::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 56 of file TGLManipSet.h.

◆ DeclFileName()

static const char * TGLManipSet::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 56 of file TGLManipSet.h.

◆ GetCurrentManip()

TGLManip * TGLManipSet::GetCurrentManip ( ) const
inline

Definition at line 49 of file TGLManipSet.h.

◆ GetDrawBBox()

Bool_t TGLManipSet::GetDrawBBox ( ) const
inline

Definition at line 53 of file TGLManipSet.h.

◆ GetManipType()

Int_t TGLManipSet::GetManipType ( ) const
inline

Definition at line 51 of file TGLManipSet.h.

◆ Handle()

Bool_t TGLManipSet::Handle ( TGLRnrCtx rnrCtx,
TGLOvlSelectRecord selRec,
Event_t event 
)
virtual

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 86 of file TGLManipSet.cxx.

◆ IsA()

virtual TClass * TGLManipSet::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TGLPShapeRef.

Definition at line 56 of file TGLManipSet.h.

◆ MouseEnter()

Bool_t TGLManipSet::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered this element.

Always accept.

Reimplemented from TGLOverlayElement.

Definition at line 74 of file TGLManipSet.cxx.

◆ MouseLeave()

void TGLManipSet::MouseLeave ( )
virtual

Mouse has left the element.

Reimplemented from TGLOverlayElement.

Definition at line 141 of file TGLManipSet.cxx.

◆ operator=()

TGLManipSet & TGLManipSet::operator= ( const TGLManipSet )
private

◆ Render()

void TGLManipSet::Render ( TGLRnrCtx rnrCtx)
virtual

Render the manipulator and bounding-box.

Implements TGLOverlayElement.

Definition at line 151 of file TGLManipSet.cxx.

◆ SetDrawBBox()

void TGLManipSet::SetDrawBBox ( Bool_t  bb)
inline

Definition at line 54 of file TGLManipSet.h.

◆ SetManipType()

void TGLManipSet::SetManipType ( Int_t  type)

Set manipulator type, range checked.

Definition at line 180 of file TGLManipSet.cxx.

◆ SetPShape()

void TGLManipSet::SetPShape ( TGLPhysicalShape shape)
virtual

Set phys-shape, override of virtual from TGLPShapeRef.

Forward to all managed manipulators.

Reimplemented from TGLPShapeRef.

Definition at line 63 of file TGLManipSet.cxx.

◆ Streamer()

virtual void TGLManipSet::Streamer ( TBuffer )
virtual

Reimplemented from TGLPShapeRef.

◆ StreamerNVirtual()

void TGLManipSet::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 56 of file TGLManipSet.h.

Member Data Documentation

◆ fDrawBBox

Bool_t TGLManipSet::fDrawBBox
protected

current manipulator

Definition at line 34 of file TGLManipSet.h.

◆ fManip

TGLManip* TGLManipSet::fManip[3]
protected

Definition at line 31 of file TGLManipSet.h.

◆ fType

EManip TGLManipSet::fType
protected

manipulator store

Definition at line 32 of file TGLManipSet.h.

Libraries for TGLManipSet:
[legend]

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