TGLScaleManip Scale manipulator - attaches to physical shape and draws local axes widgets with box heads. User can mouse over (turns yellow) and L click/drag to scale along this axis. Widgets use standard 3D package axes colours: X red, Y green, Z blue.
virtual | ~TGLScaleManip() |
void | TGLManip::Attach(TGLPhysicalShape* shape) |
static TClass* | Class() |
virtual void | Draw(const TGLCamera& camera) const |
Bool_t | TGLManip::GetActive() const |
TGLPhysicalShape* | TGLManip::GetAttached() const |
UInt_t | TGLManip::GetSelectedWidget() const |
virtual Bool_t | HandleButton(const Event_t& event, const TGLCamera& camera) |
virtual Bool_t | HandleMotion(const Event_t& event, const TGLCamera& camera) |
virtual TClass* | IsA() const |
TGLScaleManip& | operator=(const TGLScaleManip&) |
virtual Bool_t | TGLManip::Select(const TGLCamera&, const TGLRect&, const TGLBoundingBox&) |
void | TGLManip::SetActive(Bool_t a) |
void | TGLManip::SetSelectedWidget(UInt_t s) |
virtual void | ShowMembers(TMemberInspector& insp) const |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
TGLScaleManip() | |
TGLScaleManip(TGLPhysicalShape* shape) | |
TGLScaleManip(const TGLScaleManip&) |
void | TGLManip::CalcDrawScale(const TGLBoundingBox& box, const TGLCamera& camera, Double_t& base, TGLVector3[3] axis) const |
const UChar_t* | TGLManip::ColorFor(UInt_t widget) const |
void | LimitScale(Double_t& factor) const |
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) |
UInt_t | TGLManip::fSelectedWidget | ! active width (axis) component |
TGLPhysicalShape* | TGLManip::fShape | ! manipulated shape |
TGLVector3 | fStartScale | ! initial scaling factors |
Construct scale manipulator bound to TGLPhysicalShape 'shape'.
Draw scale manipulator - tubes with box 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).
Clamp scale to sizable values: 1000 - 1/1000 Guards against div by zero problems.