ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
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 21 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...
 
virtual void SetPShape (TGLPhysicalShape *shape)
 Set phys-shape, override of virtual from TGLPShapeRef. More...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Render the manipulator and bounding-box. More...
 
TGLManipGetCurrentManip () const
 
Int_t GetManipType () const
 
void SetManipType (Int_t type)
 Set manipulator type, range checked. More...
 
Bool_t GetDrawBBox () const
 
void SetDrawBBox (Bool_t bb)
 
 ClassDef (TGLManipSet, 0)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t 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 void PShapeModified ()
 This is called from physical shape when it is modified. More...
 
 ClassDef (TGLPShapeRef, 0)
 

Protected Attributes

TGLManipfManip [3]
 
EManip fType
 manipulator store More...
 
Bool_t fDrawBBox
 current manipulator 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

Enumerator
kTrans 
kScale 
kRotate 
kEndType 

Definition at line 25 of file TGLManipSet.h.

Constructor & Destructor Documentation

TGLManipSet::TGLManipSet ( const TGLManipSet )
private
TGLManipSet::TGLManipSet ( )

also draw bounding-box around physical

Definition at line 39 of file TGLManipSet.cxx.

TGLManipSet::~TGLManipSet ( )
virtual

Destructor.

Definition at line 54 of file TGLManipSet.cxx.

Member Function Documentation

TGLManipSet::ClassDef ( TGLManipSet  ,
 
)
TGLManip* TGLManipSet::GetCurrentManip ( ) const
inline

Definition at line 50 of file TGLManipSet.h.

Referenced by Handle(), MouseEnter(), and MouseLeave().

Bool_t TGLManipSet::GetDrawBBox ( ) const
inline

Definition at line 54 of file TGLManipSet.h.

Int_t TGLManipSet::GetManipType ( ) const
inline

Definition at line 52 of file TGLManipSet.h.

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 87 of file TGLManipSet.cxx.

Referenced by TGLClipSet::Handle().

Bool_t TGLManipSet::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered this element.

Always accept.

Reimplemented from TGLOverlayElement.

Definition at line 75 of file TGLManipSet.cxx.

Referenced by TGLClipSet::MouseEnter().

void TGLManipSet::MouseLeave ( )
virtual

Mouse has left the element.

Reimplemented from TGLOverlayElement.

Definition at line 142 of file TGLManipSet.cxx.

Referenced by TGLClipSet::MouseLeave().

TGLManipSet& TGLManipSet::operator= ( const TGLManipSet )
private
void TGLManipSet::Render ( TGLRnrCtx rnrCtx)
virtual

Render the manipulator and bounding-box.

Implements TGLOverlayElement.

Definition at line 152 of file TGLManipSet.cxx.

Referenced by TGLClipSet::Render().

void TGLManipSet::SetDrawBBox ( Bool_t  bb)
inline

Definition at line 55 of file TGLManipSet.h.

Referenced by TGLViewer::InitSecondaryObjects().

void TGLManipSet::SetManipType ( Int_t  type)

Set manipulator type, range checked.

Definition at line 181 of file TGLManipSet.cxx.

Referenced by Handle().

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 64 of file TGLManipSet.cxx.

Referenced by TGLViewer::ApplySelection(), and TGLClipSet::SetClipType().

Member Data Documentation

Bool_t TGLManipSet::fDrawBBox
protected

current manipulator

Definition at line 35 of file TGLManipSet.h.

Referenced by GetDrawBBox(), Render(), and SetDrawBBox().

TGLManip* TGLManipSet::fManip[3]
protected

Definition at line 32 of file TGLManipSet.h.

Referenced by GetCurrentManip(), Render(), SetPShape(), TGLManipSet(), and ~TGLManipSet().

EManip TGLManipSet::fType
protected

manipulator store

Definition at line 33 of file TGLManipSet.h.

Referenced by GetCurrentManip(), GetManipType(), Render(), and SetManipType().

Collaboration diagram for TGLManipSet:
[legend]

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