Click or drag to resize
SoTransferFunctioncolorMap Property

Array of floats in the range [0,1] defining a color map.

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SoMFFloat colorMap { get; }

Property Value

Type: SoMFFloat
Remarks

The number of floats needed depends on OIV.LDM.Nodes.SoTransferFunction.colorMapType. It is equal to the number of colors defined multiplied by the number of components per color. For example, for an RGBA color map of length n, there should be 4*n float values in the field.

Note that changing a value in the colorMap field automatically updates the OIV.LDM.Nodes.SoTransferFunction.actualColorMap field. Thus it can be very inefficient to set the color map entries one at a time. To avoid a performance decrease we recommend using one of the following techniques, particularly when changing many values:

  • Use the SetValues() or SetValuesBuffer() method.

  • Use the start/finish editing methods.

See the examples in the class description.

See Also