pub trait Widget3DTrait: Widget3DTraitConst + WidgetTrait {
// Required method
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void;
// Provided methods
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: &impl ColorTraitConst) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::viz::Widget3D
Required Methods§
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
Provided Methods§
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.
§Parameters
- pose: The pose that the current pose of the widget will be pre-multiplied by.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.