Base class of all widgets. Widget is implicitly shared. :
More...
#include "widgets.hpp"
Base class of all widgets. Widget is implicitly shared. :
cv::viz::Widget::Widget |
( |
| ) |
|
cv::viz::Widget::Widget |
( |
const Widget & |
other | ) |
|
cv::viz::Widget::~Widget |
( |
| ) |
|
template<typename _W >
_W cv::viz::Widget::cast |
( |
| ) |
|
Casts a widget to another.
viz::WSphere sw(
Point3f(0.0f,0.0f,0.0f), 0.5f);
viz::WCloud cw = sw.cast<viz::WCloud>();
- Note
- 3D Widgets can only be cast to 3D Widgets. 2D Widgets can only be cast to 2D Widgets.
template<>
WLine cv::viz::Widget::cast |
( |
| ) |
|
template<>
WPlane cv::viz::Widget::cast |
( |
| ) |
|
template<>
WArrow cv::viz::Widget::cast |
( |
| ) |
|
template<>
WCone cv::viz::Widget::cast |
( |
| ) |
|
template<>
WCube cv::viz::Widget::cast |
( |
| ) |
|
template<>
WGrid cv::viz::Widget::cast |
( |
| ) |
|
template<>
WText cv::viz::Widget::cast |
( |
| ) |
|
template<>
WCloud cv::viz::Widget::cast |
( |
| ) |
|
template<>
WMesh cv::viz::Widget::cast |
( |
| ) |
|
static Widget cv::viz::Widget::fromPlyFile |
( |
const String & |
file_name | ) |
|
|
static |
Creates a widget from ply file.
- Parameters
-
double cv::viz::Widget::getRenderingProperty |
( |
int |
property | ) |
const |
Returns rendering property of the widget.
- Parameters
-
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
void cv::viz::Widget::setRenderingProperty |
( |
int |
property, |
|
|
double |
value |
|
) |
| |
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
The documentation for this class was generated from the following file: