open3d.visualization.ViewControl#
- class open3d.visualization.ViewControl#
View controller for visualizer.
- __init__(self: open3d.visualization.ViewControl) None #
Default constructor
- camera_local_rotate(self: open3d.visualization.ViewControl, x: float, y: float, xo: float = 0.0, yo: float = 0.0) None #
Function to process rotation of camera in a localcoordinate frame
- camera_local_translate(self: open3d.visualization.ViewControl, forward: float, right: float, up: float) None #
Function to process translation of camera
- change_field_of_view(self: open3d.visualization.ViewControl, step: float = 0.45) None #
Function to change field of view
- Parameters:
step (float, optional, default=0.45) – The step to change field of view.
- Returns:
None
- convert_from_pinhole_camera_parameters(self: open3d.visualization.ViewControl, parameter: open3d.camera.PinholeCameraParameters, allow_arbitrary: bool = False) bool #
- Parameters:
parameter (open3d.camera.PinholeCameraParameters) – The pinhole camera parameter to convert from.
allow_arbitrary (bool, optional, default=False) –
- Returns:
bool
- convert_to_pinhole_camera_parameters(self: open3d.visualization.ViewControl) open3d.camera.PinholeCameraParameters #
Function to convert ViewControl to camera::PinholeCameraParameters
- Returns:
open3d.camera.PinholeCameraParameters
- get_field_of_view(self: open3d.visualization.ViewControl) float #
Function to get field of view
- Returns:
float
- reset_camera_local_rotate(self: open3d.visualization.ViewControl) None #
Resets the coordinate frame for local camera rotations
- rotate(self: open3d.visualization.ViewControl, x: float, y: float, xo: float = 0.0, yo: float = 0.0) None #
Function to process rotation
- Parameters:
x (float) – Distance the mouse cursor has moved in x-axis.
y (float) – Distance the mouse cursor has moved in y-axis.
xo (float, optional, default=0.0) – Original point coordinate of the mouse in x-axis.
yo (float, optional, default=0.0) – Original point coordinate of the mouse in y-axis.
- Returns:
None
- scale(self: open3d.visualization.ViewControl, scale: float) None #
Function to process scaling
- Parameters:
scale (float) – Scale ratio.
- Returns:
None
- set_constant_z_far(self: open3d.visualization.ViewControl, z_far: float) None #
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 (float) – The depth of the far z-plane of the visualizer.
- Returns:
None
- set_constant_z_near(self: open3d.visualization.ViewControl, z_near: float) None #
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 (float) – The depth of the near z-plane of the visualizer.
- Returns:
None
- set_front(self: open3d.visualization.ViewControl, front: numpy.ndarray[numpy.float64[3, 1]]) None #
Set the front vector of the visualizer
- set_lookat(self: open3d.visualization.ViewControl, lookat: numpy.ndarray[numpy.float64[3, 1]]) None #
Set the lookat vector of the visualizer
- set_up(self: open3d.visualization.ViewControl, up: numpy.ndarray[numpy.float64[3, 1]]) None #
Set the up vector of the visualizer
- set_zoom(self: open3d.visualization.ViewControl, zoom: float) None #
Set the zoom of the visualizer
- translate(self: open3d.visualization.ViewControl, x: float, y: float, xo: float = 0.0, yo: float = 0.0) None #
Function to process translation
- Parameters:
x (float) – Distance the mouse cursor has moved in x-axis.
y (float) – Distance the mouse cursor has moved in y-axis.
xo (float, optional, default=0.0) – Original point coordinate of the mouse in x-axis.
yo (float, optional, default=0.0) – Original point coordinate of the mouse in y-axis.
- Returns:
None
- unset_constant_z_far(self: open3d.visualization.ViewControl) None #
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.
- Returns:
None
- unset_constant_z_near(self: open3d.visualization.ViewControl) None #
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.
- Returns:
None