eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.TextLabel Class Reference

A class representing a text label that can be displayed using eVision.Easy3D.E3DViewer. More...

Public Member Functions

None __init__ (self, eVision.Easy3D.E3DPoint anchor, float posX, float posY, eVision.EC24 color, float size, str text, bool displayAnchor, eVision.EC24A backgroundColor, eVision.Easy3D.ETextLabelAlignment alignment)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, float posX, float posY, eVision.EC24 color, float size, str text, bool displayAnchor, eVision.EC24A backgroundColor)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, float posX, float posY, eVision.EC24 color, float size, str text, bool displayAnchor)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, float posX, float posY, eVision.EC24 color, float size, str text)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, eVision.EC24 color, float size, str text, bool fixLabelPosition, bool displayAnchor, eVision.EC24A backgroundColor, eVision.Easy3D.ETextLabelAlignment alignment)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, eVision.EC24 color, float size, str text, bool fixLabelPosition, bool displayAnchor, eVision.EC24A backgroundColor)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, eVision.EC24 color, float size, str text, bool fixLabelPosition, bool displayAnchor)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, eVision.EC24 color, float size, str text, bool fixLabelPosition)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.E3DPoint anchor, eVision.EC24 color, float size, str text)
 Constructs a text label.
None __init__ (self, float posX, float posY, eVision.EC24 color, float size, str text, eVision.EC24A backgroundColor, eVision.Easy3D.ETextLabelAlignment alignment)
 Constructs a text label.
None __init__ (self, float posX, float posY, eVision.EC24 color, float size, str text, eVision.EC24A backgroundColor)
 Constructs a text label.
None __init__ (self, float posX, float posY, eVision.EC24 color, float size, str text)
 Constructs a text label.
None __init__ (self, eVision.Easy3D.TextLabel other)
 Constructs a text label.
eVision.Easy3D.E3DPoint Anchor (self)
 The eVision.Easy3D.E3DPoint linked to the text label.
 Anchor (self, eVision.Easy3D.E3DPoint value)
 The eVision.Easy3D.E3DPoint linked to the text label.
float PosX (self)
 The x coordinate of the text box.
 PosX (self, float value)
 The x coordinate of the text box.
float PosY (self)
 The y coordinate of the text box.
 PosY (self, float value)
 The y coordinate of the text box.
eVision.EC24 Color (self)
 The color of the text label.
 Color (self, eVision.EC24 value)
 The color of the text label.
float Size (self)
 The size of the text font.
 Size (self, float value)
 The size of the text font.
str Text (self)
 The text of the text label.
 Text (self, str value)
 The text of the text label.
bool DisplayAnchor (self)
 If set to true, a line is drawn between the anchor and the label.
 DisplayAnchor (self, bool value)
 If set to true, a line is drawn between the anchor and the label.
bool Fixed (self)
 If set to true, the label stays fixed when the view changes.
 Fixed (self, bool value)
 If set to true, the label stays fixed when the view changes.
eVision.EC24A BackgroundColor (self)
 The background of the label is set to this color.
 BackgroundColor (self, eVision.EC24A value)
 The background of the label is set to this color.
eVision.Easy3D.ETextLabelAlignment Alignment (self)
 The alignment of the label.
 Alignment (self, eVision.Easy3D.ETextLabelAlignment value)
 The alignment of the label.

Detailed Description

A class representing a text label that can be displayed using eVision.Easy3D.E3DViewer.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
float posX,
float posY,
eVision.EC24 color,
float size,
str text,
bool displayAnchor,
eVision.EC24A backgroundColor,
eVision.Easy3D.ETextLabelAlignment alignment )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).
backgroundColorIf specified, the background of the label is set to this color (default: black).
alignmentThe alignment of the label. (Defaults to FromPosition.)

◆ __init__() [2/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
float posX,
float posY,
eVision.EC24 color,
float size,
str text,
bool displayAnchor,
eVision.EC24A backgroundColor )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).
backgroundColorIf specified, the background of the label is set to this color (default: black).

◆ __init__() [3/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
float posX,
float posY,
eVision.EC24 color,
float size,
str text,
bool displayAnchor )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).

◆ __init__() [4/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
float posX,
float posY,
eVision.EC24 color,
float size,
str text )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.

◆ __init__() [5/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
eVision.EC24 color,
float size,
str text,
bool fixLabelPosition,
bool displayAnchor,
eVision.EC24A backgroundColor,
eVision.Easy3D.ETextLabelAlignment alignment )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
fixLabelPositionIf set to true, the label stays fixed when the view changes (default: false).
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).
backgroundColorIf specified, the background of the label is set to this color (default: black).
alignmentThe alignment of the label. (Defaults to FromPosition.)

◆ __init__() [6/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
eVision.EC24 color,
float size,
str text,
bool fixLabelPosition,
bool displayAnchor,
eVision.EC24A backgroundColor )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
fixLabelPositionIf set to true, the label stays fixed when the view changes (default: false).
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).
backgroundColorIf specified, the background of the label is set to this color (default: black).

