Abstract base class for ITerrainTransform implementations.
abstract class
|
TerrainTransform
|
implements
|
ITerrainTransform
|
||
extends
|
VersionedBase
|
||||
base of
|
TerrainTransformAppend
|
||||
TerrainTransformLocal
|
|||||
TerrainTransformMatrix
|
Has this object been bound to an IMesh object?
public
property
|
HasMesh
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
this
object
is
currently
bound
to
an
IMesh,
false
if
not.
|
||
implements
|
IMeshBound.HasMesh
|
The CLOD mesh this object is currently bound to.
public
property
|
Mesh
{
get
}
|
||
type
|
IMesh
|
||
value
|
The
CLOD
mesh
or
null . |
||
implements
|
IMeshBound.Mesh
|
Returns the transformation matrix from terrain-space to model-space, (re-)computing it if necessary.
public
abstract
property
|
ToModel
{
get
}
|
||
type
|
Mat4D
|
||
value
|
The transformation matrix. | ||
implements
|
ITerrainTransform.ToModel
|
Returns the transformation matrix from model-space to terrain-space, (re-)computing it if necessary.
public
abstract
property
|
ToTerrain
{
get
}
|
||
type
|
Mat4D
|
||
value
|
The transformation matrix. | ||
implements
|
ITerrainTransform.ToTerrain
|
Returns the current version of object.
public
property
|
Version
{
get
}
|
||
type
|
int32
|
||
value
|
The current version number. | ||
inherited
|
VersionedBase.Version
|
Remarks:
For each modification, the version is incremented by at least one.
Appends the given transform to this one.
public
virtual
method
|
Append
(ITerrainTransform other)
|
||
type
|
ITerrainTransform
|
||
params
|
other
|
[not-null]
|
The other terrain transform. |
returns
|
|
The resulting terrain transform. | |
implements
|
ITerrainTransform.Append
|
Remarks:
The concatenated transforms are applied as follows:
V'
=
other.ToTerrain
*
this.ToTerrain
*
V
V
=
this.ToModel
*
other.ToModel
*
V'
V
is
a
point
in
model-space
and
V'
is
a
point
in
terrain-space.
Binds this object to the given IMesh.
public
virtual
method
|
MeshBind
(IMesh mesh)
|
||
params
|
mesh
|
The mesh object. | |
implements
|
IMeshBound.MeshBind
|
Unbinds this object from its current IMesh.
public
virtual
method
|
MeshUnbind
()
|
||
implements
|
IMeshBound.MeshUnbind
|
The geometry of the currently bound terrain mesh.
protected
field
|
geometry
|
||
type
|
IGeometry
|
The currently bound terrain mesh.
protected
field
|
mesh
|
||
type
|
IMesh
|
Returns the version of aggregated objects, which will be added to the current version of this object.
[EmptyBody]
|
||||
protected
virtual
property
|
VersionAggregated
{
get
}
|
|||
type
|
int32
|
|||
value
|
The aggregated version. | |||
inherited
|
VersionedBase.VersionAggregated
|
Increments the version of this object.
protected
method
|
VersionIncrement
()
|
||
inherited
|
VersionedBase.VersionIncrement
|