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: &impl ColorTraitConst,
) -> Result<WTrajectory>
pub fn new( path: &impl ToInputArray, display_mode: i32, scale: f64, color: &impl ColorTraitConst, ) -> 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§unsafe fn from_raw(
ptr: <WTrajectory as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <WTrajectory as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <WTrajectory as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
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 Freeze for WTrajectory
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
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more