pub struct WWidgetMerger { /* private fields */ }Expand description
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. :
Implementations§
Source§impl WWidgetMerger
 
impl WWidgetMerger
pub fn default() -> Result<WWidgetMerger>
Trait Implementations§
Source§impl Boxed for WWidgetMerger
 
impl Boxed for WWidgetMerger
Source§unsafe fn from_raw(
    ptr: <WWidgetMerger as OpenCVFromExtern>::ExternReceive,
) -> Self
 
unsafe fn from_raw( ptr: <WWidgetMerger as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSendMut
 
fn into_raw(self) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSend
 
fn as_raw(&self) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
    &mut self,
) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSendMut
 
fn as_raw_mut( &mut self, ) -> <WWidgetMerger as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for WWidgetMerger
 
impl Debug for WWidgetMerger
Source§impl Drop for WWidgetMerger
 
impl Drop for WWidgetMerger
Source§impl From<WWidgetMerger> for Widget
 
impl From<WWidgetMerger> for Widget
Source§fn from(s: WWidgetMerger) -> Self
 
fn from(s: WWidgetMerger) -> Self
Converts to this type from the input type.
Source§impl From<WWidgetMerger> for Widget3D
 
impl From<WWidgetMerger> for Widget3D
Source§fn from(s: WWidgetMerger) -> Self
 
fn from(s: WWidgetMerger) -> Self
Converts to this type from the input type.
Source§impl WWidgetMergerTrait for WWidgetMerger
 
impl WWidgetMergerTrait for WWidgetMerger
fn as_raw_mut_WWidgetMerger(&mut self) -> *mut c_void
Source§fn add_widget(
    &mut self,
    widget: &impl Widget3DTraitConst,
    pose: Affine3d,
) -> Result<()>
 
fn add_widget( &mut self, widget: &impl Widget3DTraitConst, pose: Affine3d, ) -> Result<()>
Add widget to merge with optional position change Read more
Source§fn add_widget_def(&mut self, widget: &impl Widget3DTraitConst) -> Result<()>
 
fn add_widget_def(&mut self, widget: &impl Widget3DTraitConst) -> Result<()>
Add widget to merge with optional position change Read more
Source§impl WWidgetMergerTraitConst for WWidgetMerger
 
impl WWidgetMergerTraitConst for WWidgetMerger
fn as_raw_WWidgetMerger(&self) -> *const c_void
Source§impl Widget3DTrait for WWidgetMerger
 
impl Widget3DTrait for WWidgetMerger
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
Source§fn update_pose(&mut self, pose: Affine3d) -> Result<()>
 
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more
Source§impl Widget3DTraitConst for WWidgetMerger
 
impl Widget3DTraitConst for WWidgetMerger
Source§impl WidgetTrait for WWidgetMerger
 
impl WidgetTrait for WWidgetMerger
Source§impl WidgetTraitConst for WWidgetMerger
 
impl WidgetTraitConst for WWidgetMerger
impl Send for WWidgetMerger
Auto Trait Implementations§
impl Freeze for WWidgetMerger
impl RefUnwindSafe for WWidgetMerger
impl !Sync for WWidgetMerger
impl Unpin for WWidgetMerger
impl UnwindSafe for WWidgetMerger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Mat> ModifyInplace for Matwhere
    Mat: Boxed,
 
impl<Mat> ModifyInplace for Matwhere
    Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
    &mut self,
    f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
 
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a 
Mat or another similar object. By passing
a mutable reference to the Mat to this function your closure will get called with the read reference and a write references
to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold. Read more