IScene
Description
- Derived from
-
ISceneEntityContainer
ITerrainEntityContainer
IHeightmapProvider
ISceneQueryProvider - Extended by
-
Scene sealed
Represents a high-level API for animated 3D-scenes that are based on a terrain.
Access to scene functionality is provided by a hierarchy of interfaces and classes. As best practice, at a specific location in the code, the type with the highest generalization should be used:
- See also
Public / Methods
ClearDatasetCache
Clears the dataset cache, if configured.
- IOException
-
If an I/O error has occurred.
- See also
ClearImageryCache
Clears the imagery cache, if configured.
- IOException
-
If an I/O error has occurred.
- See also
ClearTextureCache
Clears the texture cache, if configured.
- IOException
-
If an I/O error has occurred.
- See also
Evict
The given resource is no longer used and may be evicted from all GPU caches.
It is not necessary to call this method. However, if it is considered best practice that all scene entities tell their scene when a resource will never be used again, so that cleanup can be performed up-front.
InclinationToGround
Computes the inclination angle to the ground, not taking into account the elevation model.
TransformGround
Computes a ground-aligned transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing false
to invariant opt.
- See also
Public / Attributes
DatasetCache
Returns the dataset file cache.
The cache will never be in read-only mode (see DatasetFileCache.IsReadOnly).
Entities
Returns the entities that are currently attached to this scene.
This is a flat list that contains all scene entities, including those that have been added implicitly to the scene via SceneEntity objects. It is sorted in ascending order, according to the ISceneObject.Order values of the contained scene entities.
ImageryCache
Returns the imagery tile cache.
The value of PyramidFileCache.IsReadOnly may be specified at creation time, by setting SceneOptions.ImageryCacheOptions to null
.
Setting PyramidFileCache.Locked to true
will prevent accesses to the underlying IPixelPyramid objects. This can be used to avoid billable transactions at a streaming provider such as GoogleMaps or BingMaps.
TextureCache
Returns the texture tile cache.
The PyramidFileCache.Locked property of the texture file cache should not be set to true
.
World
Returns a ICameraWorld object for this Scene.
The returned object will use spatial queries based on ISceneQueryProvider.QueryDistance and SceneQueryOp.ForRay, which take a spatial query filter mask as a parameter. The parameter value will be taken from WorldMask.
- See also
Extensions
Topocentric
Computes a topocentric coordinate system.
Usually, the topocentric coordinate system uses a map projection where the X- and Y-coordinates are interpreted as easting and northing, using some length unit (see CoordinateSystem.Flags and CoordinateSystem.ProjectionUnit). The terrain local-space (see LocalTransform) is defined differently and may not match the topocentric coordinate system. In such a case, an additional affine transformation is required to map points in the topocentric coordinate system to terrain local-space.
- See also
TopocentricMatrix
Helper method that delegates to Geocentric.ToLocalSpace, passing the Geocentric object of this scene, see IScene.Geocentric.
- See also
Transform
5 overloads
Computes a transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing VerticalType.HeightMesh to verticalType opt.
- ValidatingException
-
If the given coordinates in input string is invalid.
- See also
Computes a transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing VerticalType.HeightMesh to verticalType opt.
- ValidatingException
-
If the given coordinates in input string is invalid.
- See also
Computes a transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing VerticalType.HeightMesh to verticalType opt.
- See also
Computes a transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing VerticalType.HeightMesh to verticalType opt.
- See also
Computes a transformation matrix from the given local-space to terrain-space.
- See also
TransformGround
Computes a ground-aligned transformation matrix from the given local-space to terrain-space.
This method is intended to be used for placing objects statically in the scene and thus uses VerticalType.Height by default. When placing objects dynamically, please consider passing false
to invariant opt.
- ValidatingException
-
If the given coordinates in input string is invalid.
- See also