library: libRGL
#include "TGLTransManip.h"

TGLTransManip


class description - header file - source file
viewCVS header - viewCVS source

class TGLTransManip: public TGLManip

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLTransManip()
TGLTransManip(TGLPhysicalShape* shape)
TGLTransManip(const TGLTransManip&)
virtual~TGLTransManip()
voidTGLManip::Attach(TGLPhysicalShape* shape)
static TClass*Class()
virtual voidDraw(const TGLCamera& camera) const
TGLPhysicalShape*TGLManip::GetAttached() const
virtual Bool_tTGLManip::HandleButton(const Event_t& event, const TGLCamera& camera)
virtual Bool_tHandleMotion(const Event_t& event, const TGLCamera& camera, const TGLBoundingBox& sceneBox)
virtual TClass*IsA() const
virtual Bool_tTGLManip::Select(const TGLCamera& camera, const TGLRect& rect, const TGLBoundingBox& sceneBox)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidTGLManip::CalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera, Double_t& base, TGLVector3* axis) const
TGLManip&TGLManip::operator=(const TGLManip&)

Data Members

protected:
TGLPhysicalShape*TGLManip::fShape! manipulated shape
UInt_tTGLManip::fSelectedWidget! active width (axis) component
Bool_tTGLManip::fActive! manipulator is active?
TPointTGLManip::fFirstMouse! first (start) mouse position (in WINDOW coords)
TPointTGLManip::fLastMouse! last (latest) mouse position (in WINDOW coords)
static Float_tTGLManip::fgRed[4]
static Float_tTGLManip::fgGreen[4]
static Float_tTGLManip::fgBlue[4]
static Float_tTGLManip::fgYellow[4]
static Float_tTGLManip::fgWhite[4]
static Float_tTGLManip::fgGrey[4]

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()
 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)
 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, const TGLBoundingBox & sceneBox)
 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()

Author: Richard Maunder 16/09/2005
Last update: root/gl:$Name: $:$Id: TGLTransManip.cxx,v 1.6 2006/01/30 17:42:06 rdm Exp $
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.