pub struct WPlane { /* private fields */ }Expand description
This 3D Widget defines a finite plane.
Implementations
sourceimpl WPlane
impl WPlane
sourcepub fn new(size: Size2d, color: &Color) -> Result<WPlane>
pub fn new(size: Size2d, color: &Color) -> Result<WPlane>
Constructs a default plane with center point at origin and normal oriented along z-axis.
Parameters
- size: Size of the plane
- color: Color of the plane.
C++ default parameters
- size: Size2d(1.0,1.0)
- color: Color::white()
sourcepub fn new_1(
center: Point3d,
normal: Vec3d,
new_yaxis: Vec3d,
size: Size2d,
color: &Color
) -> Result<WPlane>
pub fn new_1(
center: Point3d,
normal: Vec3d,
new_yaxis: Vec3d,
size: Size2d,
color: &Color
) -> Result<WPlane>
Constructs a repositioned plane
Parameters
- center: Center of the plane
- normal: Plane normal orientation
- new_yaxis: Up-vector. New orientation of plane y-axis.
- size:
- color: Color of the plane.
C++ default parameters
- size: Size2d(1.0,1.0)
- color: Color::white()
Trait Implementations
sourceimpl Boxed for WPlane
impl Boxed for WPlane
sourceimpl WPlaneTrait for WPlane
impl WPlaneTrait for WPlane
fn as_raw_mut_WPlane(&mut self) -> *mut c_void
sourceimpl WPlaneTraitConst for WPlane
impl WPlaneTraitConst for WPlane
fn as_raw_WPlane(&self) -> *const c_void
sourceimpl Widget3DTrait for WPlane
impl Widget3DTrait for WPlane
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 WPlane
impl Widget3DTraitConst for WPlane
sourceimpl WidgetTrait for WPlane
impl WidgetTrait for WPlane
sourceimpl WidgetTraitConst for WPlane
impl WidgetTraitConst for WPlane
fn as_raw_Widget(&self) -> *const c_void
impl Send for WPlane
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