ContourRange

Description

struct Tinman.Terrain.Heightmaps.Painting.ContourRange

Describes a contour line and contour fill.

See also

ContourValue

Public / Constructors

Contour​Range

2 overloads


public constructor ContourRange1 → (2)

offset in : float64

Contour value to map to contour index zero.

step in : float64

[>=0]
Contour value step away from offset in that corresponds to an incremented resp. decremented contour index.

Creates a new instance of ContourRange.


public constructor ContourRange2 → (2)

range in : RangeD

Contour value range to map to contour index zero.

step opt : float64 = 0

[>=0]
Contour value step away from the start resp. end of range in that corresponds to an incremented resp. decremented contour index.

Creates a new instance of ContourRange.

Public / Methods

Compute​Contour


[Pure]
public method ComputeContour → (1)

value in : float64

The input contour value (see ContourValue).

returns → int32

The output contour index: Lines will be drawn where adjacent samples have different indices. Areas where the contour index is zero will be filled.

Computes a contour index of a sample in a heightmap.

Public / Attributes

Range


public readonly attribute Range → (RangeD)

The contour value range to map to contour index zero.

Step


public readonly attribute Step → (float64)

The step value away from Range that increments resp. decrements the contour index value.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<ContourRange>

[not-null]
The configurator object.

The configurator object for this type.

Config​Value


public static attribute ConfigValue → (get)

value : IConfigurator<ContourValue>

[not-null]
The configurator object.

The configurator object for ContourValue.