ROOT logo
ROOT » GRAF3D » GL » TGLManipSet

class TGLManipSet: public TGLOverlayElement, public TGLPShapeRef


 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.

Function Members (Methods)

Data Members

public:
enum EManip { kTrans
kScale
kRotate
kEndType
};
enum TGLOverlayElement::ERole { kUser
kViewer
kAnnotation
kAll
};
protected:
Bool_tfDrawBBox! also draw bounding-box around physical
TGLManip*fManip[3]! manipulator store
TGLPhysicalShape*TGLPShapeRef::fPShapePointer to referenced physical shape.
TGLOverlayElement::ERoleTGLOverlayElement::fRole
TGLManipSet::EManipfType! current manipulator

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLManipSet()
 Constructor.
~TGLManipSet()
 Destructor.
void SetPShape(TGLPhysicalShape* shape)
 Set phys-shape, override of virtual from TGLPShapeRef.
 Forward to all managed manipulators.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has enetered this element.
 Always accept.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Return TRUE if event was handled.
void MouseLeave()
 Mouse has left the element.
void Render(TGLRnrCtx& rnrCtx)
 Render the manipulator and bounding-box.
void SetManipType(Int_t type)
 Set manipulator type, range checked.
TGLManipSet(const TGLManipSet& )
TGLManipSet& operator=(const TGLManipSet& )
TGLManip* GetCurrentManip() const
{ return fManip[fType]; }
Int_t GetManipType() const
{ return fType; }
Bool_t GetDrawBBox() const
{ return fDrawBBox; }
void SetDrawBBox(Bool_t bb)
{ fDrawBBox = bb; }