ROOT 6.12/07 Reference Guide |
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.
Definition at line 28 of file TGLManip.h.
Public Member Functions | |
TGLManip () | |
Construct a manipulator object, bound to supplied viewer, and no physical shape. More... | |
TGLManip (TGLPhysicalShape *shape) | |
Construct a manipulator object, bound to supplied physical shape. More... | |
virtual | ~TGLManip () |
Destroy manipulator object. More... | |
void | Attach (TGLPhysicalShape *shape) |
virtual void | Draw (const TGLCamera &camera) const =0 |
Bool_t | GetActive () const |
TGLPhysicalShape * | GetAttached () const |
UInt_t | GetSelectedWidget () const |
virtual Bool_t | HandleButton (const Event_t &event, const TGLCamera &camera) |
Handle a mouse button event - return kTRUE if processed, kFALSE otherwise. More... | |
virtual Bool_t | HandleMotion (const Event_t &event, const TGLCamera &camera) |
Handle a mouse button event - return kTRUE if widget selection change kFALSE otherwise. More... | |
virtual Bool_t | Select (const TGLCamera &, const TGLRect &, const TGLBoundingBox &) |
void | SetActive (Bool_t a) |
void | SetSelectedWidget (UInt_t s) |
Public Member Functions inherited from TVirtualGLManip | |
virtual | ~TVirtualGLManip () |
Protected Member Functions | |
TGLManip (const TGLManip &) | |
last (latest) mouse position (in WINDOW coords) More... | |
void | CalcDrawScale (const TGLBoundingBox &box, const TGLCamera &camera, Double_t &base, TGLVector3 axis[3]) const |
Calculates base and axis scale factor (in world units) for drawing manipulators with reasonable size range in current camera. More... | |
const UChar_t * | ColorFor (UInt_t widget) const |
Returns color to be used for given widget. More... | |
TGLManip & | operator= (const TGLManip &) |
Assignment operator. More... | |
Protected Attributes | |
Bool_t | fActive |
active width (axis) component More... | |
TPoint | fFirstMouse |
manipulator is active? More... | |
TPoint | fLastMouse |
first (start) mouse position (in WINDOW coords) More... | |
UInt_t | fSelectedWidget |
manipulated shape More... | |
TGLPhysicalShape * | fShape |
#include <TGLManip.h>
|
protected |
last (latest) mouse position (in WINDOW coords)
Copy constructor.
Definition at line 61 of file TGLManip.cxx.
TGLManip::TGLManip | ( | ) |
Construct a manipulator object, bound to supplied viewer, and no physical shape.
Definition at line 39 of file TGLManip.cxx.
TGLManip::TGLManip | ( | TGLPhysicalShape * | shape | ) |
Construct a manipulator object, bound to supplied physical shape.
Definition at line 50 of file TGLManip.cxx.
|
virtual |
Destroy manipulator object.
Definition at line 90 of file TGLManip.cxx.
|
inline |
Definition at line 58 of file TGLManip.h.
|
protected |
Calculates base and axis scale factor (in world units) for drawing manipulators with reasonable size range in current camera.
Definition at line 156 of file TGLManip.cxx.
Returns color to be used for given widget.
Definition at line 97 of file TGLManip.cxx.
Implemented in TGLRotateManip, TGLScaleManip, and TGLTransManip.
|
inline |
Definition at line 55 of file TGLManip.h.
|
inline |
Definition at line 59 of file TGLManip.h.
|
inline |
Definition at line 52 of file TGLManip.h.
Handle a mouse button event - return kTRUE if processed, kFALSE otherwise.
Reimplemented in TGLRotateManip, and TGLScaleManip.
Definition at line 118 of file TGLManip.cxx.
Handle a mouse button event - return kTRUE if widget selection change kFALSE otherwise.
Reimplemented in TGLRotateManip, TGLScaleManip, and TGLTransManip.
Definition at line 145 of file TGLManip.cxx.
Assignment operator.
Definition at line 74 of file TGLManip.cxx.
|
inlinevirtual |
Implements TVirtualGLManip.
Definition at line 63 of file TGLManip.h.
Definition at line 56 of file TGLManip.h.
Definition at line 53 of file TGLManip.h.
|
protected |
active width (axis) component
Definition at line 33 of file TGLManip.h.
|
protected |
manipulator is active?
Definition at line 36 of file TGLManip.h.
|
protected |
first (start) mouse position (in WINDOW coords)
Definition at line 37 of file TGLManip.h.
|
protected |
manipulated shape
Definition at line 32 of file TGLManip.h.
|
protected |
Definition at line 31 of file TGLManip.h.