Class cv::viz::WText3D#
This 3D Widget represents 3D text. The text always faces the camera.
#include <opencv2/viz/widgets.hpp>Collaboration diagram for cv::viz::WText3D:
Public Member Functions#
Public Member Functions inherited from cv::viz::Widget3D
Return |
Name |
Description |
|---|---|---|
|
Transforms internal widget data (i.e. points, normals) using the given transform. |
|
Returns the current pose of the widget. |
||
|
Sets the color of the widget. |
|
|
Sets pose of the widget. |
|
|
Updates pose of the widget by pre-multiplying its current pose. |
Public Member Functions inherited from cv::viz::Widget
Return |
Name |
Description |
|---|---|---|
|
Casts a widget to another. |
|
|
Returns rendering property of the widget. |
|
|
||
|
Sets rendering property of the widget. |
Static Public Member Functions#
Static Public Member Functions inherited from cv::viz::Widget
Return |
Name |
Description |
|---|---|---|
|
Creates a widget from ply file. |
Additional Inherited Members#
Friends inherited from cv::viz::Widget
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
This 3D Widget represents 3D text. The text always faces the camera.
Constructor & Destructor Documentation#
WText3D()#
cv::viz::WText3D::WText3D(
const String & text,
const Point3d & position,
double text_scale = 1.,
bool face_camera = true,
const Color & color = Color::white() )
Constructs a WText3D.
Parameters
text— Text content of the widget.position— Position of the text.text_scale— Size of the text.face_camera— If true, text always faces the camera.color— Color of the text.
Member Function Documentation#
getText()#
String cv::viz::WText3D::getText()
Returns the current text content of the widget.
setText()#
void cv::viz::WText3D::setText(const String & text)
Sets the text content of the widget.
Parameters
text— Text content of the widget.
Source file#
The documentation for this class was generated from the following file:
opencv2/viz/widgets.hpp