CLASSIFIER : GR3DTEXT
uid: class-GR3DTEXT-CVEViewer-MetaModel@g-scop.grenoble-inp.fr
About
Abstract
A GR3DText is a graphic node visualizing a text which may be editable or not.
To create a GR3DText :
text=cve.viewer.GR3DText(text='',scale=1.)
where :
- text : the text to visualize
- scale: a scale factor on font.
## Class Diagram
Inherits
- GRNODE
Attributes table
attribute | type | cardinality |
---|---|---|
text | vstring | [1,1] |
scale | vreal | [1,1] |
editable | vboolean | [1,1] |
single-line | vboolean | [1,1] |
is-time | vboolean | [1,1] |
justification-h | vint | [1,1] |
justification-v | vint | [1,1] |
Methods
-
add_background(self,..) : Add a background under the text < fcolor : background color < col : number of caracter -> width < lgn : number of lines -> height < transformation : relative position : identity by default
-
set_text(self,..) : set text of gr3dtext < text (default :Label)
-
get_text(self,..) : get text of gr3dtext > text
-
set_scale(self,..) : set scale of gr3dtext < scale (default :1.0)
-
get_scale(self,..) : get scale of gr3dtext > scale
-
set_editable(self,..) : set editable of gr3dtext < editable (default :False)
-
is_editable(self,..) : get editable of gr3dtext > editable
-
set_single_line(self,..) : set single_line of gr3dtext < single_line (default :False)
-
is_single_line(self,..) : get single_line of gr3dtext > single_line
-
set_is_time(self,..) : set is_time of gr3dtext < is_time (default :False)
-
is_time(self,..) : get is_time of gr3dtext > is_time
-
set_justification_h(self,..) : set justification_h of gr3dtext + 0 left + 1 center + 2 right < justification_h (default :0)
-
get_justification_h(self,..) : get justification_h of gr3dtext > justification_h
-
set_justification_v(self,..) : set justification_v of gr3dtext + 0 bottom + 1 center + 2 top < justification_v (default :0)
-
get_justification_v(self,..) : get justification_v of gr3dtext > justification_v