Struct opencv::viz::WTrajectorySpheres
source · pub struct WTrajectorySpheres { /* private fields */ }
Expand description
This 3D Widget represents a trajectory using spheres and lines
where spheres represent the positions of the camera, and lines represent the direction from previous position to the current. :
Implementations§
source§impl WTrajectorySpheres
impl WTrajectorySpheres
sourcepub fn new(
path: &dyn ToInputArray,
line_length: f64,
radius: f64,
from: &Color,
to: &Color
) -> Result<WTrajectorySpheres>
pub fn new( path: &dyn ToInputArray, line_length: f64, radius: f64, from: &Color, to: &Color ) -> Result<WTrajectorySpheres>
Constructs a WTrajectorySpheres.
Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- line_length: Max length of the lines which point to previous position
- radius: Radius of the spheres.
- from: Color for first sphere.
- to: Color for last sphere. Intermediate spheres will have interpolated color.
C++ default parameters
- line_length: 0.05
- radius: 0.007
- from: Color::red()
- to: Color::white()
Trait Implementations§
source§impl Boxed for WTrajectorySpheres
impl Boxed for WTrajectorySpheres
source§impl Drop for WTrajectorySpheres
impl Drop for WTrajectorySpheres
source§impl From<WTrajectorySpheres> for Widget
impl From<WTrajectorySpheres> for Widget
source§fn from(s: WTrajectorySpheres) -> Self
fn from(s: WTrajectorySpheres) -> Self
Converts to this type from the input type.
source§impl From<WTrajectorySpheres> for Widget3D
impl From<WTrajectorySpheres> for Widget3D
source§fn from(s: WTrajectorySpheres) -> Self
fn from(s: WTrajectorySpheres) -> Self
Converts to this type from the input type.
source§impl WTrajectorySpheresTrait for WTrajectorySpheres
impl WTrajectorySpheresTrait for WTrajectorySpheres
fn as_raw_mut_WTrajectorySpheres(&mut self) -> *mut c_void
source§impl WTrajectorySpheresTraitConst for WTrajectorySpheres
impl WTrajectorySpheresTraitConst for WTrajectorySpheres
fn as_raw_WTrajectorySpheres(&self) -> *const c_void
source§impl Widget3DTrait for WTrajectorySpheres
impl Widget3DTrait for WTrajectorySpheres
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