A datamap converts scalar node data or cell data values to RGB colors.
There are several higher-level datamap components that are composed of the objects described in the previous section. These higher-level objects are described in the sections below.
Synopsis
define a default linear data range
Description
DefaultLinearRange provides an example for defining a linear data range. It is not used.
Synopsis
define a default step data range
Description
DefaultStepRange provides an example for defining a step data range. It is not used.
Synopsis
define a default datamap
Description
DefaultLinear defines the default datamap that is used by other Graphics Display Kit objects (for example, DataObject and GroupObject).
DefaultLinear is defined with an HSV color model. It contains a single data range of size 256 with two control points that run from blue to red, going through green.
Input Ports
dataMin
dataMax
The minimum and maximum values of the scalar input data, typically obtained through connections to the object GDminmax.
Example
Libraries.Templates.DMAP.DataObject
Libraries.Template.DMAP.GroupObject
File
v/dmap_ex.v
Synopsis
define a greyscale datamap
Description
GreyScale is defined with an HSV color model. It contains a single data range of size 256 with two control points that run from black to white.
Input Ports
dataMin
dataMax
The minimum and maximum values of the scalar input data, typically obtained through connections to the object GDminmax.
Example
Libraries.Examples.Graphics_Display.ReplaceDatamap
File
v/dmap_ex.v
Synopsis
define a datamap for use when volume rendering
Description
VolumeRender is defined with an HSV color model. It contains two data ranges with a combined size of 256. It contains three control points that run from blue to red through green -- in the same manner as DefaultLinear.
VolumeRender is configured so that only the first and last control points are allowed to be edited. The middle control point color (that is, v2, v3, v4) components are not editable; instead they are computed from the first and last control point. The values of the middle control point are kept such that the datamap always has a linear ramp from blue to red. The alpha (that is, v1) component of the middle control point is editable. This is allowed so reasonable control over the alpha component of the datamap is obtained.
Input Ports
dataMin
dataMax
The minimum and maximum values of the scalar input data, typically obtained through connections to the object GDminmax.
Example
Libraries.Examples.Graphics_Display.ReplaceDatamap
File
v/dmap_ex.v
Synopsis
define a hot metal datamap
Description
HotMetal is defined with an RGB color model. It contains three data ranges with a combined size of 256. It contains four control points that run from black to red to orange to white. Each data range has two control points. The middle data range shares control points with the ranges on either side.
HotMetal is configured so that all control points are allowed to be edited. The size of the ranges is not editable as it is computed based on the placement of the ranges within the total data range.
Input Ports
dataMin
dataMax
The minimum and maximum values of the scalar input data, typically obtained through connections to the object GDminmax.
Example
Libraries.Examples.Graphics_Display.ReplaceDatamap
File
v/dmap_ex.v
Synopsis
define a cyan-yellow-red datamap
Description
CyanYellowRed is defined with an RGB color model. It contains two data ranges with a combined size of 256. It contains three control points that run from cyan to yellow to red. Each data range has two control points. The middle control point is shared between the two data ranges.
CyanYellowRed is configured so that all control points are allowed to be edited. The size of the ranges is not editable as it is computed based on the placement of the ranges within the total data range.
Input Ports
dataMin
dataMax
The minimum and maximum values of the scalar input data, typically obtained through connections to the object GDminmax.
Example
Libraries.Examples.Graphics_Display.ReplaceDatamap
File
v/dmap_ex.v
See also