[][src]Trait opencv::viz::Widget

pub trait Widget {
    fn as_raw_Widget(&self) -> *mut c_void;

    fn set_rendering_property(
        &mut self,
        property: i32,
        value: f64
    ) -> Result<()> { ... }
fn get_rendering_property(&self, property: i32) -> Result<f64> { ... } }

Base class of all widgets. Widget is implicitly shared.

Required methods

Loading content...

Provided methods

fn set_rendering_property(&mut self, property: i32, value: f64) -> Result<()>

Sets rendering property of the widget.

Parameters

  • property: Property that will be modified.
  • value: The new value of the property.

Rendering property can be one of the following:

  • POINT_SIZE
  • OPACITY
  • LINE_WIDTH
  • FONT_SIZE

REPRESENTATION: Expected values are

  • REPRESENTATION_POINTS
  • REPRESENTATION_WIREFRAME
  • REPRESENTATION_SURFACE

IMMEDIATE_RENDERING:

  • Turn on immediate rendering by setting the value to 1.
  • Turn off immediate rendering by setting the value to 0.

SHADING: Expected values are

  • SHADING_FLAT
  • SHADING_GOURAUD
  • SHADING_PHONG

fn get_rendering_property(&self, property: i32) -> Result<f64>

Returns rendering property of the widget.

Parameters

  • property: Property.

Rendering property can be one of the following:

  • POINT_SIZE
  • OPACITY
  • LINE_WIDTH
  • FONT_SIZE
  • AMBIENT

REPRESENTATION: Expected values are

  • REPRESENTATION_POINTS
  • REPRESENTATION_WIREFRAME
  • REPRESENTATION_SURFACE

IMMEDIATE_RENDERING:

  • Turn on immediate rendering by setting the value to 1.
  • Turn off immediate rendering by setting the value to 0.

SHADING: Expected values are

  • SHADING_FLAT
  • SHADING_GOURAUD
  • SHADING_PHONG
Loading content...

Implementors

impl Widget for WArrow[src]

impl Widget for WCameraPosition[src]

impl Widget for WCircle[src]

impl Widget for WCloud[src]

impl Widget for WCloudCollection[src]

impl Widget for WCloudNormals[src]

impl Widget for WCone[src]

impl Widget for WCoordinateSystem[src]

impl Widget for WCube[src]

impl Widget for WCylinder[src]

impl Widget for WGrid[src]

impl Widget for WImage3D[src]

impl Widget for WImageOverlay[src]

impl Widget for WLine[src]

impl Widget for WMesh[src]

impl Widget for WPaintedCloud[src]

impl Widget for WPlane[src]

impl Widget for WPolyLine[src]

impl Widget for WSphere[src]

impl Widget for WText[src]

impl Widget for WText3D[src]

impl Widget for WTrajectory[src]

impl Widget for WTrajectoryFrustums[src]

impl Widget for WTrajectorySpheres[src]

impl Widget for WWidgetMerger[src]

Loading content...