Trait opencv::hub_prelude::Viz3dTraitConst[][src]

pub trait Viz3dTraitConst {
    fn as_raw_Viz3d(&self) -> *const c_void;

    fn get_widget(&self, id: &str) -> Result<Widget> { ... }
fn get_widget_pose(&self, id: &str) -> Result<Affine3d> { ... }
fn get_camera(&self) -> Result<Camera> { ... }
fn get_viewer_pose(&self) -> Result<Affine3d> { ... }
fn get_window_size(&self) -> Result<Size> { ... }
fn get_window_name(&self) -> Result<String> { ... }
fn get_screenshot(&self) -> Result<Mat> { ... }
fn was_stopped(&self) -> Result<bool> { ... } }
Expand description

The Viz3d class represents a 3D visualizer window. This class is implicitly shared.

Required methods

Provided methods

Retrieves a widget from the window.

A widget is implicitly shared; that is, if the returned widget is modified, the changes will be immediately visible in the window.

Parameters
  • id: The id of the widget that will be returned.

Returns the current pose of a widget in the window.

Parameters
  • id: The id of the widget whose pose will be returned.

Returns a camera object that contains intrinsic parameters of the current viewer.

Returns the current pose of the viewer.

Returns the current size of the window.

Returns the name of the window which has been set in the constructor. Viz - is prepended to the name if necessary.

Returns the Mat screenshot of the current scene.

Returns whether the event loop has been stopped.

Implementors