This is a switch that is connected to the 7 standard Datamaps so that by altering the switch value the selected Datamap becomes the output.
Input Ports
Name Type Description index int This connects to a UI widget that supplies an integer value 0-6, the value alters which Datamap is output from the macro min float The the minimum data value of the field to be rendered. max float The the maximum data value of the field to be rendered. Description
Reducing the object count of an application is the thing most likely to speed up the loading and running of an application. This is one of a library of utility macros designed to reduce the object count.
These are all AVS/Express macros which as such require no compilation. Most applications are produced with AVS/Express Developers Edition and these macros also require AVS/Express Developers Edition. They contain no UI so that the developer has as much freedom as possible.
This switch can be connected into any DataObject so that the user can the select the Datamap to be used on a specific field.
A DataObject has a high object count and this can be used with a DataObject to reduce the object count, either directly or by allowing the use of a ViewersLite macro.
Input Ports
indexThe index value given selects the Datamap for output:
0 is Default
1 is GreyScale
2 is VolumeRender
3 is HotMetal
4 is CyanYellowRed
5 is DefaultStep
6 is FilterDatamap
minThe minimum value of the field to be rendered.maxThe maximum value of the field to be rendered.Output Ports
Datamap
A Datamap that can be connected to a DataObject and colormap that field.
Utility Macros
This macro can be connected into the AVS/Express standard macros DataObject, DataObjectNoTexture and DataObjectLite.Example
An example application EgViewLite is provided, which shows how this switch can be connected into a DataObject to produce a rederable object with a Datamap that the user can select.
This example also demonstrates the use of DataObjects altered to have a set Datamap and how ViewersLite can be used.
Files
iac_proj/viewlite/vl_macs.v contains the Datamap_Switch macro discussed here as well as all the DataObject macros (eg DO_GreyScale), DO_Dmap_Switch, DO_NT_Dmap_Switch, DO_LITE_Dmap_Switch, View3DMinimal, View3D_TrackObj, View3D_TrackAll3, View2DMinimal, View2D_TrackObj, View2D_TrackAll3, ViewMinimal, View_TrackObj, View_TrackAll3 and an example EgViewLite.Other Notes
The macros can be acessed through the IAC_PROJ library in the Templates library or through one of four libraries DataObjects_apps, Views3DLite, Views2DLite and UViewsLite all of which are in the Misc sub-library IAC library area.
The example EgViewLite can also be acessed through the IAC library but is located in the Examples sub-library.
Authors
J Leng Manchester Visualization CentreModifications
Paul G. LeverContact
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PLSee Also
DataObject, the DataObjects "DO_", "DO_NT_" and "DO_LITE_", the DataObjects "_Dmap_Switch", and the viewers lite 3D, 2D and Universal "Minimal", "_TrackObj" and "_TrackAll3".