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.

Properties

 Anchor = property(_Anchor__getter, _Anchor__setter)
 The eVision.Easy3D.E3DPoint linked to the text label.
 PosX = property(_PosX__getter, _PosX__setter)
 The x coordinate of the text box.
 PosY = property(_PosY__getter, _PosY__setter)
 The y coordinate of the text box.
 Color = property(_Color__getter, _Color__setter)
 The color of the text label.
 Size = property(_Size__getter, _Size__setter)
 The size of the text font.
 Text = property(_Text__getter, _Text__setter)
 The text of the text label.
 DisplayAnchor = property(_DisplayAnchor__getter, _DisplayAnchor__setter)
 If set to true, a line is drawn between the anchor and the label.
 Fixed = property(_Fixed__getter, _Fixed__setter)
 If set to true, the label stays fixed when the view changes.
 BackgroundColor = property(_BackgroundColor__getter, _BackgroundColor__setter)
 The background of the label is set to this color.
 Alignment = property(_Alignment__getter, _Alignment__setter)
 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.

Property Documentation

◆ Alignment

eVision.Easy3D.TextLabel.Alignment = property(_Alignment__getter, _Alignment__setter)
static

The alignment of the label.

◆ Anchor

eVision.Easy3D.TextLabel.Anchor = property(_Anchor__getter, _Anchor__setter)
static

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

◆ BackgroundColor

eVision.Easy3D.TextLabel.BackgroundColor = property(_BackgroundColor__getter, _BackgroundColor__setter)
static

The background of the label is set to this color.

◆ Color

eVision.Easy3D.TextLabel.Color = property(_Color__getter, _Color__setter)
static

The color of the text label.

◆ DisplayAnchor

eVision.Easy3D.TextLabel.DisplayAnchor = property(_DisplayAnchor__getter, _DisplayAnchor__setter)
static

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

◆ Fixed

eVision.Easy3D.TextLabel.Fixed = property(_Fixed__getter, _Fixed__setter)
static

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

◆ PosX

eVision.Easy3D.TextLabel.PosX = property(_PosX__getter, _PosX__setter)
static

The x coordinate of the text box.

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

◆ PosY

eVision.Easy3D.TextLabel.PosY = property(_PosY__getter, _PosY__setter)
static

The y coordinate of the text box.

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

◆ Size

eVision.Easy3D.TextLabel.Size = property(_Size__getter, _Size__setter)
static

The size of the text font.

Value between 0 et 1.

◆ Text

eVision.Easy3D.TextLabel.Text = property(_Text__getter, _Text__setter)
static

The text of the text label.