Trait WImage3DTrait

Source
pub trait WImage3DTrait: WImage3DTraitConst + Widget3DTrait {
    // Required method
    fn as_raw_mut_WImage3D(&mut self) -> *mut c_void;

    // Provided methods
    fn set_image(&mut self, image: &impl ToInputArray) -> Result<()> { ... }
    fn set_size(&mut self, size: Size) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::WImage3D

Required Methods§

Provided Methods§

Source

fn set_image(&mut self, image: &impl ToInputArray) -> Result<()>

Sets the image content of the widget.

§Parameters
  • image: BGR or Gray-Scale image.
Source

fn set_size(&mut self, size: Size) -> Result<()>

Sets the image size of the widget.

§Parameters
  • size: the new size of the image.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§