iDynTree::ICameraAnimator class

Interface to animate the camera and control it via the mouse.

Public functions

void enableMouseControl(bool enabled = true) pure virtual
Enable the control of camera via the mouse.
auto getMoveSpeed() const -> double pure virtual
Returns the speed of movement.
void setMoveSpeed(double moveSpeed) pure virtual
Sets the speed of movement.
auto getRotateSpeed() const -> double pure virtual
Returns the rotation speed.
void setRotateSpeed(double rotateSpeed) pure virtual
Set the rotation speed.
auto getZoomSpeed() const -> double pure virtual
Returns the zoom speed.
void setZoomSpeed(double zoomSpeed) pure virtual
Set the zoom speed.

Function documentation

void iDynTree::ICameraAnimator::enableMouseControl(bool enabled = true) pure virtual

Enable the control of camera via the mouse.

By default, left button rotates the camera, the right button translates it on the plane. The middle button, translates the camera up and down, while the wheel increases or decreases the zoom.