[][src]Trait opencv::hub_prelude::WidgetTrait

pub trait WidgetTrait {
    pub fn as_raw_Widget(&self) -> *const c_void;
pub fn as_raw_mut_Widget(&mut self) -> *mut c_void; pub fn set_rendering_property(
        &mut self,
        property: i32,
        value: f64
    ) -> Result<()> { ... }
pub fn get_rendering_property(&self, property: i32) -> Result<f64> { ... } }

Base class of all widgets. Widget is implicitly shared.

Required methods

Loading content...

Provided methods

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

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

pub fn get_rendering_property(&self, property: i32) -> Result<f64>[src]

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 WidgetTrait for WArrow[src]

impl WidgetTrait for WCameraPosition[src]

impl WidgetTrait for WCircle[src]

impl WidgetTrait for WCloud[src]

impl WidgetTrait for WCloudCollection[src]

impl WidgetTrait for WCloudNormals[src]

impl WidgetTrait for WCone[src]

impl WidgetTrait for WCoordinateSystem[src]

impl WidgetTrait for WCube[src]

impl WidgetTrait for WCylinder[src]

impl WidgetTrait for WGrid[src]

impl WidgetTrait for WImage3D[src]

impl WidgetTrait for WImageOverlay[src]

impl WidgetTrait for WLine[src]

impl WidgetTrait for WMesh[src]

impl WidgetTrait for WPaintedCloud[src]

impl WidgetTrait for WPlane[src]

impl WidgetTrait for WPolyLine[src]

impl WidgetTrait for WSphere[src]

impl WidgetTrait for WText3D[src]

impl WidgetTrait for WText[src]

impl WidgetTrait for WTrajectory[src]

impl WidgetTrait for WTrajectoryFrustums[src]

impl WidgetTrait for WTrajectorySpheres[src]

impl WidgetTrait for WWidgetMerger[src]

impl WidgetTrait for Widget2D[src]

impl WidgetTrait for Widget3D[src]

impl WidgetTrait for Widget[src]

Loading content...