[][src]Trait opencv::viz::WWidgetMergerTrait

pub trait WWidgetMergerTrait: Widget3DTrait {
    pub fn as_raw_WWidgetMerger(&self) -> *const c_void;
pub fn as_raw_mut_WWidgetMerger(&mut self) -> *mut c_void; pub fn add_widget(
        &mut self,
        widget: &Widget3D,
        pose: Affine3d
    ) -> Result<()> { ... }
pub fn finalize(&mut self) -> Result<()> { ... } }

This class allows to merge several widgets to single one.

It has quite limited functionality and can't merge widgets with different attributes. For instance, if widgetA has color array and widgetB has only global color defined, then result of merge won't have color at all. The class is suitable for merging large amount of similar widgets. :

Required methods

Loading content...

Provided methods

pub fn add_widget(&mut self, widget: &Widget3D, pose: Affine3d) -> Result<()>[src]

Add widget to merge with optional position change

C++ default parameters

  • pose: Affine3d::Identity()

pub fn finalize(&mut self) -> Result<()>[src]

Repacks internal structure to single widget

Loading content...

Implementors

impl WWidgetMergerTrait for WWidgetMerger[src]

Loading content...