E3DViewer::EditTextLabel

Edits a text label.

Namespace: Euresys::Open_eVision_23_12::Easy3D

[C++]

void EditTextLabel(
   int id,
   const TextLabel& label
)

void EditTextLabel(
   int id,
   float posX,
   float posY,
   EC24 color,
   float size,
   const std::string& text,
   bool showAnchor,
   EC24 backgroundcolor,
   Euresys::Open_eVision_23_12::Easy3D::ETextLabelAlignment alignment
)

void EditTextLabel(
   int id,
   EC24 color,
   float size,
   const std::string& text,
   bool fixLabelPosition,
   bool showAnchor,
   EC24 backgroundcolor,
   Euresys::Open_eVision_23_12::Easy3D::ETextLabelAlignment alignment
)

Parameters

id

The id of the text label to edit.

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.

showAnchor

If set to true, a line is drawn between the anchor and the label (default: true).

backgroundcolor

If specified, the background of the label is set to this color (default: black).

alignment

-

fixLabelPosition

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

Remarks

See also E3DViewer::AddTextLabel and E3DViewer::GetTextLabel.

Deprecation notice: The overloads taking more than two arguments are deprecated.

E3DViewer.EditTextLabel

Edits a text label.

Namespace: Euresys.Open_eVision_23_12.Easy3D

[C#]

void EditTextLabel(
   int id,
   Euresys.Open_eVision_23_12.Easy3D.TextLabel label
)

void EditTextLabel(
   int id,
   float posX,
   float posY,
   Euresys.Open_eVision_23_12.EC24 color,
   float size,
   string text,
   bool showAnchor,
   Euresys.Open_eVision_23_12.EC24 backgroundcolor,
   Euresys.Open_eVision_23_12.Easy3D.ETextLabelAlignment alignment
)

void EditTextLabel(
   int id,
   Euresys.Open_eVision_23_12.EC24 color,
   float size,
   string text,
   bool fixLabelPosition,
   bool showAnchor,
   Euresys.Open_eVision_23_12.EC24 backgroundcolor,
   Euresys.Open_eVision_23_12.Easy3D.ETextLabelAlignment alignment
)

Parameters

id

The id of the text label to edit.

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.

showAnchor

If set to true, a line is drawn between the anchor and the label (default: true).

backgroundcolor

If specified, the background of the label is set to this color (default: black).

alignment

-

fixLabelPosition

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

Remarks

See also E3DViewer::AddTextLabel and E3DViewer::GetTextLabel.

Deprecation notice: The overloads taking more than two arguments are deprecated.