open3d.visualization.ViewControl

class open3d.visualization.ViewControl

View controller for visualizer.

__init__(self: open3d.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.camera.PinholeCameraParameters) – The pinhole camera parameter to convert from.

Returns

bool

convert_to_pinhole_camera_parameters(self)

Function to convert visualization.ViewControl to camera.PinholeCameraParameters

Returns

open3d.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

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