Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    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
    IInitCellValueDataLayerArgs<TValue>.FillValue
    IInitCellValueDataLayerArgs<TValue>.DefaultValue
    IInitCellValueDataLayerArgs<TValue>.IsApplySourceTexture
    IInitCellValueDataLayerArgs<TValue>.IsFillWithRandomValues
    IInitCellValueDataLayerArgs<TValue>.IsFillWithValue
    IInitCellValueDataLayerArgs<TValue>.MaxValue
    IInitCellValueDataLayerArgs<TValue>.MinValue
    IInitCellValueDataLayerArgs<TValue>.RandomMaxValue
    IInitCellValueDataLayerArgs<TValue>.RandomMinValue
    IInitCellValueDataLayerArgs<TValue>.SourceTexture
    IInitCellValueDataLayerArgs<TValue>.SourceTextureValueOffset
    IInitCellValueDataLayerArgs<TValue>.SourceTextureValueScale
    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

    Extension Methods

    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX