pub struct WCone { /* private fields */ }Expand description
This 3D Widget defines a cone. :
Implementations§
Source§impl WCone
impl WCone
Sourcepub fn new(
length: f64,
radius: f64,
resolution: i32,
color: &impl ColorTraitConst,
) -> Result<WCone>
pub fn new( length: f64, radius: f64, resolution: i32, color: &impl ColorTraitConst, ) -> Result<WCone>
Sourcepub fn new_def(length: f64, radius: f64) -> Result<WCone>
pub fn new_def(length: f64, radius: f64) -> Result<WCone>
Constructs default cone oriented along x-axis with center of its base located at origin
§Parameters
- length: Length of the cone.
- radius: Radius of the cone.
- resolution: Resolution of the cone.
- color: Color of the cone.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- resolution: 6
- color: Color::white()
Sourcepub fn new_1(
radius: f64,
center: Point3d,
tip: Point3d,
resolution: i32,
color: &impl ColorTraitConst,
) -> Result<WCone>
pub fn new_1( radius: f64, center: Point3d, tip: Point3d, resolution: i32, color: &impl ColorTraitConst, ) -> Result<WCone>
Sourcepub fn new_def_1(radius: f64, center: Point3d, tip: Point3d) -> Result<WCone>
pub fn new_def_1(radius: f64, center: Point3d, tip: Point3d) -> Result<WCone>
Constructs repositioned planar cone.
§Parameters
- radius: Radius of the cone.
- center: Center of the cone base.
- tip: Tip of the cone.
- resolution: Resolution of the cone.
- color: Color of the cone.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- resolution: 6
- color: Color::white()
Trait Implementations§
Source§impl Boxed for WCone
impl Boxed for WCone
Source§unsafe fn from_raw(ptr: <WCone as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WCone as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WCone as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WCone as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WCone as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WCone as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(&mut self) -> <WCone as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <WCone as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl WConeTrait for WCone
impl WConeTrait for WCone
fn as_raw_mut_WCone(&mut self) -> *mut c_void
Source§impl WConeTraitConst for WCone
impl WConeTraitConst for WCone
fn as_raw_WCone(&self) -> *const c_void
Source§impl Widget3DTrait for WCone
impl Widget3DTrait for WCone
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 WCone
impl Widget3DTraitConst for WCone
Source§impl WidgetTrait for WCone
impl WidgetTrait for WCone
Source§impl WidgetTraitConst for WCone
impl WidgetTraitConst for WCone
impl Send for WCone
Auto Trait Implementations§
impl Freeze for WCone
impl RefUnwindSafe for WCone
impl !Sync for WCone
impl Unpin for WCone
impl UnwindSafe for WCone
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