pub struct WCircle { /* private fields */ }
Expand description
This 3D Widget defines a circle.
Implementations§
source§impl WCircle
impl WCircle
sourcepub fn new(radius: f64, thickness: f64, color: &Color) -> Result<WCircle>
pub fn new(radius: f64, thickness: f64, color: &Color) -> Result<WCircle>
Constructs default planar circle centered at origin with plane normal along z-axis
Parameters
- radius: Radius of the circle.
- thickness: Thickness of the circle.
- color: Color of the circle.
C++ default parameters
- thickness: 0.01
- color: Color::white()
sourcepub fn new_1(
radius: f64,
center: Point3d,
normal: Vec3d,
thickness: f64,
color: &Color
) -> Result<WCircle>
pub fn new_1( radius: f64, center: Point3d, normal: Vec3d, thickness: f64, color: &Color ) -> Result<WCircle>
Constructs repositioned planar circle.
Parameters
- radius: Radius of the circle.
- center: Center of the circle.
- normal: Normal of the plane in which the circle lies.
- thickness: Thickness of the circle.
- color: Color of the circle.
C++ default parameters
- thickness: 0.01
- color: Color::white()
Trait Implementations§
source§impl Boxed for WCircle
impl Boxed for WCircle
source§impl WCircleTrait for WCircle
impl WCircleTrait for WCircle
fn as_raw_mut_WCircle(&mut self) -> *mut c_void
source§impl WCircleTraitConst for WCircle
impl WCircleTraitConst for WCircle
fn as_raw_WCircle(&self) -> *const c_void
source§impl Widget3DTrait for WCircle
impl Widget3DTrait for WCircle
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 WCircle
impl Widget3DTraitConst for WCircle
source§impl WidgetTrait for WCircle
impl WidgetTrait for WCircle
source§impl WidgetTraitConst for WCircle
impl WidgetTraitConst for WCircle
impl Send for WCircle
Auto Trait Implementations§
impl RefUnwindSafe for WCircle
impl !Sync for WCircle
impl Unpin for WCircle
impl UnwindSafe for WCircle
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