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_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§
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