IMapShapeGeneric

Description

interface Tinman.Terrain.Mapping.IMapShapeGeneric
<T out : IMapShape>

Derived from

IMapShape

Extended by

HeightmapShape sealed
PixelPyramidShape sealed

Generic base interface for 2D vector shapes that can be rasterized.

Public / Methods

LayerSet


public method LayerSet → (1)

layer in : int32

The shape layer.

returns → T

The resulting map shape.

Sets the map shape layer (see IMapShape.Layer).

MapShapeCubemap


public method MapShapeCubemap → (1)

accuracy opt : float64 = 0

[>=0]
Optional accuracy to use for subdivision of edges. Given as a maximum error in the target coordinate system. Set to 0 to disable edge subdivision.

returns → T

The resulting map shape.

Converts the map shape to a cubemap, if necessary.

MapShapeSet


public method MapShapeSet → (1)

shape in : IShape

The new shape.

returns → T

The resulting map shape or null if shape in is null.

Sets the map shape (see IMapShape.MapShape).

MapShapeTransform


public method MapShapeTransform → (2)

coordSys in : CoordinateSystem

[not-null]
The target coordinate system.

accuracy opt : float64 = 0

[>=0]
Optional accuracy to use for subdivision of edges. Given as a maximum error in the target coordinate system. Set to 0 to disable edge subdivision.

returns → T

The resulting map shape or null if empty.

Converts the map shape to the given coordinate system.