pub struct WCylinder { /* private fields */ }
Expand description
This 3D Widget defines a cylinder. :
Implementations
sourceimpl 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
sourceimpl Boxed for WCylinder
impl Boxed for WCylinder
sourceimpl WCylinderTrait for WCylinder
impl WCylinderTrait for WCylinder
fn as_raw_mut_WCylinder(&mut self) -> *mut c_void
sourceimpl WCylinderTraitConst for WCylinder
impl WCylinderTraitConst for WCylinder
fn as_raw_WCylinder(&self) -> *const c_void
sourceimpl Widget3DTrait for WCylinder
impl Widget3DTrait for WCylinder
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
sourcefn 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
sourceimpl Widget3DTraitConst for WCylinder
impl Widget3DTraitConst for WCylinder
sourceimpl WidgetTrait for WCylinder
impl WidgetTrait for WCylinder
sourceimpl WidgetTraitConst for WCylinder
impl WidgetTraitConst for WCylinder
fn as_raw_Widget(&self) -> *const c_void
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more