the FixedAxis Camera Controller is used to control the camera position and orientation in relation to a pivot point where the rotations generated are around the fixed axis of the world.
More...
|
| FixedAxisController (GLfloat NewWidth, GLfloat NewHeight) |
| constructor
|
|
virtual | ~FixedAxisController () |
| destructor
|
|
void | setBounds (GLfloat NewWidth, GLfloat NewHeight) |
| set the bounds that define the area where the 2d point is valid. The bound is defined in a plane with [0,width] and [0,height]. Where (0,0) is the upper left corner of the plane. More...
|
|
void | setCenter (const rw::math::Vector3D<> ¢er, const rw::math::Vector2D<> &screenCenter) |
| update the center of rotation and screen center More...
|
|
rw::math::Vector3D | getCenter () |
| get the current pivot point in world coordinates More...
|
|
void | draw () |
| draw the camera control. More...
|
|
virtual void | handleEvent (QEvent *event) |
| event handler, typically mouse and keyboard More...
|
|
rw::math::Transform3D | getTransform () const |
| get the current world to camera transformation More...
|
|
void | setTransform (const rw::math::Transform3D<> &t3d) |
| set world to camera transformation More...
|
|
virtual | ~CameraController () |
| destructor
|
|
virtual void | setBounds (double NewWidth, double NewHeight)=0 |
| set the bounds that define the area where the 2d point is valid. The bound is defined in a plane with [0,width] and [0,height]. Where (0,0) is the upper left corner of the plane. More...
|
|
virtual void | zoom (double amount)=0 |
| Zoom by amount specified by amount. More...
|
|
virtual void | autoZoom (rw::core::Ptr< rw::models::WorkCell > workcell, rw::core::Ptr< const rw::kinematics::State > state, double fovy, double aspectRatio)=0 |
| Zooms the camera to fit all devices into the camera view. More...
|
|
virtual void | setZoomTarget (rw::math::Vector3D< double > target, bool enable=true) |
| set the 3D coordinate that should be zoomed towards. More...
|
|
virtual void | setPanTarget (rw::math::Vector3D< double > target, bool enable=true) |
| set the 3D coordinate that should be moved. More...
|
|
virtual rw::math::Vector3D | getPanTarget () |
| get the 3D coordinate that should be moved. More...
|
|
virtual void | setDrawable (rw::graphics::DrawableNode::Ptr obj) |
| add a drawable to the camera controller More...
|
|
the FixedAxis Camera Controller is used to control the camera position and orientation in relation to a pivot point where the rotations generated are around the fixed axis of the world.
More specifically the horizontal mouse drag rotates the scene around the world z-axis whereas the vertical drag movements rotate the scene around the camera y-axis located in the pivot point.