ROOT » GRAF3D » GL » TGLTransManip

class TGLTransManip: public TGLManip


TGLTransManip

Translation manipulator - attaches to physical shape and draws local
 axes widgets with arrow heads. User can mouse over (turns yellow) and
L click/drag to translate along this axis.
 Widgets use standard 3D package axes colours: X red, Y green, Z blue.

Function Members (Methods)

public:
virtual~TGLTransManip()
voidTGLManip::Attach(TGLPhysicalShape* shape)
static TClass*Class()
virtual voidDraw(const TGLCamera& camera) const
Bool_tTGLManip::GetActive() const
TGLPhysicalShape*TGLManip::GetAttached() const
UInt_tTGLManip::GetSelectedWidget() const
virtual Bool_tTGLManip::HandleButton(const Event_t& event, const TGLCamera& camera)
virtual Bool_tHandleMotion(const Event_t& event, const TGLCamera& camera)
virtual TClass*IsA() const
TGLTransManip&operator=(const TGLTransManip&)
virtual Bool_tTGLManip::Select(const TGLCamera&, const TGLRect&, const TGLBoundingBox&)
voidTGLManip::SetActive(Bool_t a)
voidTGLManip::SetSelectedWidget(UInt_t s)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLTransManip()
TGLTransManip(TGLPhysicalShape* shape)
TGLTransManip(const TGLTransManip&)
protected:
voidTGLManip::CalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera, Double_t& base, TGLVector3[3] axis) const
const UChar_t*TGLManip::ColorFor(UInt_t widget) const

Data Members

protected:
Bool_tTGLManip::fActive! manipulator is active?
TPointTGLManip::fFirstMouse! first (start) mouse position (in WINDOW coords)
TPointTGLManip::fLastMouse! last (latest) mouse position (in WINDOW coords)
UInt_tTGLManip::fSelectedWidget! active width (axis) component
TGLPhysicalShape*TGLManip::fShape! manipulated shape

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLTransManip()
 Construct translation manipulator not bound to any physical shape.
TGLTransManip(TGLPhysicalShape* shape)
 Construct translation manipulator, attached to supplied TGLViewer
 'viewer', bound to TGLPhysicalShape 'shape'.
~TGLTransManip()
 Destory the translation manipulator
void Draw(const TGLCamera& camera) const
 Draw translation manipulator - tubes with arrow heads, in local axes of
 attached shape, in red(X), green(Y) and blue(Z), with white center sphere.
 If selected widget (mouse over) this is drawn in active colour (yellow).
Bool_t HandleMotion(const Event_t& event, const TGLCamera& camera)
 Handle mouse motion over manipulator - if active (selected
 widget) translate physical along selected widget (axis) of the
 manipulator, so it tracks mouse action. Returns kTRUE if redraw
 required kFALSE otherwise.
TGLTransManip()