Class ColorMapCellValueDataLayer_ULong
Data layer for storing a ulong value per cell and color per cell. Provides a job to calculate the color map based on the cell value. Override CalculateColorMap method to implement the color map calculation logic.
Inheritance
Inherited Members
Namespace: Fwt.HexTerrains.DataLayers
Assembly: fwt.hexterrains.dll
Syntax
public class ColorMapCellValueDataLayer_ULong : AutoColorMapCellValueDataLayer<ulong>, IDisposable, ICommitChanges, IListDataLayer<ulong>, ICalculateColorMapJobProvider
Methods
CalculateColorMap_ColorIndexByValue(JobHandle)
Schedules a job that calculates colors for each cell based on the cell values. Color map is calculated by taking from color palette a color with index == cell value.
Declaration
public override JobHandle CalculateColorMap_ColorIndexByValue(JobHandle dependency)
Parameters
| Type | Name | Description |
|---|---|---|
| JobHandle | dependency | job handle that is used as dependency to the scheduled job |
Returns
| Type | Description |
|---|---|
| JobHandle | new job handle that handles a scheduled job |
Overrides
CalculateColorMap_Custom(JobHandle)
Schedules a job that calculates colors for each cell based on the cell values. Color map is calculated by using a custom logic defined in the derived class.
Declaration
public override JobHandle CalculateColorMap_Custom(JobHandle dependency)
Parameters
| Type | Name | Description |
|---|---|---|
| JobHandle | dependency | job handle that is used as dependency to the scheduled job |
Returns
| Type | Description |
|---|---|
| JobHandle | new job handle that handles a scheduled job |
Overrides
CalculateColorMap_GradientThroughPalette(JobHandle)
Schedules a job that calculates colors for each cell based on the cell values. Color map is calculated by using a gradient through the color palette. The progress trhough gradient (palette) is calculated based on the cell value. The cell value is normalized to the range [0, 1] based on the MinValue and MaxValue.
Declaration
public override JobHandle CalculateColorMap_GradientThroughPalette(JobHandle dependency)
Parameters
| Type | Name | Description |
|---|---|---|
| JobHandle | dependency | job handle that is used as dependency to the scheduled job |
Returns
| Type | Description |
|---|---|
| JobHandle | new job handle that handles a scheduled job |