DESCRIPTION:

The Glyph container provides methods to draw 3D glyphs at each point position of a PolyData set. Several methods control size, rotation, color and shape of the 3D objects which are drawn.

NEO CREATION:

VTK render engine name:
The unit name of the corresponding Render unit to use as a render engine for the glyphs.
PolyData name:
The unit name of the PolyData unit to use as the underlaying dataset

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:

Set:Wires:
Render glyphs with wireframes
Set:Surface:
Render glyphs with solid surfaces
Set:Opacity:
Input field 0:
(float 1) opacity value
Sets opacity of glyhps (0 makes them completey transparent, 1 completey nontransparent)
Set:Ambient:
Input field 0:
(float 1) ambience value
Set:Diffuse:
Input field 0:
(float 1) diffusion value
Set:Specular:
Input field 0:
(float 1) specular value
Set:Pickable:
Input field 0:
(float 1) boolean value (0=false, 1=true)
If true, the corresponding glyhps are pickable, otherwise not.
Set:PickedCB:
Input field 0:
(string) callback name
The string specifies (a comma seperated) list of callbacks. Units with the corresponding names get called, when a glyph object is picked.
Get:Picked:
Output field 0:
(float 1) number of picked glyph
Gets the number of the last picked glyph. This method is usefull in a callback routine to determine which glyph was actually picked by the user.
Glyph:ByComp:
Input field 0:
(float 1) component in PolyData
Choose the glyph type according to the datavalue in the selected column in the PolyData set.
Glyph:ByConst:
Input field 0:
(float 1) glyph type
Choose constant glyph type for all glyphs. 0=cube, 1=sphere, 2=cylinder, 3=cone
Scale:ByComp:
Input field 0:
(float 1) component s in PolyData
Scale the glyph size according to the value of the selected component s in the PolyData set. I.e., the glyph corresponding to the n th data item will be scaled according the value of the component s of the n th data item.
Scale:ByConst:
Input field 0:
(float 1) scaling factor
Scale the glyphs additionally by this scaling factor
Rot:ByComps:
Input field 0:
(float 3) components in PolyData
Rotate glyphs around x, y, and z-axis according to the data in the selected columns in the PolyData set. (Choose -1 for a component to omit rotation around corresponding axis). The values are expected in degrees.
Rot:ByConst:
Input field 0:
(float 3) rotation angles
Additionally rotate the glyphs around x, y, and z-axis by the specified values (expected in degrees).
Color:ConstNST:
Input field 0:
(float 1) NST color code
Choose constant color for all glyphs according to NST color scheme.
Color:ConstRGB:
Input field 0:
(float 3) RGB values
Choose constant color for all glyphs according to RGB values (in [0...1])
Color:PolyData:
Color glyphs according to data attributes of the PolyData set. The actual attributes are choosen with a suitable PolyData member function.

FILE

nst_vtk.cc