pub struct WCube { /* private fields */ }
Expand description
This 3D Widget defines a cube.
Implementations§
source§impl WCube
impl WCube
sourcepub fn new(
min_point: Point3d,
max_point: Point3d,
wire_frame: bool,
color: &impl ColorTraitConst,
) -> Result<WCube>
pub fn new( min_point: Point3d, max_point: Point3d, wire_frame: bool, color: &impl ColorTraitConst, ) -> Result<WCube>
Constructs a WCube.
§Parameters
- min_point: Specifies minimum (or maximum) point of the bounding box.
- max_point: Specifies maximum (or minimum) point of the bounding box, opposite to the first parameter.
- wire_frame: If true, cube is represented as wireframe.
- color: Color of the cube.
§C++ default parameters
- min_point: Vec3d::all(-0.5)
- max_point: Vec3d::all(0.5)
- wire_frame: true
- color: Color::white()
sourcepub fn new_def() -> Result<WCube>
pub fn new_def() -> Result<WCube>
Constructs a WCube.
§Parameters
- min_point: Specifies minimum (or maximum) point of the bounding box.
- max_point: Specifies maximum (or minimum) point of the bounding box, opposite to the first parameter.
- wire_frame: If true, cube is represented as wireframe.
- color: Color of the cube.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- min_point: Vec3d::all(-0.5)
- max_point: Vec3d::all(0.5)
- wire_frame: true
- color: Color::white()
Trait Implementations§
source§impl Boxed for WCube
impl Boxed for WCube
source§unsafe fn from_raw(ptr: <WCube as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WCube as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <WCube as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WCube as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <WCube as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WCube as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(&mut self) -> <WCube as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <WCube as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl WCubeTrait for WCube
impl WCubeTrait for WCube
fn as_raw_mut_WCube(&mut self) -> *mut c_void
source§impl WCubeTraitConst for WCube
impl WCubeTraitConst for WCube
fn as_raw_WCube(&self) -> *const c_void
source§impl Widget3DTrait for WCube
impl Widget3DTrait for WCube
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 WCube
impl Widget3DTraitConst for WCube
source§impl WidgetTrait for WCube
impl WidgetTrait for WCube
source§impl WidgetTraitConst for WCube
impl WidgetTraitConst for WCube
impl Send for WCube
Auto Trait Implementations§
impl Freeze for WCube
impl RefUnwindSafe for WCube
impl !Sync for WCube
impl Unpin for WCube
impl UnwindSafe for WCube
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