pub struct WSphere { /* private fields */ }
Expand description
This 3D Widget defines a sphere. :
Implementations§
source§impl WSphere
impl WSphere
sourcepub fn new(
center: Point3d,
radius: f64,
sphere_resolution: i32,
color: &impl ColorTraitConst
) -> Result<WSphere>
pub fn new( center: Point3d, radius: f64, sphere_resolution: i32, color: &impl ColorTraitConst ) -> Result<WSphere>
sourcepub fn new_def(center: Point3d, radius: f64) -> Result<WSphere>
pub fn new_def(center: Point3d, radius: f64) -> Result<WSphere>
Constructs a WSphere.
§Parameters
- center: Center of the sphere.
- radius: Radius of the sphere.
- sphere_resolution: Resolution of the sphere.
- color: Color of the sphere.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- sphere_resolution: 10
- color: Color::white()
Trait Implementations§
source§impl Boxed for WSphere
impl Boxed for WSphere
source§unsafe fn from_raw(ptr: <WSphere as OpenCVType<'_>>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WSphere as OpenCVType<'_>>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <WSphere as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WSphere as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <WSphere as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WSphere as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <WSphere as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <WSphere as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl WSphereTrait for WSphere
impl WSphereTrait for WSphere
fn as_raw_mut_WSphere(&mut self) -> *mut c_void
source§impl WSphereTraitConst for WSphere
impl WSphereTraitConst for WSphere
fn as_raw_WSphere(&self) -> *const c_void
source§impl Widget3DTrait for WSphere
impl Widget3DTrait for WSphere
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 WSphere
impl Widget3DTraitConst for WSphere
source§impl WidgetTrait for WSphere
impl WidgetTrait for WSphere
source§impl WidgetTraitConst for WSphere
impl WidgetTraitConst for WSphere
impl Send for WSphere
Auto Trait Implementations§
impl Freeze for WSphere
impl RefUnwindSafe for WSphere
impl !Sync for WSphere
impl Unpin for WSphere
impl UnwindSafe for WSphere
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