1 #include "TrackballTransControl.hh"
21 MoveInViewingDirection(-Stepsize_);
26 MoveInViewingDirection(Stepsize_);
41 GetViewDirection(controlledObject_,viewdir);
42 GetMoveinViewDirection(controlledObject_ ,stepSize,viewdir, direction);
43 Translate_(direction);
50 TransNode_->AddTranslation(v);
61 TransNode_->Rotate(axis,rotationagle);
70 if(!GetRotationAxisAndAngle(controlledObject_,
76 Rotate(axis, angleRAD);
83 Rotate_(axis,angleRAD);
98 GetViewDirection(controlledObject_,viewdir);
99 double rotationAngleRAD =
100 GetRotationAngle(controlledObject_,x1, x2, y1, y2, viewdir);
101 RotateAroundViewingDirection(rotationAngleRAD);
107 MoveInViewingDirection(stepsize);
114 controlledObject_->GetExtrinsics(C, up);
115 GetViewDirection(controlledObject_,viewdir);
116 GetTranslation(controlledObject_,x1, x2, y1, y2,viewdir,direction);
118 Translate_(direction);
126 GetViewDirection(controlledObject_,viewdir);
127 Rotate(viewdir, rotationAngleRAD);
void RotateAroundViewingDirection(double rotationAngleRAD)
bool LeftMouseMoved(int x1, int x2, int y1, int y2)
Rotates the tranformed object.
bool RightMouseMoved(int x1, int x2, int y1, int y2)
react to mouse movement while right button held down overwrite in derived class of desired ...
bool LeftMouseDoubleClicked(int x, int y)
should set point of interesr but is not supported by
void MoveInViewingDirection(double stepSize)
bool LeftAndRightMouseMoved(int x1, int x2, int y1, int y2)
rotate around viewing direction
void Rotate_(BIAS::Vector3< double > &axis, double rotationagle)
void Translate_(BIAS::Vector3< double > &v)
bool MouseWheelUsed(double stepsize)
Handles Mouse Wheel events and zooms in or out.
bool MiddleMouseMoved(int x1, int x2, int y1, int y2)
Moves the transform node left/right/up/down.
virtual ~TrackballTransControl()
void Rotate(BIAS::Vector3< double > axis, double angleRAD)