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

interface ICanvasTransform in Tinman.Terrain.Georef

Base interface for classes that transform coordinates between a map raster (defined by Map and Georef) and a two-dimensional canvas (defined by a Coordinates).

interface ICanvasTransform extends IGeorefInfo
  base of TerrainDecal

See also:

CoordinateSystemTransform

Attributes

Coordinates

The coordinate system of the canvas.

property Coordinates { get }
type CoordinateSystem
value The canvas coordinate system or null if canvas space cannot be described by a CoordinateSystem object (e.g. an unfolded cubemap).

Georef

Returns georeferencing information.

property Georef { get }
type Raster
value The georeferencing object or null if no georeferencing is available.
inherited IGeorefInfo.Georef

Map

Returns a MapInfo value that describes the used map raster.

property Map { get }
type MapInfo
value The map info value.
inherited IMapInfo.Map

Methods

CanvasToMapRaster

Transforms the given canvas coordinates into map raster coordinates.

method CanvasToMapRaster (float64 x, float64 y, bool maxSize = false)
type Vec3D
params x X-component of input canvas coordinates.
  y Y-component of input canvas coordinates.
  maxSize Return map raster coordinates for MaxSize, instead of Size of Map? Defaults to false.
returns The output map raster coordinates (see Georef and Map resp. maxSize), or Undefined if the transformation is not possible.

MapRasterToCanvas

Transforms the given map raster coordinates into canvas coordinates.

method MapRasterToCanvas (float64 x, float64 y, float64 z = 0, bool maxSize = false)
type Vec2D
params x X-component of input map raster coordinates.
  y X-component of input map raster coordinates.
  z X-component of input map raster coordinates. Defaults to 0.
  maxSize Are input map raster coordinates specified for MaxSize, instead of Size of Map? Defaults to false.
returns The output canvas coordinates (see Coordinates), or Undefined if the transformation is not possible.

Extensions

CanvasToMapRaster

Transforms the given canvas coordinates into map raster coordinates.

method CanvasToMapRaster (Vec2D v, bool maxSize = false)
type Vec3D
params v The input canvas coordinates.
  maxSize Return map raster coordinates for MaxSize, instead of Size of Map? Defaults to false.
returns The output map raster coordinates (see Georef and Map resp. maxSize), or Undefined if the transformation is not possible.

MapRasterToCanvas

Transforms the given map raster coordinates into canvas coordinates.

method MapRasterToCanvas (Vec3D v, bool maxSize = false)
type Vec2D
params v The input map raster coordinates.
  maxSize Are input map raster coordinates specified for MaxSize, instead of Size of Map? Defaults to false.
returns The output canvas coordinates (see Coordinates), or Undefined if the transformation is not possible.