Struct opencv::viz::WTrajectory
source · pub struct WTrajectory { /* private fields */ }
Expand description
This 3D Widget represents a trajectory. :
Implementations§
source§impl WTrajectory
impl WTrajectory
sourcepub fn new(
path: &impl ToInputArray,
display_mode: i32,
scale: f64,
color: &Color
) -> Result<WTrajectory>
pub fn new( path: &impl 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()
sourcepub fn new_def(path: &impl ToInputArray) -> Result<WTrajectory>
pub fn new_def(path: &impl ToInputArray) -> 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.
Note
This alternative version of [new] function uses the following default values for its arguments:
- display_mode: WTrajectory::PATH
- scale: 1.0
- color: Color::white()
Trait Implementations§
source§impl Boxed for WTrajectory
impl Boxed for WTrajectory
source§impl Debug for WTrajectory
impl Debug for WTrajectory
source§impl Drop for WTrajectory
impl Drop for WTrajectory
source§impl From<WTrajectory> for Widget
impl From<WTrajectory> for Widget
source§fn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
source§impl From<WTrajectory> for Widget3D
impl From<WTrajectory> for Widget3D
source§fn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
source§impl WTrajectoryTrait for WTrajectory
impl WTrajectoryTrait for WTrajectory
fn as_raw_mut_WTrajectory(&mut self) -> *mut c_void
source§impl WTrajectoryTraitConst for WTrajectory
impl WTrajectoryTraitConst for WTrajectory
fn as_raw_WTrajectory(&self) -> *const c_void
source§impl Widget3DTrait for WTrajectory
impl Widget3DTrait for WTrajectory
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 WTrajectory
impl Widget3DTraitConst for WTrajectory
source§impl WidgetTrait for WTrajectory
impl WidgetTrait for WTrajectory
source§impl WidgetTraitConst for WTrajectory
impl WidgetTraitConst for WTrajectory
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§
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