[][src]Trait opencv::prelude::Widget3DTrait

pub trait Widget3DTrait: WidgetTrait {
    pub fn as_raw_Widget3D(&self) -> *const c_void;
pub fn as_raw_mut_Widget3D(&mut self) -> *mut c_void; pub fn set_pose(&mut self, pose: Affine3d) -> Result<()> { ... }
pub fn update_pose(&mut self, pose: Affine3d) -> Result<()> { ... }
pub fn get_pose(&self) -> Result<Affine3d> { ... }
pub fn apply_transform(&mut self, transform: Affine3d) -> Result<()> { ... }
pub fn set_color(&mut self, color: &Color) -> Result<()> { ... } }

Base class of all 3D widgets.

Required methods

Loading content...

Provided methods

pub fn set_pose(&mut self, pose: Affine3d) -> Result<()>[src]

Sets pose of the widget.

Parameters

  • pose: The new pose of the widget.

pub fn update_pose(&mut self, pose: Affine3d) -> Result<()>[src]

Updates pose of the widget by pre-multiplying its current pose.

Parameters

  • pose: The pose that the current pose of the widget will be pre-multiplied by.

pub fn get_pose(&self) -> Result<Affine3d>[src]

Returns the current pose of the widget.

pub fn apply_transform(&mut self, transform: Affine3d) -> Result<()>[src]

Transforms internal widget data (i.e. points, normals) using the given transform.

Parameters

  • transform: Specified transformation to apply.

pub fn set_color(&mut self, color: &Color) -> Result<()>[src]

Sets the color of the widget.

Parameters

  • color: color of type Color
Loading content...

Implementors

impl Widget3DTrait for WArrow[src]

impl Widget3DTrait for WCameraPosition[src]

impl Widget3DTrait for WCircle[src]

impl Widget3DTrait for WCloud[src]

impl Widget3DTrait for WCloudCollection[src]

impl Widget3DTrait for WCloudNormals[src]

impl Widget3DTrait for WCone[src]

impl Widget3DTrait for WCoordinateSystem[src]

impl Widget3DTrait for WCube[src]

impl Widget3DTrait for WCylinder[src]

impl Widget3DTrait for WGrid[src]

impl Widget3DTrait for WImage3D[src]

impl Widget3DTrait for WLine[src]

impl Widget3DTrait for WMesh[src]

impl Widget3DTrait for WPaintedCloud[src]

impl Widget3DTrait for WPlane[src]

impl Widget3DTrait for WPolyLine[src]

impl Widget3DTrait for WSphere[src]

impl Widget3DTrait for WText3D[src]

impl Widget3DTrait for WTrajectory[src]

impl Widget3DTrait for WTrajectoryFrustums[src]

impl Widget3DTrait for WTrajectorySpheres[src]

impl Widget3DTrait for WWidgetMerger[src]

impl Widget3DTrait for Widget3D[src]

Loading content...