Interface IInitColorMapCellValueDataLayerArgs<TValue>
Defines the arguments required to initialize a cell value data layer with color mapping capabilities, including automatic color mapping mode, color palette, and texture index settings.
Inherited Members
Namespace: Fwt.HexTerrains.Data
Assembly: fwt.hexterrains.dll
Syntax
public interface IInitColorMapCellValueDataLayerArgs<TValue> : IInitCellValueDataLayerArgs<TValue> where TValue : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of cell values managed by the data layer. Must be an unmanaged type. |
Remarks
This interface extends initialization arguments for cell value data layers to support color mapping features. It allows configuration of automatic color mapping behavior, selection of a color palette, and assignment of a texture index for color map rendering. Implementations should ensure that the provided color palette and texture index are compatible with the intended visualization.
Properties
AutoColorMapMode
Gets or sets the mode used to automatically generate the color map.
Declaration
AutoColorMapMode AutoColorMapMode { get; set; }
Property Value
| Type | Description |
|---|---|
| AutoColorMapMode |
ColorPalette
Gets or sets the collection of colors used in the palette.
Declaration
List<Color32> ColorPalette { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Color32> |
DefaultColor
This color is used to paint cells if the cell value is out of the range of the color palette.
Declaration
Color32 DefaultColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color32 |
IsColorMapEnabled
If disabled, color map calculations don't run.
Declaration
bool IsColorMapEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |