Class cv::viz::WText3D#

This 3D Widget represents 3D text. The text always faces the camera.

Collaboration diagram for cv::viz::WText3D:

Public Member Functions#

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

Return

Name

Description

Widget3D()

void

applyTransform(const Affine3d & transform)

Transforms internal widget data (i.e. points, normals) using the given transform.

Affine3d

getPose()

Returns the current pose of the widget.

void

setColor(const Color & color)

Sets the color of the widget.

void

setPose(const Affine3d & pose)

Sets pose of the widget.

void

updatePose(const Affine3d & pose)

Updates pose of the widget by pre-multiplying its current pose.

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#

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.

  • colorColor 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: