library: libRGL
#include "TGLTransManip.h"

TGLTransManip


class description - source file - inheritance tree (.pdf)

class TGLTransManip : public TGLManip

Inheritance Chart:
TGLManip
<-
TGLTransManip

    public:
TGLTransManip(TGLViewer& viewer) TGLTransManip(TGLViewer& viewer, TGLPhysicalShape* shape) virtual ~TGLTransManip() static TClass* Class() virtual void Draw(const TGLCamera& camera) const virtual Bool_t HandleMotion(const Event_t* event, const TGLCamera& camera) virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




Class Description

                                                                      
 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.


TGLTransManip(TGLViewer & viewer) : TGLManip(viewer)
 Construct translation manipulator, attached to supplied TGLViewer
 'viewer', not bound to any physical shape.

TGLTransManip(TGLViewer & viewer, TGLPhysicalShape * shape) : TGLManip(viewer, 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.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Richard Maunder 16/09/2005
Last update: root/gl:$Name: $:$Id: TGLTransManip.cxx
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.