pub struct WCylinder { /* private fields */ }
Expand description
This 3D Widget defines a cylinder. :
Implementations§
source§impl WCylinder
impl WCylinder
sourcepub fn new(
axis_point1: Point3d,
axis_point2: Point3d,
radius: f64,
numsides: i32,
color: &Color
) -> Result<WCylinder>
pub fn new( axis_point1: Point3d, axis_point2: Point3d, radius: f64, numsides: i32, color: &Color ) -> Result<WCylinder>
Constructs a WCylinder.
Parameters
- axis_point1: A point1 on the axis of the cylinder.
- axis_point2: A point2 on the axis of the cylinder.
- radius: Radius of the cylinder.
- numsides: Resolution of the cylinder.
- color: Color of the cylinder.
C++ default parameters
- numsides: 30
- color: Color::white()
Trait Implementations§
source§impl Boxed for WCylinder
impl Boxed for WCylinder
source§impl WCylinderTrait for WCylinder
impl WCylinderTrait for WCylinder
fn as_raw_mut_WCylinder(&mut self) -> *mut c_void
source§impl WCylinderTraitConst for WCylinder
impl WCylinderTraitConst for WCylinder
fn as_raw_WCylinder(&self) -> *const c_void
source§impl Widget3DTrait for WCylinder
impl Widget3DTrait for WCylinder
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 WCylinder
impl Widget3DTraitConst for WCylinder
source§impl WidgetTrait for WCylinder
impl WidgetTrait for WCylinder
source§impl WidgetTraitConst for WCylinder
impl WidgetTraitConst for WCylinder
impl Send for WCylinder
Auto Trait Implementations§
impl RefUnwindSafe for WCylinder
impl !Sync for WCylinder
impl Unpin for WCylinder
impl UnwindSafe for WCylinder
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