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§
fn as_raw_Viz3d(&self) -> *const c_void
Provided Methods§
Sourcefn get_widget(&self, id: &str) -> Result<Widget>
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.
Sourcefn get_widget_pose(&self, id: &str) -> Result<Affine3d>
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.
Sourcefn get_camera(&self) -> Result<Camera>
fn get_camera(&self) -> Result<Camera>
Returns a camera object that contains intrinsic parameters of the current viewer.
Sourcefn get_viewer_pose(&self) -> Result<Affine3d>
fn get_viewer_pose(&self) -> Result<Affine3d>
Returns the current pose of the viewer.
Sourcefn get_window_size(&self) -> Result<Size>
fn get_window_size(&self) -> Result<Size>
Returns the current size of the window.
Sourcefn get_window_name(&self) -> Result<String>
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.
Sourcefn get_screenshot(&self) -> Result<Mat>
fn get_screenshot(&self) -> Result<Mat>
Returns the Mat screenshot of the current scene.
Sourcefn was_stopped(&self) -> Result<bool>
fn was_stopped(&self) -> Result<bool>
Returns whether the event loop has been stopped.