Widget#
Detailed Description#
In this section, the widget framework is explained. Widgets represent 2D or 3D objects, varying from simple ones such as lines to complex ones such as point clouds and meshes.
Widgets are implicitly shared. Therefore, one can add a widget to the scene, and modify the widget without re-adding the widget.
// Create a cloud widget
viz::WCloud cw(cloud, viz::Color::red());
// Display it in a window
myWindow.showWidget("CloudWidget1", cw);
// Modify it, and it will be modified in the window.
cw.setColor(viz::Color::yellow());
Classes#
Name |
Description |
|---|---|
|
This 3D Widget defines an arrow. View details |
|
This 3D Widget represents camera position in a scene by its axes or viewing frustum. : View details |
|
This 3D Widget defines a circle. View details |
|
Clouds. View details |
This 3D Widget defines a collection of clouds. : View details |
|
|
This 3D Widget represents normals of a point cloud. : View details |
|
This 3D Widget defines a cone. : View details |
Compound widgets. View details |
|
|
This 3D Widget defines a cube. View details |
|
This 3D Widget defines a cylinder. : View details |
|
This 3D Widget defines a grid. : View details |
|
Base class of all widgets. Widget is implicitly shared. View details |
|
Base class of all 2D widgets. View details |
|
Base class of all 3D widgets. View details |
|
This class is for users who want to develop their own widgets using VTK library API. : View details |
|
This 3D Widget represents an image in 3D space. : View details |
|
This 2D Widget represents an image overlay. : View details |
|
Simple widgets. View details |
|
Constructs a WMesh. View details |
|
|
|
This 3D Widget defines a finite plane. View details |
|
This 3D Widget defines a poly line. : View details |
|
This 3D Widget defines a sphere. : View details |
|
Text and image widgets. View details |
|
This 3D Widget represents 3D text. The text always faces the camera. View details |
|
Trajectories. View details |
This 3D Widget represents a trajectory. : View details |
|
This 3D Widget represents a trajectory using spheres and lines. View details |
|
|
This class allows to merge several widgets to single one. View details |
Enumerations#
Widget rendering properties. View details
Functions#
Enumeration Type Documentation#
RenderingProperties#
enum cv::viz::RenderingProperties
#include <opencv2/viz/widgets.hpp>
Widget rendering properties.
Enumerator:
|
|
|
|
|
|
|
|
|
RepresentationValues#
enum cv::viz::RepresentationValues
#include <opencv2/viz/widgets.hpp>
Enumerator:
|
|
|
ShadingValues#
#include <opencv2/viz/widgets.hpp>
Enumerator:
|
|
|