[][src]Struct opencv::viz::WTrajectory

pub struct WTrajectory { /* fields omitted */ }

This 3D Widget represents a trajectory. :

Methods

impl WTrajectory[src]

pub fn as_raw_WTrajectory(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl WTrajectory[src]

pub fn new(
    path: &dyn ToInputArray,
    display_mode: i32,
    scale: f64,
    color: &Color
) -> Result<WTrajectory>
[src]

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

impl Drop for WTrajectory[src]

impl Send for WTrajectory[src]

impl Widget3DTrait for WTrajectory[src]

impl WidgetTrait for WTrajectory[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.