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 OpenCVType<'_>>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WCircle as OpenCVType<'_>>::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