Class cv::viz::WText#

Text and image widgets. View details

Collaboration diagram for cv::viz::WText:

Public Member Functions#

Public Member Functions inherited from cv::viz::Widget2D

Return

Name

Description

Widget2D()

void

setColor(const Color & color)

Sets the color of the widget.

Public Member Functions inherited from cv::viz::Widget

Static Public Member Functions#

Static Public Member Functions inherited from cv::viz::Widget

Return

Name

Description

static Widget

fromPlyFile(const String & file_name)

Creates a widget from ply file.

Additional Inherited Members#

Friends inherited from cv::viz::Widget

Return

Name

Description

struct

WidgetAccessor

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: