Trait opencv::viz::prelude::WidgetTraitConst [−][src]
pub trait WidgetTraitConst {
fn as_raw_Widget(&self) -> *const c_void;
fn get_rendering_property(&self, property: i32) -> Result<f64> { ... }
}
Expand description
Base class of all widgets. Widget is implicitly shared.
Required methods
fn as_raw_Widget(&self) -> *const c_void
Provided methods
fn get_rendering_property(&self, property: i32) -> Result<f64>
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