◆ __init__() [7/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
eVision.EC24 color,
float size,
str text,
bool fixLabelPosition,
bool displayAnchor )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
fixLabelPositionIf set to true, the label stays fixed when the view changes (default: false).
displayAnchorIf set to true, a line is drawn between the anchor and the label (default: true).

◆ __init__() [8/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
eVision.EC24 color,
float size,
str text,
bool fixLabelPosition )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
fixLabelPositionIf set to true, the label stays fixed when the view changes (default: false).

◆ __init__() [9/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.E3DPoint anchor,
eVision.EC24 color,
float size,
str text )

Constructs a text label.

Parameters
anchorThe eVision.Easy3D.E3DPoint linked to the text label.
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.

◆ __init__() [10/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
float posX,
float posY,
eVision.EC24 color,
float size,
str text,
eVision.EC24A backgroundColor,
eVision.Easy3D.ETextLabelAlignment alignment )

Constructs a text label.

Parameters
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
backgroundColorIf specified, the background of the label is set to this color (default: black).
alignmentThe alignment of the label. (Defaults to FromPosition.)

◆ __init__() [11/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
float posX,
float posY,
eVision.EC24 color,
float size,
str text,
eVision.EC24A backgroundColor )

Constructs a text label.

Parameters
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.
backgroundColorIf specified, the background of the label is set to this color (default: black).

◆ __init__() [12/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
float posX,
float posY,
eVision.EC24 color,
float size,
str text )

Constructs a text label.

Parameters
posXThe x coordinate of the text box. Value between -1 (left) and 1 (right).
posYThe y coordinate of the text box. Value between -1 (bottom) and 1 (top).
colorThe color of the text label.
sizeThe size of the text font. Value between 0 et 1.
textThe text of the text label.

◆ __init__() [13/13]

None eVision.Easy3D.TextLabel.__init__ ( self,
eVision.Easy3D.TextLabel other )

Constructs a text label.

Parameters
otherThe other eVision.Easy3D.TextLabel that we will copy into this one.

Member Function Documentation

◆ Alignment() [1/2]

eVision.Easy3D.ETextLabelAlignment eVision.Easy3D.TextLabel.Alignment ( self)

The alignment of the label.

◆ Alignment() [2/2]

eVision.Easy3D.TextLabel.Alignment ( self,
eVision.Easy3D.ETextLabelAlignment value )

The alignment of the label.

◆ Anchor() [1/2]

eVision.Easy3D.E3DPoint eVision.Easy3D.TextLabel.Anchor ( self)

The eVision.Easy3D.E3DPoint linked to the text label.

◆ Anchor() [2/2]

eVision.Easy3D.TextLabel.Anchor ( self,
eVision.Easy3D.E3DPoint value )

The eVision.Easy3D.E3DPoint linked to the text label.

◆ BackgroundColor() [1/2]

eVision.EC24A eVision.Easy3D.TextLabel.BackgroundColor ( self)

The background of the label is set to this color.

◆ BackgroundColor() [2/2]

eVision.Easy3D.TextLabel.BackgroundColor ( self,
eVision.EC24A value )

The background of the label is set to this color.

◆ Color() [1/2]

eVision.EC24 eVision.Easy3D.TextLabel.Color ( self)

The color of the text label.

◆ Color() [2/2]

eVision.Easy3D.TextLabel.Color ( self,
eVision.EC24 value )

The color of the text label.

◆ DisplayAnchor() [1/2]

bool eVision.Easy3D.TextLabel.DisplayAnchor ( self)

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

◆ DisplayAnchor() [2/2]

eVision.Easy3D.TextLabel.DisplayAnchor ( self,
bool value )

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

◆ Fixed() [1/2]

bool eVision.Easy3D.TextLabel.Fixed ( self)

If set to true, the label stays fixed when the view changes.

◆ Fixed() [2/2]

eVision.Easy3D.TextLabel.Fixed ( self,
bool value )

If set to true, the label stays fixed when the view changes.

◆ PosX() [1/2]

float eVision.Easy3D.TextLabel.PosX ( self)

The x coordinate of the text box.

Value between -1 (left) and 1 (right).

◆ PosX() [2/2]

eVision.Easy3D.TextLabel.PosX ( self,
float value )

The x coordinate of the text box.

Value between -1 (left) and 1 (right).

◆ PosY() [1/2]

float eVision.Easy3D.TextLabel.PosY ( self)

The y coordinate of the text box.

Value between -1 (bottom) and 1 (top).

◆ PosY() [2/2]

eVision.Easy3D.TextLabel.PosY ( self,
float value )

The y coordinate of the text box.

Value between -1 (bottom) and 1 (top).

◆ Size() [1/2]

float eVision.Easy3D.TextLabel.Size ( self)

The size of the text font.

Value between 0 et 1.

◆ Size() [2/2]

eVision.Easy3D.TextLabel.Size ( self,
float value )

The size of the text font.

Value between 0 et 1.

◆ Text() [1/2]

str eVision.Easy3D.TextLabel.Text ( self)

The text of the text label.

◆ Text() [2/2]

eVision.Easy3D.TextLabel.Text ( self,
str value )

The text of the text label.