open3d.visualization.ViewControl

class open3d.visualization.ViewControl

View controller for visualizer.

__init__(self: open3d.cpu.pybind.visualization.ViewControl) → None

Default constructor

change_field_of_view(self, step=0.45)

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, parameter)
Parameters

parameter (open3d.cpu.pybind.camera.PinholeCameraParameters) – The pinhole camera parameter to convert from.

Returns

bool

convert_to_pinhole_camera_parameters(self)

Function to convert ViewControl to camera.PinholeCameraParameters

Returns

open3d.cpu.pybind.camera.PinholeCameraParameters

get_field_of_view(self)

Function to get field of view

Returns

float

rotate(self, x, y, xo=0.0, yo=0.0)

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, scale)

Function to process scaling

Parameters

scale (float) – Scale ratio.

Returns

None

set_constant_z_far(self, z_far)

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, z_near)

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.cpu.pybind.visualization.ViewControl, front: numpy.ndarray[float64[3, 1]]) → None

Set the front vector of the visualizer

set_lookat(self: open3d.cpu.pybind.visualization.ViewControl, lookat: numpy.ndarray[float64[3, 1]]) → None

Set the lookat vector of the visualizer

set_up(self: open3d.cpu.pybind.visualization.ViewControl, up: numpy.ndarray[float64[3, 1]]) → None

Set the up vector of the visualizer

set_zoom(self: open3d.cpu.pybind.visualization.ViewControl, zoom: float) → None

Set the zoom of the visualizer

translate(self, x, y, xo=0.0, yo=0.0)

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)

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)

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