E3DViewer::AddTextLabel
Adds a text label linked to an E3DPoint.
Namespace: Euresys::Open_eVision::Easy3D
[C++]
int AddTextLabel(
const TextLabel& label
)
int AddTextLabel(
const E3DPoint& anchor,
float posX,
float posY,
EC24 color,
float size,
const std::string& text,
bool showAnchor,
EC24A backgroundcolor,
Euresys::Open_eVision::Easy3D::ETextLabelAlignment alignment
)
int AddTextLabel(
const E3DPoint& anchor,
EC24 color,
float size,
const std::string& text,
bool fixLabelPosition,
bool showAnchor,
EC24A backgroundcolor,
Euresys::Open_eVision::Easy3D::ETextLabelAlignment alignment
)
int AddTextLabel(
float posX,
float posY,
EC24 color,
float size,
const std::string& text,
EC24A backgroundcolor,
Euresys::Open_eVision::Easy3D::ETextLabelAlignment alignment
)
Parameters
label
The label to add.
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.
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::EditTextLabel. and E3DViewer::GetTextLabel.
Deprecation notice: The overloads taking multiple arguments are deprecated.
E3DViewer.AddTextLabel
Adds a text label linked to an E3DPoint.
Namespace: Euresys.Open_eVision.Easy3D
[C#]
int AddTextLabel(
Euresys.Open_eVision.Easy3D.TextLabel label
)
int AddTextLabel(
Euresys.Open_eVision.Easy3D.E3DPoint anchor,
float posX,
float posY,
Euresys.Open_eVision.EC24 color,
float size,
string text,
bool showAnchor,
Euresys.Open_eVision.EC24A backgroundcolor,
Euresys.Open_eVision.Easy3D.ETextLabelAlignment alignment
)
int AddTextLabel(
Euresys.Open_eVision.Easy3D.E3DPoint anchor,
Euresys.Open_eVision.EC24 color,
float size,
string text,
bool fixLabelPosition,
bool showAnchor,
Euresys.Open_eVision.EC24A backgroundcolor,
Euresys.Open_eVision.Easy3D.ETextLabelAlignment alignment
)
int AddTextLabel(
float posX,
float posY,
Euresys.Open_eVision.EC24 color,
float size,
string text,
Euresys.Open_eVision.EC24A backgroundcolor,
Euresys.Open_eVision.Easy3D.ETextLabelAlignment alignment
)
Parameters
label
The label to add.
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.
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::EditTextLabel. and E3DViewer::GetTextLabel.
Deprecation notice: The overloads taking multiple arguments are deprecated.