Trait Viz3dTraitConst

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

    // Provided methods
    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

Constant methods for crate::viz::Viz3d

Required Methods§

Provided Methods§

Source

fn get_widget(&self, id: &str) -> Result<Widget>

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

fn get_widget_pose(&self, id: &str) -> Result<Affine3d>

Returns the current pose of a widget in the window.

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

fn get_camera(&self) -> Result<Camera>

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

Source

fn get_viewer_pose(&self) -> Result<Affine3d>

Returns the current pose of the viewer.

Source

fn get_window_size(&self) -> Result<Size>

Returns the current size of the window.

Source

fn get_window_name(&self) -> Result<String>

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

Source

fn get_screenshot(&self) -> Result<Mat>

Returns the Mat screenshot of the current scene.

Source

fn was_stopped(&self) -> Result<bool>

Returns whether the event loop has been stopped.

Implementors§