pub struct WCircle { /* private fields */ }
Expand description
This 3D Widget defines a circle.
Implementations
sourceimpl 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
sourceimpl Boxed for WCircle
impl Boxed for WCircle
sourceimpl WCircleTrait for WCircle
impl WCircleTrait for WCircle
fn as_raw_mut_WCircle(&mut self) -> *mut c_void
sourceimpl WCircleTraitConst for WCircle
impl WCircleTraitConst for WCircle
fn as_raw_WCircle(&self) -> *const c_void
sourceimpl Widget3DTrait for WCircle
impl Widget3DTrait for WCircle
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 WCircle
impl Widget3DTraitConst for WCircle
sourceimpl WidgetTrait for WCircle
impl WidgetTrait for WCircle
sourceimpl WidgetTraitConst for WCircle
impl WidgetTraitConst for WCircle
fn as_raw_Widget(&self) -> *const c_void
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
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