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

Layer​Set


public method LayerSet → (1)

layer in : int32

The shape layer.

returns → T

The resulting map shape.

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

Map​Shape​Coordinate​System


public method MapShapeCoordinateSystem → (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.

Converts the map shape to the given coordinate system.

This method is a helper that calls IShapeOps.TransformCoordinateSystem on IMapShape.MapShape.

Map​Shape​Cubemap


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.

This method is a helper that calls IShapeOps.TransformCubemap on IMapShape.MapShape.

Map​Shape​Set


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).