Class cv::viz::WText#
Text and image widgets. View details
#include <opencv2/viz/widgets.hpp>Collaboration diagram for cv::viz::WText:
Public Member Functions#
Public Member Functions inherited from cv::viz::Widget2D
Return |
Name |
Description |
|---|---|---|
|
Sets the color of the widget. |
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#
Text and image widgets.
This 2D Widget represents text overlay.
Constructor & Destructor Documentation#
WText()#
cv::viz::WText::WText(
const String & text,
const Point & pos,
int font_size = 20,
const Color & color = Color::white() )
Constructs a WText.
Parameters
text— Text content of the widget.pos— Position of the text.font_size— Font size.color— Color of the text.
Member Function Documentation#
getText()#
String cv::viz::WText::getText()
Returns the current text content of the widget.
setText()#
void cv::viz::WText::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