pub struct WCircle { /* private fields */ }
Expand description
This 3D Widget defines a circle.
Implementations§
Source§impl WCircle
impl WCircle
Sourcepub fn new_def(radius: f64) -> Result<WCircle>
pub fn new_def(radius: f64) -> Result<WCircle>
Constructs default planar circle centered at origin with plane normal along z-axis
§Parameters
- radius: Radius of the circle.
- thickness: Thickness of the circle.
- color: Color of the circle.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- thickness: 0.01
- color: Color::white()
Sourcepub fn new_1(
radius: f64,
center: Point3d,
normal: Vec3d,
thickness: f64,
color: &impl ColorTraitConst,
) -> Result<WCircle>
pub fn new_1( radius: f64, center: Point3d, normal: Vec3d, thickness: f64, color: &impl ColorTraitConst, ) -> Result<WCircle>
Sourcepub fn new_def_1(radius: f64, center: Point3d, normal: Vec3d) -> Result<WCircle>
pub fn new_def_1(radius: f64, center: Point3d, normal: Vec3d) -> Result<WCircle>
Constructs repositioned planar circle.
§Parameters
- radius: Radius of the circle.
- center: Center of the circle.
- normal: Normal of the plane in which the circle lies.
- thickness: Thickness of the circle.
- color: Color of the circle.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- thickness: 0.01
- color: Color::white()
Trait Implementations§
Source§impl Boxed for WCircle
impl Boxed for WCircle
Source§unsafe fn from_raw(ptr: <WCircle as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WCircle as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WCircle as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WCircle as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WCircle as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WCircle as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <WCircle as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <WCircle as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl WCircleTrait for WCircle
impl WCircleTrait for WCircle
fn as_raw_mut_WCircle(&mut self) -> *mut c_void
Source§impl WCircleTraitConst for WCircle
impl WCircleTraitConst for WCircle
fn as_raw_WCircle(&self) -> *const c_void
Source§impl Widget3DTrait for WCircle
impl Widget3DTrait for WCircle
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 WCircle
impl Widget3DTraitConst for WCircle
Source§impl WidgetTrait for WCircle
impl WidgetTrait for WCircle
Source§impl WidgetTraitConst for WCircle
impl WidgetTraitConst for WCircle
impl Send for WCircle
Auto Trait Implementations§
impl Freeze for WCircle
impl RefUnwindSafe for WCircle
impl !Sync for WCircle
impl Unpin for WCircle
impl UnwindSafe for WCircle
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