TerrainTransform

Description

abstract class Tinman.Engine.Scenes.Util.TerrainTransform

Abstract base class for ITerrainTransform implementations.

Protected / Constructors

TerrainTransform


protected constructor TerrainTransform → ()

Creates a new instance of TerrainTransform.

Protected / Methods

AssertBound


protected method AssertBound → (1)

source in : string

Error source tag.

Asserts that this object is currently bound to an IMesh.

ComputeTransform


protected abstract method ComputeTransform → ()

returns → AffineTransform

The computed affine transformation.

Computes the affine transform to return from ITerrainTransform.Transform.

When this method is called, IMeshBound.HasMesh will always return true, unless ITerrainTransform.NeedsMesh is false.

DoMeshBind


[EmptyBody]
protected virtual method DoMeshBind → (1)

mesh in : IMesh

The mesh.

Called when this ITerrainTransform has been bound to a IMesh.

TinmanException

If the given mesh in does not provide all data that is required by this object.

DoMeshUnbind


[EmptyBody]
protected virtual method DoMeshUnbind → ()

Called when this ITerrainTransform has been unbound from its IMesh.

Protected / Attributes

Geometry


protected attribute Geometry → (get)

value : IGeometry

The current IGeometry object or null iff not bound.

The IGeometry object of the currently bound IMesh.

Heightmap


protected attribute Heightmap → (get)

value : IHeightmap

The current IHeightmap object or null iff not bound.

The IHeightmap object of the currently bound IMesh.