Class to control orbital camera This class manage the movement, rotation, zoom and animation of orbital camera.
More...
#include <OrbitalCameraController.h>
|
| 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...
|
|
| AbstractCameraController (Camera *camera_=nullptr, const std::string zeqSession=std::string()) |
|
Camera * | camera (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_) |
|
|
void | _conformSetViewMatrix (const Eigen::Vector3f &position_, const Eigen::Matrix3f &rotation_, float radius_) |
|
void | _setCameraViewMatrix (const Eigen::Matrix4f &viewMatrix_) |
|
|
Camera * | _camera |
|
Eigen::Vector3f | _position |
|
Eigen::Matrix3f | _rotation |
|
float | _radius |
|
bool | _isAniming |
|
float | _currentAnimTime |
|
CameraAnimation * | _currentAnim |
|
bool | _loopAnim |
|
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.
reto::OrbitalCameraController::OrbitalCameraController |
( |
Camera * |
camera_ = nullptr , |
|
|
const std::string |
zeqSession = std::string() |
|
) |
| |
OrbitalCameraController class constructor.
- Parameters
-
[in] | camera_ | Camera object. |
[in] | session | ZeroEQ session name. |
[in] | subscriber | Only if ZeroEQ enabled. ZeroEQ subscriber for null session. |
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 |
The documentation for this class was generated from the following file: