library: libRGL
#include "TGLManip.h"

TGLManip


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

class TGLManip: public TVirtualGLManip

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TGLManip()
voidAttach(TGLPhysicalShape* shape)
static TClass*Class()
virtual voidDraw(const TGLCamera& camera) const
TGLPhysicalShape*GetAttached() const
virtual Bool_tHandleButton(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_tSelect(const TGLCamera& camera, const TGLRect& rect, const TGLBoundingBox& sceneBox)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidCalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera, Double_t& base, TGLVector3* axis) const
TGLManip&operator=(const TGLManip&)

Data Members

protected:
TGLPhysicalShape*fShape! manipulated shape
UInt_tfSelectedWidget! active width (axis) component
Bool_tfActive! manipulator is active?
TPointfFirstMouse! first (start) mouse position (in WINDOW coords)
TPointfLastMouse! last (latest) mouse position (in WINDOW coords)
static Float_tfgRed[4]
static Float_tfgGreen[4]
static Float_tfgBlue[4]
static Float_tfgYellow[4]
static Float_tfgWhite[4]
static Float_tfgGrey[4]

Class Description

                                                                      
 TGLManip                                                             
                                                                      
 Abstract base class for viewer manipulators, which allow direct in   
 viewer manipulation of a (TGlPhysicalShape) object - currently       
 translation, scaling and rotation along/round objects local axes.    
 See derived classes for these implementations.                       
                                                                      
 This class provides binding to the zero or one manipulated physical, 
 hit testing (selection) for manipulator sub component (widget), and  
 some common mouse action handling/tracking.                          

TGLManip& operator=(const TGLManip& gm)
assignement operator
~TGLManip()
 Destroy manipulator object
Bool_t Select(const TGLCamera & camera, const TGLRect & rect, const TGLBoundingBox & sceneBox)
 Select active widget (axis component) of the widget
Bool_t HandleButton(const Event_t & event, const TGLCamera & /*camera*/)
 Handle a mouse button event - return kTRUE if processed, kFALSE otherwise
Bool_t HandleMotion(const Event_t & event, const TGLCamera & camera, const TGLBoundingBox & sceneBox)
 Handle a mouse button event - return kTRUE if widget selection change
 kFALSE otherwise
void CalcDrawScale(const TGLBoundingBox & box, const TGLCamera & camera, Double_t & base, TGLVector3 axis[3])
 Calculates base and axis scale factor (in world units) for drawing manipulators with
 reasonable size range in current camera.
void Attach(TGLPhysicalShape * shape)
{ fShape = shape; }
TGLPhysicalShape * GetAttached()
{ return fShape; }
void Draw(const TGLCamera & camera)

Author: Richard Maunder 16/09/2005
Last update: root/gl:$Name: $:$Id: TGLManip.cxx,v 1.12 2006/05/24 14:49:21 brun 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.