SceneData

Description

class Tinman.Engine.Scenes.Data.SceneData

Derived from

SceneDataBase abstract

Default implementation of the ISceneData interface.

To open or create a scene database, the following factories may be used:

Alternatively, a SceneDataFormat instance may be used to open a database with a specific format via SceneDataFormat.Dataset. To create scene data from scratch, use the constructor to create an empty SceneData object, cast ISceneData.Root to SceneDataNode and then populate it with content.

Public / Constructors

New

3 overloads


[OwnerReturn]
public static method New1 → (3)

data in : string

[not-null]
The scene dataset.

mode opt : DatasetMode = DatasetMode.Open

The dataset mode to use.

format opt : SceneDataFormat = null

The dataset format. If null, SceneDataFormat.Any is used.

returns → ISceneData

The created ISceneDataNode object.

Creates a ISceneDataNode object for the given dataset.

IOException

If an I/O error has occurred.

GeorefException

If the scene data contains unsupported geo-referencing metadata.

ValidatingException

If a validation error has occurred on the returned scene data.


[OwnerReturn]
public static method New2 → (3)

data in : Path

[not-null]
The scene dataset.

mode opt : DatasetMode = DatasetMode.Open

The dataset mode to use.

format opt : SceneDataFormat = null

The dataset format. If null, SceneDataFormat.Any is used.

returns → ISceneData

The created ISceneDataNode object.

Creates a ISceneDataNode object for the given dataset.

IOException

If an I/O error has occurred.

GeorefException

If the scene data contains unsupported geo-referencing metadata.

ValidatingException

If a validation error has occurred on the returned scene data.


[OwnerReturn]
public static method New3 → (3)

data in : IFileData

[not-null]
The scene dataset.

mode opt : DatasetMode = DatasetMode.Open

The dataset mode to use.

format opt : SceneDataFormat = null

The dataset format. If null, SceneDataFormat.Any is used.

returns → ISceneData

The created ISceneDataNode object.

Creates a ISceneDataNode object for the given dataset.

IOException

If an I/O error has occurred.

GeorefException

If the scene data contains unsupported geo-referencing metadata.

ValidatingException

If a validation error has occurred on data in or the returned scene data.

Scene­Data


public constructor SceneData → (1)

georef in : CoordinateSystem

[not-null]
The coordinate system of the root node, see ISceneDataNode.GeorefGeographic and ISceneDataNode.GeorefLocal.

Creates a new instance of SceneData.

Public / Attributes

Root­Mutable


public attribute RootMutable → (get)

value : SceneDataNode

[not-null]
The mutable root node.

Returns the mutable root node of this scene database.