View controller for visualizer.
More...
#include <ViewControl.h>
View controller for visualizer.
◆ ProjectionType
Enumerator |
---|
Perspective | |
Orthogonal | |
◆ ~ViewControl()
virtual open3d::visualization::ViewControl::~ViewControl |
( |
| ) |
|
|
inlinevirtual |
◆ ChangeFieldOfView()
void open3d::visualization::ViewControl::ChangeFieldOfView |
( |
double |
step | ) |
|
|
virtual |
◆ ChangeWindowSize()
void open3d::visualization::ViewControl::ChangeWindowSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
virtual |
◆ ConvertFromPinholeCameraParameters()
Function to get view controller from pinhole camera parameters.
- Parameters
-
parameters | The pinhole camera parameter to convert from. |
◆ ConvertFromViewParameters()
bool open3d::visualization::ViewControl::ConvertFromViewParameters |
( |
const ViewParameters & |
status | ) |
|
◆ ConvertToPinholeCameraParameters()
Function to get equivalent pinhole camera parameters (does not support orthogonal since it is not a real camera view).
- Parameters
-
parameters | The pinhole camera parameter to convert to. |
◆ ConvertToViewParameters()
bool open3d::visualization::ViewControl::ConvertToViewParameters |
( |
ViewParameters & |
status | ) |
const |
Function to get equivalent view parameters (support orthogonal)
◆ FitInGeometry()
void open3d::visualization::ViewControl::FitInGeometry |
( |
const geometry::Geometry & |
geometry | ) |
|
|
inline |
◆ GetBoundingBox()
◆ GetEye()
◆ GetFieldOfView()
double open3d::visualization::ViewControl::GetFieldOfView |
( |
| ) |
const |
|
inline |
Function to get field of view.
◆ GetFront()
◆ GetLookat()
◆ GetModelMatrix()
◆ GetMVPMatrix()
◆ GetProjectionMatrix()
◆ GetProjectionType()
◆ GetRight()
◆ GetUp()
◆ GetViewMatrix()
◆ GetWindowHeight()
int open3d::visualization::ViewControl::GetWindowHeight |
( |
| ) |
const |
|
inline |
◆ GetWindowWidth()
int open3d::visualization::ViewControl::GetWindowWidth |
( |
| ) |
const |
|
inline |
◆ GetZFar()
double open3d::visualization::ViewControl::GetZFar |
( |
| ) |
const |
|
inline |
◆ GetZNear()
double open3d::visualization::ViewControl::GetZNear |
( |
| ) |
const |
|
inline |
◆ Reset()
void open3d::visualization::ViewControl::Reset |
( |
| ) |
|
|
virtual |
◆ ResetBoundingBox()
void open3d::visualization::ViewControl::ResetBoundingBox |
( |
| ) |
|
|
inline |
◆ Roll()
void open3d::visualization::ViewControl::Roll |
( |
double |
x | ) |
|
|
virtual |
- Parameters
-
x | is the distances the mouse cursor has moved. Coordinates are measured in screen coordinates relative to the top-left corner of the window client area. |
◆ Rotate()
void open3d::visualization::ViewControl::Rotate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
xo = 0.0 , |
|
|
double |
yo = 0.0 |
|
) |
| |
|
virtual |
◆ Scale()
void open3d::visualization::ViewControl::Scale |
( |
double |
scale | ) |
|
|
virtual |
◆ SetConstantZFar()
void open3d::visualization::ViewControl::SetConstantZFar |
( |
double |
z_far | ) |
|
|
inline |
Function to change the far z-plane of the visualizer to a constant value, i.e., independent of zoom and bounding box size.
- Parameters
-
z_far | The depth of the far z-plane of the visualizer. |
◆ SetConstantZNear()
void open3d::visualization::ViewControl::SetConstantZNear |
( |
double |
z_near | ) |
|
|
inline |
Function to change the near z-plane of the visualizer to a constant value, i.e., independent of zoom and bounding box size.
- Parameters
-
z_near | The depth of the near z-plane of the visualizer. |
◆ SetFront()
void open3d::visualization::ViewControl::SetFront |
( |
const Eigen::Vector3d & |
front | ) |
|
◆ SetLookat()
void open3d::visualization::ViewControl::SetLookat |
( |
const Eigen::Vector3d & |
lookat | ) |
|
◆ SetProjectionParameters()
void open3d::visualization::ViewControl::SetProjectionParameters |
( |
| ) |
|
◆ SetUp()
void open3d::visualization::ViewControl::SetUp |
( |
const Eigen::Vector3d & |
up | ) |
|
◆ SetViewMatrices()
void open3d::visualization::ViewControl::SetViewMatrices |
( |
const Eigen::Matrix4d & |
model_matrix = Eigen::Matrix4d::Identity() | ) |
|
Function to set view points This function obtains OpenGL context and calls OpenGL functions to set the view point.
◆ SetZoom()
void open3d::visualization::ViewControl::SetZoom |
( |
const double |
zoom | ) |
|
◆ Translate()
void open3d::visualization::ViewControl::Translate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
xo = 0.0 , |
|
|
double |
yo = 0.0 |
|
) |
| |
|
virtual |
◆ UnsetConstantZFar()
void open3d::visualization::ViewControl::UnsetConstantZFar |
( |
| ) |
|
|
inline |
Function to remove a previously set constant z far value, i.e., far z-plane of the visualizer is dynamically set dependent on zoom and bounding box size.
◆ UnsetConstantZNear()
void open3d::visualization::ViewControl::UnsetConstantZNear |
( |
| ) |
|
|
inline |
Function to remove a previously set constant z near value, i.e., near z-plane of the visualizer is dynamically set dependent on zoom and bounding box size.
◆ aspect_
double open3d::visualization::ViewControl::aspect_ |
|
protected |
◆ bounding_box_
◆ constant_z_far_
double open3d::visualization::ViewControl::constant_z_far_ = -1 |
|
protected |
◆ constant_z_near_
double open3d::visualization::ViewControl::constant_z_near_ = -1 |
|
protected |
◆ distance_
double open3d::visualization::ViewControl::distance_ |
|
protected |
◆ eye_
Eigen::Vector3d open3d::visualization::ViewControl::eye_ |
|
protected |
◆ field_of_view_
double open3d::visualization::ViewControl::field_of_view_ |
|
protected |
◆ FIELD_OF_VIEW_DEFAULT
const double open3d::visualization::ViewControl::FIELD_OF_VIEW_DEFAULT = 60.0 |
|
static |
◆ FIELD_OF_VIEW_MAX
const double open3d::visualization::ViewControl::FIELD_OF_VIEW_MAX = 90.0 |
|
static |
◆ FIELD_OF_VIEW_MIN
const double open3d::visualization::ViewControl::FIELD_OF_VIEW_MIN = 5.0 |
|
static |
◆ FIELD_OF_VIEW_STEP
const double open3d::visualization::ViewControl::FIELD_OF_VIEW_STEP = 5.0 |
|
static |
◆ front_
Eigen::Vector3d open3d::visualization::ViewControl::front_ |
|
protected |
◆ lookat_
Eigen::Vector3d open3d::visualization::ViewControl::lookat_ |
|
protected |
◆ model_matrix_
◆ MVP_matrix_
◆ projection_matrix_
◆ right_
Eigen::Vector3d open3d::visualization::ViewControl::right_ |
|
protected |
◆ ROTATION_RADIAN_PER_PIXEL
const double open3d::visualization::ViewControl::ROTATION_RADIAN_PER_PIXEL = 0.003 |
|
static |
◆ up_
Eigen::Vector3d open3d::visualization::ViewControl::up_ |
|
protected |
◆ view_matrix_
◆ view_ratio_
double open3d::visualization::ViewControl::view_ratio_ |
|
protected |
◆ window_height_
int open3d::visualization::ViewControl::window_height_ = 0 |
|
protected |
◆ window_width_
int open3d::visualization::ViewControl::window_width_ = 0 |
|
protected |
◆ z_far_
double open3d::visualization::ViewControl::z_far_ |
|
protected |
◆ z_near_
double open3d::visualization::ViewControl::z_near_ |
|
protected |
◆ zoom_
double open3d::visualization::ViewControl::zoom_ |
|
protected |
◆ ZOOM_DEFAULT
const double open3d::visualization::ViewControl::ZOOM_DEFAULT = 0.7 |
|
static |
◆ ZOOM_MAX
const double open3d::visualization::ViewControl::ZOOM_MAX = 2.0 |
|
static |
◆ ZOOM_MIN
const double open3d::visualization::ViewControl::ZOOM_MIN = 0.02 |
|
static |
◆ ZOOM_STEP
const double open3d::visualization::ViewControl::ZOOM_STEP = 0.02 |
|
static |
The documentation for this class was generated from the following files:
- /home/yixing/repo/Open3D/src/Open3D/Visualization/Visualizer/ViewControl.h
- /home/yixing/repo/Open3D/src/Open3D/Visualization/Visualizer/ViewControl.cpp