Synopsis
take an array of glyphs as input and output glyphs at nodes using node data as an index into the glyph array
Input Ports
in_field |
Mesh+Node_Data |
in_glyph |
Mesh[] |
ui_parent |
user interface parent object |
Output Ports
out_fld |
Mesh + Node_Data |
out_obj |
output renderable object |
Description
geo_glyph takes an input field and an array of glyphs, and draws one glyph at each node location of the in_field. The glyph drawn is selected by using the data at that node as an index into the glyph array.
If normalize is off, floating point values are converted to integers by truncation. If normalize is on, the data range is mapped to the number of glyphs so that each glyph represents the same fraction of the data range.
If the data is out of the bounds of the glyph array, the minimum or maximum glyph is drawn, as appropriate.
The glyphs' colors are determined by the color parameters unless the glyphs themselves provide node data for coloring, and their size is scaled by the scale parameter. Their orientation is unchanged.
Input Ports
in_field
Mesh+Node_Data. The field on which the glyphs are plotted.
in_glyph
Mesh[]. The array glyphs to plot.
ui_parent
A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)
Parameters
scale
UIslider. Scales glyph size (X, Y and Z).
red
UIslider. Sets color for glyphs.
green
UIslider. Sets color for glyphs.
blue
UIslider. Sets color for glyphs.
normalize glyph index
UItoggle. When on (1), the range of the data is matched to the number of glyphs so that each glyph represents an equal part of the range. When off (0), the data is used directly as an index into the glyph array.
Output Ports
out_fld
Mesh+Node_Data. Contains the output glyphs.
out_obj
Renderable object corresponding to out_fld.
Example
Libraries.Examples.Visualization.geo_glyph
examples/g_glyph.v
File
v/modules.v
See also