pub struct WCone { /* private fields */ }
Expand description
This 3D Widget defines a cone. :
Implementations§
source§impl 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§
source§impl Boxed for WCone
impl Boxed for WCone
source§impl WConeTrait for WCone
impl WConeTrait for WCone
fn as_raw_mut_WCone(&mut self) -> *mut c_void
source§impl WConeTraitConst for WCone
impl WConeTraitConst for WCone
fn as_raw_WCone(&self) -> *const c_void
source§impl Widget3DTrait for WCone
impl Widget3DTrait for WCone
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 WCone
impl Widget3DTraitConst for WCone
source§impl WidgetTrait for WCone
impl WidgetTrait for WCone
source§impl WidgetTraitConst for WCone
impl WidgetTraitConst for WCone
impl Send for WCone
Auto Trait Implementations§
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