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

class GeoObject in Tinman.Terrain.Georef

Abstract base class for IGeoObject implementations.

abstract class GeoObject implements IGeoObject
  extends SerializableBase
  base of CoordinateOperation
  CoordinateOperationMethod
  CoordinateSystem
  DatumOperation
  Ellipsoid
  GeodeticDatum
  PrimeMeridian
  Raster
  UnitOfMeasure
  VerticalDatum

Configuration

ToConfig

Returns the configuration value that describes this object.

public virtual method ToConfig ()
type ConfigValue
returns [not-null] The configuration value.
implements 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.

Public / Constants

FirstType

public constant FirstType = GeoObjectType.UnitOfMeasure
type GeoObjectType

LastType

public constant LastType = GeoObjectType.Raster
type GeoObjectType

UserDefined

Common constant that can be used when custom user-defined geo objects are created.

public constant UserDefined = "user-defined"
type string

Public / Attributes

Name

The human-readable name of this object.

public property Name { get }
type string
value [not-empty] The object name.
implements IGeoObject.Name

SerialType

Returns the serial type of this object.

public property SerialType { get }
type ISerialTypeInfo
value [not-null] The serial type.
inherited SerializableBase.SerialType

SerialVersion

Returns the serial data version.

public virtual property SerialVersion { get }
type int32
value [>=1] The serial data version tag.
inherited SerializableBase.SerialVersion

Remarks:

An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.

See also:

ISerializable.Serialize
ISerializable.Deserialize

Type

The type of this geo object.

public property Type { get }
type GeoObjectType
value The geo object type.
implements IGeoObject.Type

Public / Methods

Deserialize

Initializes the state of this object from the given data stream.

public override method Deserialize (int32 serialVersion, ISerializer data)
type ISerializable
params serialVersion [>=1] The serial data version.
  data [not-null] The serial data stream.
returns [not-null] The deserialized object. This will typically be this, but in some circumstances, another instance may be returned (e.g. singletons).
overrides SerializableBase.Deserialize

Remarks:

The Deserialize method will be called immediately after the object has been instantiated via its default constructor.

The provided serialVersion number is guaranteed to be equal to or less than the SerialVersion returned by this object (i.e. ISerializable object must provide backwards compatibility).

See also:

ISerializable.Serialize
ISerializable.SerialVersion

Equals

Compares this object with the given one.

[Pure]
public override sealed method Equals (object other)
type bool
params other The object to compare to.
returns true if this object is equal to other, false if not.

Compares this object with the given one.

[Pure]
public virtual method Equals (IGeoObject other)
type bool
params other The object to compare to.
returns true if this object is equal to other, false if not.
implements IEquatable.Equals

GetHashCode

[Pure]
public override sealed method GetHashCode ()
type int32

Serialize

Serializes the current state of this object to the given data stream.

public override method Serialize (ISerializer data)
params data [not-null] The serial data stream.
overrides SerializableBase.Serialize

See also:

ISerializable.Deserialize
ISerializable.SerialVersion

ToString

[Pure]
public override sealed method ToString ()
type string

TypeTag

public static method TypeTag (string tag)
type GeoObjectType
params tag

public static method TypeTag (GeoObjectType type)
type string
params type

Protected / Attributes

hashCode

The hashcode of this object.

protected field hashCode
type int32

Remarks:

The hashcode must be computed incrementally in each subclass constructor.

See also:

HashCode

Protected / Constructors

GeoObject

protected constructor GeoObject (ISerialTypeInfo serialType)
params serialType

Creates a new instance of GeoObject.

protected constructor GeoObject (ISerialTypeInfo serialType, string name, GeoObjectType type, bool doesEqualName)
params serialType [not-null] The serial type.
  name Human-readable name of the geo object. If empty or null, UserDefined will be used instead. Defaults to null.
  type The geo object type.
  doesEqualName Is the geo object name included when testing for equality?