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

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

+ Inheritance diagram for Camera:
+ Collaboration 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 ()=default
 
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 20 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 ( )

◆ getCamera()

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

Definition at line 37 of file camera.h.

Referenced by Viewport::setCamera().

◆ getCameraActor()

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

Definition at line 43 of file camera.h.

◆ getDisplay()

bool Camera::getDisplay ( ) const
inline

Definition at line 55 of file camera.h.

◆ getFrustum()

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

Definition at line 67 of file camera.h.

◆ getHullActor()

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

Definition at line 49 of file camera.h.

◆ getModelViewMatrix()

Eigen::Matrix4d Camera::getModelViewMatrix ( )
inline

Definition at line 92 of file camera.h.

◆ getPosition()

Eigen::Vector3d Camera::getPosition ( )
inline

Definition at line 108 of file camera.h.

◆ getProjectionMatrix()

Eigen::Matrix4d Camera::getProjectionMatrix ( )
inline

Definition at line 80 of file camera.h.

◆ getViewProjectionMatrix()

Eigen::Matrix4d Camera::getViewProjectionMatrix ( )
inline

Definition at line 98 of file camera.h.

◆ printFrustum()

void Camera::printFrustum ( )

◆ render()

void Camera::render ( vtkRenderer *  renderer)
overridevirtual

Reimplemented from Object.

◆ setClippingRange()

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

Definition at line 122 of file camera.h.

◆ setDisplay()

void Camera::setDisplay ( bool  display)
inline

Definition at line 61 of file camera.h.

◆ setModelViewMatrix()

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

Definition at line 86 of file camera.h.

◆ setProjectionMatrix()

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

Definition at line 74 of file camera.h.


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