ReTo  0.3.7
reto::OrbitalCameraController Class Reference

Class to control orbital camera This class manage the movement, rotation, zoom and animation of orbital camera. More...

#include <OrbitalCameraController.h>

+ Inheritance diagram for reto::OrbitalCameraController:
+ Collaboration diagram for reto::OrbitalCameraController:

Public Member Functions

 OrbitalCameraController (Camera *camera_=nullptr, const std::string zeqSession=std::string())
 OrbitalCameraController class constructor. More...
 
void localTranslate (const Eigen::Vector3f &translation_)
 
void position (const Eigen::Vector3f &position_)
 Method to establish the pivot or orbital center for the camera. More...
 
Eigen::Vector3f position (void) const
 Method to obtain the pivot or orbital center. More...
 
- Public Member Functions inherited from reto::AbstractCameraController
 AbstractCameraController (Camera *camera_=nullptr, const std::string zeqSession=std::string())
 
Cameracamera (void)
 
void update (void)
 
void anim (const float deltaTime_=1.0f/60)
 
void startAnim (CameraAnimation *cameraAnimation_, bool loop_=false)
 
void stopAnim (void)
 
bool isAniming (void) const
 
void rotation (const Eigen::Matrix3f &rotation_)
 
void rotation (const Eigen::Vector3f &rotationAngles_)
 
Eigen::Matrix3f rotation (void) const
 
void radius (float radius_)
 
float radius (void) const
 
void translate (const Eigen::Vector3f &translation_)
 
void rotate (const Eigen::Matrix3f &rotation_)
 
void rotate (const Eigen::Vector3f &rotationAngles_)
 
void windowSize (int width_, int height_)
 
Eigen::Matrix3f rotationMatrixFromAngles (const Eigen::Vector3f &rotationAngles_)
 

Protected Member Functions

void _conformSetViewMatrix (const Eigen::Vector3f &position_, const Eigen::Matrix3f &rotation_, float radius_)
 
- Protected Member Functions inherited from reto::AbstractCameraController
void _setCameraViewMatrix (const Eigen::Matrix4f &viewMatrix_)
 

Additional Inherited Members

- Protected Attributes inherited from reto::AbstractCameraController
Camera_camera
 
Eigen::Vector3f _position
 
Eigen::Matrix3f _rotation
 
float _radius
 
bool _isAniming
 
float _currentAnimTime
 
CameraAnimation_currentAnim
 
bool _loopAnim
 

Detailed Description

Class to control orbital camera This class manage the movement, rotation, zoom and animation of orbital camera.

Definition at line 38 of file OrbitalCameraController.h.

Constructor & Destructor Documentation

reto::OrbitalCameraController::OrbitalCameraController ( Camera camera_ = nullptr,
const std::string  zeqSession = std::string() 
)

OrbitalCameraController class constructor.

Parameters
[in]camera_Camera object.
[in]sessionZeroEQ session name.
[in]subscriberOnly if ZeroEQ enabled. ZeroEQ subscriber for null session.

Member Function Documentation

void reto::OrbitalCameraController::position ( const Eigen::Vector3f &  position_)
virtual

Method to establish the pivot or orbital center for the camera.

Parameters
position_new value to be assigned as pivot or orbital center.

Reimplemented from reto::AbstractCameraController.

Eigen::Vector3f reto::OrbitalCameraController::position ( void  ) const
virtual

Method to obtain the pivot or orbital center.

Returns
position of the pivot or orbital center.

Reimplemented from reto::AbstractCameraController.


The documentation for this class was generated from the following file: