TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IMapShapeGeneric in Tinman.Terrain.Mapping

interface IMapShapeGeneric with <out T> as IMapShape
  extends IMapShape
  base of HeightmapShape
  PixelPyramidShape

Attributes

Layer

The layer of the shape.

property Layer { get }
type int32
value The shape layer.
inherited IMapShape.Layer

Remarks:

Map shapes with higher layer values are rendered on top.

MapShape

The vector shape to render.

property MapShape { get }
type IShape
value [not-null] The vector shape.
inherited IMapShape.MapShape

Methods

LayerSet

Sets the map shape layer (see Layer).

method LayerSet (int32 layer)
type T
params layer The shape layer.
returns [not-null] The resulting map shape.

MapShapeCubemap

Converts the map shape to a cubemap, if necessary.

method MapShapeCubemap (float64 accuracy = 0)
type T
params accuracy [>=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. Defaults to 0.
returns [not-null] The resulting map shape.

See also:

IShape.TransformCubemap

MapShapeSet

Sets the map shape (see MapShape).

method MapShapeSet (IShape shape)
type T
params shape The new shape.
returns The resulting map shape or null if shape is null.

MapShapeTransform

Converts the map shape to the given coordinate system.

method MapShapeTransform (CoordinateSystem coordSys, float64 accuracy = 0)
type T
params coordSys [not-null] The target coordinate system.
  accuracy [>=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. Defaults to 0.
returns The resulting map shape or null if empty.

ToConfig

Returns the configuration value that describes this object.

method ToConfig ()
type ConfigValue
returns [not-null] The configuration value.
inherited IConfigurable.ToConfig

Remarks:

All configurable objects need to implement this interface. For simple types, it is preferable to delegate to ToValue.

The returned value may be of type Invalid, which means that this object in its current state cannot be described with the configuration API.

Before returning the resulting configuration value, Cache must be called on it, passing this IConfigurable object as parameter.