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)

public:
TGLManipSet()
virtual~TGLManipSet()
static TClass*Class()
static TClass*TGLPShapeRef::Class()
static TClass*TGLOverlayElement::Class()
TGLManip*GetCurrentManip() const
Bool_tGetDrawBBox() const
Int_tGetManipType() const
TGLPhysicalShape*TGLPShapeRef::GetPShape() const
TGLOverlayElement::ERoleTGLOverlayElement::GetRole() const
virtual Bool_tHandle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual Bool_tTGLOverlayElement::Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual TClass*IsA() const
virtual Bool_tMouseEnter(TGLOvlSelectRecord& selRec)
virtual Bool_tTGLOverlayElement::MouseEnter(TGLOvlSelectRecord& selRec)
virtual voidMouseLeave()
virtual voidTGLOverlayElement::MouseLeave()
virtual Bool_tTGLOverlayElement::MouseStillInside(TGLOvlSelectRecord& selRec)
virtual voidTGLPShapeRef::PShapeModified()
virtual voidRender(TGLRnrCtx& rnrCtx)
virtual voidTGLOverlayElement::Render(TGLRnrCtx& rnrCtx)
voidSetDrawBBox(Bool_t bb)
voidSetManipType(Int_t type)
virtual voidSetPShape(TGLPhysicalShape* shape)
virtual voidTGLPShapeRef::SetPShape(TGLPhysicalShape* shape)
voidTGLOverlayElement::SetRole(TGLOverlayElement::ERole r)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGLOverlayElement::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTGLOverlayElement::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTGLPShapeRef::StreamerNVirtual(TBuffer& b)
voidTGLOverlayElement::StreamerNVirtual(TBuffer& b)

Data Members

private:
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; }