ISceneDataContent

Description

interface Tinman.Engine.Scenes.Data.ISceneDataContent

Base interface for classes that represent a content item in a scene database node.

Each content item may contain zero or one data items of each type, see SceneDataFlags.

Public / Methods

Load​Decal


[ThreadSafe]
public method LoadDecal → ()

returns → IImage

The loaded data or null iff not present.

Loads the decal data item.

The returned IImage object may depend on the ISceneData object: if the latter is disposed, trying to access the former one may throw an exception.

IOException

If an I/O error has occurred.

Load​Entity


[OwnerReturn] [ThreadSafe]
public method LoadEntity → ()

returns → ISceneEntity

The loaded data or null iff not present.

Loads the entity data item.

The returned ISceneEntity may keep ownership on the ISceneData object, thus keeping it alive.

IOException

If an I/O error has occurred.

Load​Model


[ThreadSafe]
public method LoadModel → ()

returns → IModel

The loaded data or null iff not present.

Loads the model data item.

The returned IModel object may depend on the ISceneData object: if the latter is disposed, trying to access the former one may throw an exception.

IOException

If an I/O error has occurred.

Load​Pyramid


[OwnerReturn] [ThreadSafe]
public method LoadPyramid → ()

returns → IPixelPyramid

The loaded data or null iff not present.

Loads the pyramid data item.

The returned IPixelPyramid may keep ownership on the ISceneData object, thus keeping it alive.

IOException

If an I/O error has occurred.

Load​Pyramid​Shape


[ThreadSafe]
public method LoadPyramidShape → ()

returns → PixelPyramidShape

The loaded data or null iff not present.

Loads the pyramid shape data item.

The returned PixelPyramidShape object may depend on the ISceneData object: if the latter is disposed, trying to access the former one may throw an exception.

IOException

If an I/O error has occurred.

Load​Raster


[OwnerReturn] [ThreadSafe]
public method LoadRaster → ()

returns → IHeightmap

The loaded data or null iff not present.

Loads the raster data item.

The returned IPixelPyramid may keep ownership on the ISceneData object, thus keeping it alive.

IOException

If an I/O error has occurred.

Load​Raster​Shape


[ThreadSafe]
public method LoadRasterShape → ()

returns → HeightmapShape

The loaded data or null iff not present.

Loads the raster shape data item.

The returned HeightmapShape object may depend on the ISceneData object: if the latter is disposed, trying to access the former one may throw an exception.

IOException

If an I/O error has occurred.

Public / Attributes

Bounds


public attribute Bounds → (get)

value : ISceneDataBounds

The spatial bounds or null to use ISceneDataNode.Bounds instead.

Returns the spatial bounds of this scene content item.

Flags


public attribute Flags → (get)

value : SceneDataFlags

The scene data flags.

The scene data flags of this content item.