pub struct WLine { /* private fields */ }
Expand description
This 3D Widget defines a finite line.
Implementations§
source§impl WLine
impl WLine
sourcepub fn new(pt1: Point3d, pt2: Point3d, color: &Color) -> Result<WLine>
pub fn new(pt1: Point3d, pt2: Point3d, color: &Color) -> Result<WLine>
Constructs a WLine.
Parameters
- pt1: Start point of the line.
- pt2: End point of the line.
- color: Color of the line.
C++ default parameters
- color: Color::white()
sourcepub fn new_def(pt1: Point3d, pt2: Point3d) -> Result<WLine>
pub fn new_def(pt1: Point3d, pt2: Point3d) -> Result<WLine>
Constructs a WLine.
Parameters
- pt1: Start point of the line.
- pt2: End point of the line.
- color: Color of the line.
Note
This alternative version of [new] function uses the following default values for its arguments:
- color: Color::white()
Trait Implementations§
source§impl Boxed for WLine
impl Boxed for WLine
source§impl WLineTrait for WLine
impl WLineTrait for WLine
fn as_raw_mut_WLine(&mut self) -> *mut c_void
source§impl WLineTraitConst for WLine
impl WLineTraitConst for WLine
fn as_raw_WLine(&self) -> *const c_void
source§impl Widget3DTrait for WLine
impl Widget3DTrait for WLine
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 WLine
impl Widget3DTraitConst for WLine
source§impl WidgetTrait for WLine
impl WidgetTrait for WLine
source§impl WidgetTraitConst for WLine
impl WidgetTraitConst for WLine
impl Send for WLine
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