172 glDisable(GL_LIGHTING);
174 glEnable(GL_LIGHTING);
Abstract base class for viewer manipulators, which allow direct in viewer manipulation of a (TGlPhysi...
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
virtual void Draw(const TGLCamera &camera) const =0
static void Color(const TGLColor &color)
Set color from TGLColor.
virtual void SetPShape(TGLPhysicalShape *shape)
Set phys-shape, override of virtual from TGLPShapeRef.
virtual Bool_t HandleButton(const Event_t &event, const TGLCamera &camera)
Handle a mouse button event - return kTRUE if processed, kFALSE otherwise.
virtual void MouseLeave()
Mouse has left the element.
void SetSelectedWidget(UInt_t s)
Combine all available manipulators in a collection.
Scale manipulator - attaches to physical shape and draws local axes widgets with box heads...
Concrete physical shape - a GL drawable.
UInt_t GetSelectedWidget() const
Bool_t fDrawBBox
current manipulator
const TGLBoundingBox & BoundingBox() const
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered this element.
Rotate manipulator - attaches to physical shape and draws local axes widgets - rings drawn from attac...
virtual Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
Handle overlay event.
TGLManip * GetCurrentManip() const
UInt_t GetCurrItem() const
virtual void SetPShape(TGLPhysicalShape *shape)
Set the shape.
void Draw(Bool_t solid=kFALSE) const
Draw the bounding box as either wireframe (default) of solid using current GL color.
virtual void Render(TGLRnrCtx &rnrCtx)
Render the manipulator and bounding-box.
void SetManipType(Int_t type)
Set manipulator type, range checked.
TGLPhysicalShape * fPShape
static void ResetDrawQuality()
static: reset draw quality
TGLManipSet()
also draw bounding-box around physical
static void SetDrawQuality(UInt_t dq)
static: set draw quality
virtual Bool_t HandleMotion(const Event_t &event, const TGLCamera &camera)
Handle a mouse button event - return kTRUE if widget selection change kFALSE otherwise.
Selection record for overlay objects.
TGLColorSet & ColorSet()
Return reference to current color-set (top of the stack).
EManip fType
manipulator store
virtual ~TGLManipSet()
Destructor.
UInt_t GetEventKeySym() const
Translation manipulator - attaches to physical shape and draws local axes widgets with arrow heads...