pub struct WCube { /* private fields */ }
Expand description
This 3D Widget defines a cube.
Implementations§
source§impl WCube
impl WCube
sourcepub fn new(
min_point: Point3d,
max_point: Point3d,
wire_frame: bool,
color: &Color
) -> Result<WCube>
pub fn new( min_point: Point3d, max_point: Point3d, wire_frame: bool, color: &Color ) -> Result<WCube>
Constructs a WCube.
Parameters
- min_point: Specifies minimum (or maximum) point of the bounding box.
- max_point: Specifies maximum (or minimum) point of the bounding box, opposite to the first parameter.
- wire_frame: If true, cube is represented as wireframe.
- color: Color of the cube.
C++ default parameters
- min_point: Vec3d::all(-0.5)
- max_point: Vec3d::all(0.5)
- wire_frame: true
- color: Color::white()
sourcepub fn new_def() -> Result<WCube>
pub fn new_def() -> Result<WCube>
Constructs a WCube.
Parameters
- min_point: Specifies minimum (or maximum) point of the bounding box.
- max_point: Specifies maximum (or minimum) point of the bounding box, opposite to the first parameter.
- wire_frame: If true, cube is represented as wireframe.
- color: Color of the cube.
Note
This alternative version of [new] function uses the following default values for its arguments:
- min_point: Vec3d::all(-0.5)
- max_point: Vec3d::all(0.5)
- wire_frame: true
- color: Color::white()
Trait Implementations§
source§impl Boxed for WCube
impl Boxed for WCube
source§impl WCubeTrait for WCube
impl WCubeTrait for WCube
fn as_raw_mut_WCube(&mut self) -> *mut c_void
source§impl WCubeTraitConst for WCube
impl WCubeTraitConst for WCube
fn as_raw_WCube(&self) -> *const c_void
source§impl Widget3DTrait for WCube
impl Widget3DTrait for WCube
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 WCube
impl Widget3DTraitConst for WCube
source§impl WidgetTrait for WCube
impl WidgetTrait for WCube
source§impl WidgetTraitConst for WCube
impl WidgetTraitConst for WCube
impl Send for WCube
Auto Trait Implementations§
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