pub struct WCone { /* private fields */ }
Expand description
This 3D Widget defines a cone. :
Implementations
sourceimpl WCone
impl WCone
sourcepub fn new(
length: f64,
radius: f64,
resolution: i32,
color: &Color
) -> Result<WCone>
pub fn new(
length: f64,
radius: f64,
resolution: i32,
color: &Color
) -> Result<WCone>
Constructs default cone oriented along x-axis with center of its base located at origin
Parameters
- length: Length of the cone.
- radius: Radius of the cone.
- resolution: Resolution of the cone.
- color: Color of the cone.
C++ default parameters
- resolution: 6
- color: Color::white()
sourcepub fn new_1(
radius: f64,
center: Point3d,
tip: Point3d,
resolution: i32,
color: &Color
) -> Result<WCone>
pub fn new_1(
radius: f64,
center: Point3d,
tip: Point3d,
resolution: i32,
color: &Color
) -> Result<WCone>
Constructs repositioned planar cone.
Parameters
- radius: Radius of the cone.
- center: Center of the cone base.
- tip: Tip of the cone.
- resolution: Resolution of the cone.
- color: Color of the cone.
C++ default parameters
- resolution: 6
- color: Color::white()
Trait Implementations
sourceimpl Boxed for WCone
impl Boxed for WCone
sourceimpl WConeTrait for WCone
impl WConeTrait for WCone
fn as_raw_mut_WCone(&mut self) -> *mut c_void
sourceimpl WConeTraitConst for WCone
impl WConeTraitConst for WCone
fn as_raw_WCone(&self) -> *const c_void
sourceimpl Widget3DTrait for WCone
impl Widget3DTrait for WCone
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 WCone
impl Widget3DTraitConst for WCone
sourceimpl WidgetTrait for WCone
impl WidgetTrait for WCone
sourceimpl WidgetTraitConst for WCone
impl WidgetTraitConst for WCone
fn as_raw_Widget(&self) -> *const c_void
impl Send for WCone
Auto Trait Implementations
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