pub trait Widget3DTrait: Widget3DTraitConst + WidgetTrait {
    fn as_raw_mut_Widget3D(&mut self) -> *mut c_void;

    fn set_pose(&mut self, pose: Affine3d) -> Result<()> { ... }
    fn update_pose(&mut self, pose: Affine3d) -> Result<()> { ... }
    fn apply_transform(&mut self, transform: Affine3d) -> Result<()> { ... }
    fn set_color(&mut self, color: &Color) -> Result<()> { ... }
}

Required Methods

Provided Methods

Sets pose of the widget.

Parameters
  • pose: The new pose of the widget.

Updates pose of the widget by pre-multiplying its current pose.

Parameters
  • pose: The pose that the current pose of the widget will be pre-multiplied by.

Transforms internal widget data (i.e. points, normals) using the given transform.

Parameters
  • transform: Specified transformation to apply.

Sets the color of the widget.

Parameters
  • color: color of type Color

Implementors