#include <camera.h>
Public Member Functions | |
Camera (std::string name) | |
Camera (std::string name, vtkSmartPointer< vtkCamera > camera) | |
void | computeFrustum () |
vtkSmartPointer< vtkCamera > | getCamera () const |
vtkSmartPointer< vtkCameraActor > | getCameraActor () const |
bool | getDisplay () const |
void | getFrustum (double frustum[]) |
vtkSmartPointer< vtkActor > | getHullActor () const |
Eigen::Matrix4d | getModelViewMatrix () |
Eigen::Vector3d | getPosition () |
Eigen::Matrix4d | getProjectionMatrix () |
Eigen::Matrix4d | getViewProjectionMatrix () |
void | printFrustum () |
virtual void | render (vtkRenderer *renderer) |
void | setClippingRange (float near_value=0.0001f, float far_value=100000.f) |
void | setDisplay (bool display) |
void | setModelViewMatrix (const Eigen::Matrix4d &model_view_matrix) |
void | setProjectionMatrix (const Eigen::Matrix4d &projection_matrix) |
Private Attributes | |
vtkSmartPointer< vtkCamera > | camera_ |
vtkSmartPointer< vtkCameraActor > | camera_actor_ |
bool | display_ |
double | frustum_ [24] |
vtkSmartPointer< vtkActor > | hull_actor_ |
Eigen::Matrix4d | model_view_matrix_ |
double | prevFocal_ [3] |
double | prevPos_ [3] |
double | prevUp_ [3] |
Eigen::Matrix4d | projection_matrix_ |
Camera::Camera | ( | std::string | name | ) |
Definition at line 25 of file camera.cpp.
Camera::Camera | ( | std::string | name, |
vtkSmartPointer< vtkCamera > | camera | ||
) |
Definition at line 48 of file camera.cpp.
void Camera::computeFrustum | ( | ) |
Definition at line 83 of file camera.cpp.
vtkSmartPointer<vtkCamera> Camera::getCamera | ( | ) | const [inline] |
vtkSmartPointer<vtkCameraActor> Camera::getCameraActor | ( | ) | const [inline] |
bool Camera::getDisplay | ( | ) | const [inline] |
void Camera::getFrustum | ( | double | frustum[] | ) | [inline] |
vtkSmartPointer<vtkActor> Camera::getHullActor | ( | ) | const [inline] |
Eigen::Matrix4d Camera::getModelViewMatrix | ( | ) | [inline] |
Eigen::Vector3d Camera::getPosition | ( | ) | [inline] |
Eigen::Matrix4d Camera::getProjectionMatrix | ( | ) | [inline] |
Eigen::Matrix4d Camera::getViewProjectionMatrix | ( | ) | [inline] |
void Camera::printFrustum | ( | ) |
Definition at line 111 of file camera.cpp.
void Camera::render | ( | vtkRenderer * | renderer | ) | [virtual] |
Reimplemented from Object.
Definition at line 121 of file camera.cpp.
void Camera::setClippingRange | ( | float | near_value = 0.0001f , |
float | far_value = 100000.f |
||
) | [inline] |
void Camera::setDisplay | ( | bool | display | ) | [inline] |
void Camera::setModelViewMatrix | ( | const Eigen::Matrix4d & | model_view_matrix | ) | [inline] |
void Camera::setProjectionMatrix | ( | const Eigen::Matrix4d & | projection_matrix | ) | [inline] |
vtkSmartPointer<vtkCamera> Camera::camera_ [private] |
vtkSmartPointer<vtkCameraActor> Camera::camera_actor_ [private] |
bool Camera::display_ [private] |
double Camera::frustum_[24] [private] |
vtkSmartPointer<vtkActor> Camera::hull_actor_ [private] |
Eigen::Matrix4d Camera::model_view_matrix_ [private] |
double Camera::prevFocal_[3] [private] |
double Camera::prevPos_[3] [private] |
double Camera::prevUp_[3] [private] |
Eigen::Matrix4d Camera::projection_matrix_ [private] |