iDynTree::ICamera class

Interface to manipulate the camera parameters.

Constructors, destructors, conversion operators

~ICamera() pure virtual
Destructor.

Public functions

void setPosition(const iDynTree::Position& cameraPos) pure virtual
Set the linear position of the camera w.r.t to the world.
void setTarget(const iDynTree::Position& cameraPos) pure virtual
Set the target of the camera (i.e.
auto getPosition() -> iDynTree::Position pure virtual
Get the linear position of the camera w.r.t to the world.
auto getTarget() -> iDynTree::Position pure virtual
Get the target of the camera (i.e.
void setUpVector(const Direction& upVector) pure virtual
Set the up vector of the camera w.r.t to the world.
auto animator() -> ICameraAnimator* pure virtual
Get a pointer to the CameraAnimator object.

Function documentation

void iDynTree::ICamera::setTarget(const iDynTree::Position& cameraPos) pure virtual

Set the target of the camera (i.e.

the point the camera is looking into) w.r.t. the world.

iDynTree::Position iDynTree::ICamera::getTarget() pure virtual

Get the target of the camera (i.e.

the point the camera is looking into) w.r.t. the world.

ICameraAnimator* iDynTree::ICamera::animator() pure virtual

Get a pointer to the CameraAnimator object.

It is not supposed to be deallocated, and its lifespan coincides with the one of the ICamera It is accessible only after the visualizer has been initialized.