DESCRIPTION:
NEO CREATION:
- VTK render engine name:
- The unit name of the corresponding Render unit to use as
a render engine for the text strings.
EXECUTION:
Execution of the created unit does nothing. However, execution of
any of its named subunits (via use_named or use_method) invokes the
corresponding C++ class method. The interface of each named
subunit provides inputs and outputs for the corresponding method.
INTERFACES AND DESCRIPTION of named subunits:
- Add:
-
- Input field 0:
- (string) text string
- Input field 1:
- (float 3) xyz coordinates
- Output field 0:
- (float 1) text id h
Adds the given text at given coordinates to the render window. The unit
returns the id of the added text as a handle which can be used by other
methods (cf. below).
- Set:String:
-
- Input field 0:
- (string) text string
- Input field 1:
- (float 1) text id h
Sets the text with handle h to the given input string.
- Set:Default_Scale:
-
- Input field 0:
- (float 1) scale factor
Sets the default size of the text objects - default is 0.2
- Set:Scale:
-
- Input field 0:
- (float 1) scale factor
- Input field 1:
- (float 1) text id h
Sets the size of text with handle h to given size.
- Set:Default_Color:
-
- Input field 0:
- (float 3) RGB values
Sets the default color of the to be added text.
- Set:ColorRGB:
-
- Input field 0:
- (float 3) RGB values
- Input field 1:
- (float 1) text id h
Sets the color of the text with handle h to given RGB values (in [0...1]).
- Set:Pos:
-
- Input field 0:
- (float 3) xyz coordinates
- Input field 1:
- (float 1) text id h
Sets the position of the text with handle h to given coordinates.
- Set:Mode:
-
- Input field 0:
- (float 1) mode (0=TEXT_FOLLOWS, 1=TEXT_STATIC)
Sets the mode of the to be added text items. In TEXT_FOLLOWS mode, the text
is always rotated with respect to the camera that it is readable. Otherwise,
the text orientation is fixed.
- Remove:
-
Removes all text items from the VTK render window.
FILE
nst_vtk.cc