|
Point Cloud Library (PCL)
1.15.1-dev
|
Camera class holds a set of camera parameters together with the window pos/size. More...
#include <pcl/visualization/common/common.h>
Public Member Functions | |
| Camera () | |
| Construct a camera with meaningful default values. More... | |
| Camera (vtkCamera &camera) | |
| Construct a camera by copying parameters from a VTK camera. More... | |
| Camera (vtkCamera &camera, vtkRenderWindow &window) | |
| Construct a camera by copying parameters from a VTK camera and a VTK render window. More... | |
| void | computeViewMatrix (Eigen::Matrix4d &view_mat) const |
| Computes View matrix for Camera (Based on gluLookAt) More... | |
| void | computeProjectionMatrix (Eigen::Matrix4d &proj) const |
| Computes Projection Matrix for Camera. More... | |
| template<typename PointT > | |
| void | cvtWindowCoordinates (const PointT &pt, Eigen::Vector4d &window_cord) const |
| Converts point to window coordinates. More... | |
| template<typename PointT > | |
| void | cvtWindowCoordinates (const PointT &pt, Eigen::Vector4d &window_cord, const Eigen::Matrix4d &composite_mat) const |
| Converts point to window coordinates. More... | |
Public Attributes | |
| double | focal [3] |
| Focal point or lookAt. More... | |
| double | pos [3] |
| Position of the camera. More... | |
| double | view [3] |
| Up vector of the camera. More... | |
| double | clip [2] |
| Clipping planes depths. More... | |
| double | fovy |
| Field of view angle in y direction (radians). More... | |
| double | window_size [2] |
| double | window_pos [2] |
Camera class holds a set of camera parameters together with the window pos/size.
| pcl::visualization::Camera::Camera | ( | ) |
Construct a camera with meaningful default values.
The camera is positioned at origin, looks along z-axis and has up-vector along y-axis. Window position and size are initialized with (0, 0) and (1, 1) respectively.
| pcl::visualization::Camera::Camera | ( | vtkCamera & | camera | ) |
Construct a camera by copying parameters from a VTK camera.
Window position and size are initialized with (0, 0) and (1, 1) respectively.
| pcl::visualization::Camera::Camera | ( | vtkCamera & | camera, |
| vtkRenderWindow & | window | ||
| ) |
Construct a camera by copying parameters from a VTK camera and a VTK render window.
| void pcl::visualization::Camera::computeProjectionMatrix | ( | Eigen::Matrix4d & | proj | ) | const |
Computes Projection Matrix for Camera.
| [out] | proj | the resultant matrix |
Referenced by cvtWindowCoordinates().
| void pcl::visualization::Camera::computeViewMatrix | ( | Eigen::Matrix4d & | view_mat | ) | const |
Computes View matrix for Camera (Based on gluLookAt)
| [out] | view_mat | the resultant matrix |
Referenced by cvtWindowCoordinates().
| void Camera::cvtWindowCoordinates | ( | const PointT & | pt, |
| Eigen::Vector4d & | window_cord | ||
| ) | const |
Converts point to window coordinates.
| [in] | pt | xyz point to be converted |
| [out] | window_cord | vector containing the pts' window X,Y, Z and 1 |
Definition at line 43 of file common.hpp.
References computeProjectionMatrix(), computeViewMatrix(), and view.
| void Camera::cvtWindowCoordinates | ( | const PointT & | pt, |
| Eigen::Vector4d & | window_cord, | ||
| const Eigen::Matrix4d & | composite_mat | ||
| ) | const |
Converts point to window coordinates.
| [in] | pt | xyz point to be converted |
| [out] | window_cord | vector containing the pts' window X,Y, Z and 1 |
| [in] | composite_mat | composite transformation matrix (proj*view) |
Definition at line 53 of file common.hpp.
References window_size.
| double pcl::visualization::Camera::clip[2] |
| double pcl::visualization::Camera::focal[3] |
| double pcl::visualization::Camera::fovy |
| double pcl::visualization::Camera::pos[3] |
| double pcl::visualization::Camera::view[3] |
Up vector of the camera.
Definition at line 177 of file common.h.
Referenced by cvtWindowCoordinates().
| double pcl::visualization::Camera::window_size[2] |
Definition at line 189 of file common.h.
Referenced by cvtWindowCoordinates().