E3DViewer::GetTextLabel

Gets the text label information.

Namespace: Euresys::Open_eVision::Easy3D

[C++]

TextLabel GetTextLabel(
   int id
)

void GetTextLabel(
   int id,
   E3DPoint& anchor,
   float& posX,
   float& posY,
   EC24& color,
   float& size,
   std::string& text,
   bool& fixLabelPosition,
   bool& showAnchor,
   EC24A& backgroundcolor
)

void GetTextLabel(
   int id,
   E3DPoint& anchor,
   float& posX,
   float& posY,
   EC24& color,
   float& size,
   std::string& text,
   bool& fixLabelPosition,
   bool& showAnchor
)

Parameters

id

The id of the text label.

anchor

The E3DPoint linked to the text label.

posX

The x coordinate of the text box. Value between -1 (left) and 1 (right).

posY

The y coordinate of the text box. Value between -1 (bottom) and 1 (top).

color

The color of the text label.

size

The size of the text font. Value between 0 et 1.

text

The text of the text label.

fixLabelPosition

If set to true, the label stays fixed when the view changes (default: false).

showAnchor

If set to true, a line is drawn between the anchor and the label.

backgroundcolor

The background color of the label.

Remarks

See also E3DViewer::AddTextLabel and E3DViewer::EditTextLabel.

Deprecation notice: The overloads taking multiple arguments are deprecated.

E3DViewer.GetTextLabel

Gets the text label information.

Namespace: Euresys.Open_eVision.Easy3D

[C#]

Euresys.Open_eVision.Easy3D.TextLabel GetTextLabel(
   int id
)

void GetTextLabel(
   int id,
   out Euresys.Open_eVision.Easy3D.E3DPoint anchor,
   out float posX,
   out float posY,
   out Euresys.Open_eVision.EC24 color,
   out float size,
   out string text,
   out bool fixLabelPosition,
   out bool showAnchor,
   ref Euresys.Open_eVision.EC24A backgroundcolor
)

void GetTextLabel(
   int id,
   out Euresys.Open_eVision.Easy3D.E3DPoint anchor,
   out float posX,
   out float posY,
   out Euresys.Open_eVision.EC24 color,
   out float size,
   out string text,
   out bool fixLabelPosition,
   out bool showAnchor
)

Parameters

id

The id of the text label.

anchor

The E3DPoint linked to the text label.

posX

The x coordinate of the text box. Value between -1 (left) and 1 (right).

posY

The y coordinate of the text box. Value between -1 (bottom) and 1 (top).

color

The color of the text label.

size

The size of the text font. Value between 0 et 1.

text

The text of the text label.

fixLabelPosition

If set to true, the label stays fixed when the view changes (default: false).

showAnchor

If set to true, a line is drawn between the anchor and the label.

backgroundcolor

The background color of the label.

Remarks

See also E3DViewer::AddTextLabel and E3DViewer::EditTextLabel.

Deprecation notice: The overloads taking multiple arguments are deprecated.