library: libRGL #include "TGLTransManip.h" |
TGLTransManip() | |
TGLTransManip(TGLPhysicalShape* shape) | |
TGLTransManip(const TGLTransManip&) | |
virtual | ~TGLTransManip() |
void | TGLManip::Attach(TGLPhysicalShape* shape) |
static TClass* | Class() |
virtual void | Draw(const TGLCamera& camera) const |
TGLPhysicalShape* | TGLManip::GetAttached() const |
virtual Bool_t | TGLManip::HandleButton(const Event_t& event, const TGLCamera& camera) |
virtual Bool_t | HandleMotion(const Event_t& event, const TGLCamera& camera, const TGLBoundingBox& sceneBox) |
virtual TClass* | IsA() const |
virtual Bool_t | TGLManip::Select(const TGLCamera& camera, const TGLRect& rect, const TGLBoundingBox& sceneBox) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
void | TGLManip::CalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera, Double_t& base, TGLVector3* axis) const |
TGLManip& | TGLManip::operator=(const TGLManip&) |
TGLPhysicalShape* | TGLManip::fShape | ! manipulated shape |
UInt_t | TGLManip::fSelectedWidget | ! active width (axis) component |
Bool_t | TGLManip::fActive | ! manipulator is active? |
TPoint | TGLManip::fFirstMouse | ! first (start) mouse position (in WINDOW coords) |
TPoint | TGLManip::fLastMouse | ! last (latest) mouse position (in WINDOW coords) |
static Float_t | TGLManip::fgRed[4] | |
static Float_t | TGLManip::fgGreen[4] | |
static Float_t | TGLManip::fgBlue[4] | |
static Float_t | TGLManip::fgYellow[4] | |
static Float_t | TGLManip::fgWhite[4] | |
static Float_t | TGLManip::fgGrey[4] |
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.
Construct translation manipulator, attached to supplied TGLViewer 'viewer', bound to TGLPhysicalShape 'shape'.
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).
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.