pub struct WPlane { /* private fields */ }
Expand description
This 3D Widget defines a finite plane.
Implementations§
source§impl 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_def() -> Result<WPlane>
pub fn new_def() -> 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.
Note
This alternative version of [new] function uses the following default values for its arguments:
- 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()
sourcepub fn new_def_1(
center: Point3d,
normal: Vec3d,
new_yaxis: Vec3d
) -> Result<WPlane>
pub fn new_def_1( center: Point3d, normal: Vec3d, new_yaxis: Vec3d ) -> 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.
Note
This alternative version of [new] function uses the following default values for its arguments:
- size: Size2d(1.0,1.0)
- color: Color::white()
Trait Implementations§
source§impl Boxed for WPlane
impl Boxed for WPlane
source§impl WPlaneTrait for WPlane
impl WPlaneTrait for WPlane
fn as_raw_mut_WPlane(&mut self) -> *mut c_void
source§impl WPlaneTraitConst for WPlane
impl WPlaneTraitConst for WPlane
fn as_raw_WPlane(&self) -> *const c_void
source§impl Widget3DTrait for WPlane
impl Widget3DTrait for WPlane
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 WPlane
impl Widget3DTraitConst for WPlane
source§impl WidgetTrait for WPlane
impl WidgetTrait for WPlane
source§impl WidgetTraitConst for WPlane
impl WidgetTraitConst for WPlane
impl Send for WPlane
Auto Trait Implementations§
impl RefUnwindSafe for WPlane
impl !Sync for WPlane
impl Unpin for WPlane
impl UnwindSafe for WPlane
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