pub struct WCube { /* private fields */ }Expand description
This 3D Widget defines a cube.
Implementations
sourceimpl 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()
Trait Implementations
sourceimpl Boxed for WCube
impl Boxed for WCube
sourceimpl WCubeTrait for WCube
impl WCubeTrait for WCube
fn as_raw_mut_WCube(&mut self) -> *mut c_void
sourceimpl WCubeTraitConst for WCube
impl WCubeTraitConst for WCube
fn as_raw_WCube(&self) -> *const c_void
sourceimpl Widget3DTrait for WCube
impl Widget3DTrait for WCube
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 WCube
impl Widget3DTraitConst for WCube
sourceimpl WidgetTrait for WCube
impl WidgetTrait for WCube
sourceimpl WidgetTraitConst for WCube
impl WidgetTraitConst for WCube
fn as_raw_Widget(&self) -> *const c_void
impl Send for WCube
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