Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions
Camera Class Reference

#include <pcl/outofcore/visualization/camera.h>

+ Inheritance diagram for Camera:

Public Member Functions

 Camera (std::string name)
 
 Camera (std::string name, vtkSmartPointer< vtkCamera > camera)
 
vtkSmartPointer< vtkCamera > getCamera () const
 
vtkSmartPointer< vtkCameraActor > getCameraActor () const
 
vtkSmartPointer< vtkActor > getHullActor () const
 
bool getDisplay () const
 
void setDisplay (bool display)
 
void getFrustum (double frustum[])
 
void setProjectionMatrix (const Eigen::Matrix4d &projection_matrix)
 
Eigen::Matrix4d getProjectionMatrix ()
 
void setModelViewMatrix (const Eigen::Matrix4d &model_view_matrix)
 
Eigen::Matrix4d getModelViewMatrix ()
 
Eigen::Matrix4d getViewProjectionMatrix ()
 
Eigen::Vector3d getPosition ()
 
void setClippingRange (float near_value=0.0001f, float far_value=100000.f)
 
void render (vtkRenderer *renderer) override
 
void computeFrustum ()
 
void printFrustum ()
 
- Public Member Functions inherited from Object
 Object (std::string name)
 
virtual ~Object ()
 
std::string getName () const
 
void setName (std::string name)
 
bool hasActor (vtkActor *actor)
 
void addActor (vtkActor *actor)
 
void removeActor (vtkActor *actor)
 
vtkSmartPointer< vtkActorCollection > getActors ()
 

Additional Inherited Members

- Protected Attributes inherited from Object
vtkSmartPointer< vtkActorCollection > actors_
 
std::mutex actors_mutex_
 

Detailed Description

Definition at line 18 of file camera.h.

Constructor & Destructor Documentation

◆ Camera() [1/2]

Camera::Camera ( std::string  name)

◆ Camera() [2/2]

Camera::Camera ( std::string  name,
vtkSmartPointer< vtkCamera >  camera 
)

Member Function Documentation

◆ computeFrustum()

void Camera::computeFrustum ( )

Referenced by setClippingRange().

◆ getCamera()

vtkSmartPointer<vtkCamera> Camera::getCamera ( ) const
inline

Definition at line 35 of file camera.h.

Referenced by Viewport::setCamera().

◆ getCameraActor()

vtkSmartPointer<vtkCameraActor> Camera::getCameraActor ( ) const
inline

Definition at line 41 of file camera.h.

◆ getDisplay()

bool Camera::getDisplay ( ) const
inline

Definition at line 53 of file camera.h.

◆ getFrustum()

void Camera::getFrustum ( double  frustum[])
inline

Definition at line 65 of file camera.h.

◆ getHullActor()

vtkSmartPointer<vtkActor> Camera::getHullActor ( ) const
inline

Definition at line 47 of file camera.h.

◆ getModelViewMatrix()

Eigen::Matrix4d Camera::getModelViewMatrix ( )
inline

Definition at line 90 of file camera.h.

◆ getPosition()

Eigen::Vector3d Camera::getPosition ( )
inline

Definition at line 102 of file camera.h.

◆ getProjectionMatrix()

Eigen::Matrix4d Camera::getProjectionMatrix ( )
inline

Definition at line 78 of file camera.h.

◆ getViewProjectionMatrix()

Eigen::Matrix4d Camera::getViewProjectionMatrix ( )
inline

Definition at line 96 of file camera.h.

◆ printFrustum()

void Camera::printFrustum ( )

Referenced by setClippingRange().

◆ render()

void Camera::render ( vtkRenderer *  renderer)
overridevirtual

Reimplemented from Object.

Referenced by setClippingRange().

◆ setClippingRange()

void Camera::setClippingRange ( float  near_value = 0.0001f,
float  far_value = 100000.f 
)
inline

Definition at line 116 of file camera.h.

References computeFrustum(), printFrustum(), and render().

◆ setDisplay()

void Camera::setDisplay ( bool  display)
inline

Definition at line 59 of file camera.h.

◆ setModelViewMatrix()

void Camera::setModelViewMatrix ( const Eigen::Matrix4d &  model_view_matrix)
inline

Definition at line 84 of file camera.h.

◆ setProjectionMatrix()

void Camera::setProjectionMatrix ( const Eigen::Matrix4d &  projection_matrix)
inline

Definition at line 72 of file camera.h.


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