Struct opencv::viz::WTrajectory
source · pub struct WTrajectory { /* private fields */ }Expand description
This 3D Widget represents a trajectory. :
Implementations
sourceimpl WTrajectory
impl WTrajectory
sourcepub fn new(
path: &dyn ToInputArray,
display_mode: i32,
scale: f64,
color: &Color
) -> Result<WTrajectory>
pub fn new(
path: &dyn ToInputArray,
display_mode: i32,
scale: f64,
color: &Color
) -> Result<WTrajectory>
Constructs a WTrajectory.
Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- display_mode: Display mode. This can be PATH, FRAMES, and BOTH.
- scale: Scale of the frames. Polyline is not affected.
- color: Color of the polyline that represents path.
Frames are not affected. Displays trajectory of the given path as follows:
- PATH : Displays a poly line that represents the path.
- FRAMES : Displays coordinate frames at each pose.
- PATH & FRAMES : Displays both poly line and coordinate frames.
C++ default parameters
- display_mode: WTrajectory::PATH
- scale: 1.0
- color: Color::white()
Trait Implementations
sourceimpl Boxed for WTrajectory
impl Boxed for WTrajectory
sourceimpl Drop for WTrajectory
impl Drop for WTrajectory
sourceimpl From<WTrajectory> for Widget
impl From<WTrajectory> for Widget
sourcefn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
sourceimpl From<WTrajectory> for Widget3D
impl From<WTrajectory> for Widget3D
sourcefn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
sourceimpl WTrajectoryTrait for WTrajectory
impl WTrajectoryTrait for WTrajectory
fn as_raw_mut_WTrajectory(&mut self) -> *mut c_void
sourceimpl WTrajectoryTraitConst for WTrajectory
impl WTrajectoryTraitConst for WTrajectory
fn as_raw_WTrajectory(&self) -> *const c_void
sourceimpl Widget3DTrait for WTrajectory
impl Widget3DTrait for WTrajectory
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 WTrajectory
impl Widget3DTraitConst for WTrajectory
sourceimpl WidgetTrait for WTrajectory
impl WidgetTrait for WTrajectory
sourceimpl WidgetTraitConst for WTrajectory
impl WidgetTraitConst for WTrajectory
fn as_raw_Widget(&self) -> *const c_void
impl Send for WTrajectory
Auto Trait Implementations
impl RefUnwindSafe for WTrajectory
impl !Sync for WTrajectory
impl Unpin for WTrajectory
impl UnwindSafe for WTrajectory
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