Represents the events emitted by a Scene.

This class provides a collection of event emitters for actions and updates that occur within a Scene and its owned components, such as models, objects, meshes, geometries, transforms, textures, and coordinate systems.

Properties

onError: EventEmitter<Scene, SDKResult<any>>

Emits an event when an error occurs within the Scene or any of its child components. This non-fatal event is fired with an SDKResult containing error details whenever an operation fails.

onSceneCoordSystemBasisChanged: EventEmitter<Scene, CoordinateSystem>

Emits an event when the CoordinateSystem.basis of the Scene is updated.

onSceneCoordSystemOriginChanged: EventEmitter<Scene, CoordinateSystem>

Emits an event when the CoordinateSystem.origin of the Scene is updated.

onSceneCoordSystemScaleToMetersChanged: EventEmitter<Scene, CoordinateSystem>

Emits an event when the CoordinateSystem.scaleToMeters of the Scene is updated.

onSceneCoordSystemUnitsChanged: EventEmitter<Scene, CoordinateSystem>

Emits an event when the CoordinateSystem.units of the Scene is updated.

onSceneCoordSystemUpdated: EventEmitter<Scene, CoordinateSystem>

Emits an event after one or more coordinate system properties of the Scene have been updated, indicating that the CoordinateSystem is ready for use.

onSceneDestroyed: EventEmitter<Scene, Scene>

Emits an event when the Scene is destroyed.

onSceneGeometryCreated: EventEmitter<Scene, SceneGeometry>

Emits an event each time a SceneGeometry is created within the Scene.

onSceneGeometryDestroyed: EventEmitter<Scene, SceneGeometry>

Emits an event each time a SceneGeometry is destroyed within the Scene.

onSceneGeometryUpdated: EventEmitter<Scene, SceneGeometry>

Emits an event each time a SceneGeometry is updated within the Scene, such as changes to positions, indices, or primitive types.

onSceneMeshColorChanged: EventEmitter<Scene, SceneMesh>

Emits an event each time the color of a SceneMesh is updated within the Scene.

onSceneMeshCreated: EventEmitter<Scene, SceneMesh>

Emits an event each time a SceneMesh is created within the Scene.

onSceneMeshDestroyed: EventEmitter<Scene, SceneMesh>

Emits an event each time a SceneMesh is destroyed within the Scene.

onSceneMeshGeometryChanged: EventEmitter<Scene, SceneMesh>

Emits an event each time a SceneMesh switches to a different SceneGeometry within the Scene.

onSceneMeshMatrixChanged: EventEmitter<Scene, SceneMesh>

Emits an event each time the transformation matrix of a SceneMesh is updated within the Scene.

onSceneMeshMoved: EventEmitter<Scene, SceneMesh>

Emits an event each time a SceneMesh is moved within the Scene.

onSceneMeshOpacityChanged: EventEmitter<Scene, SceneMesh>

Emits an event each time the opacity of a SceneMesh is updated within the Scene.

onSceneModelCoordSystemBasisChanged: EventEmitter<SceneModel, CoordinateSystem>

Emits an event when the CoordinateSystem.basis of a SceneModel is updated.

onSceneModelCoordSystemOriginChanged: EventEmitter<SceneModel, CoordinateSystem>

Emits an event when the CoordinateSystem.origin of a SceneModel is updated.

onSceneModelCoordSystemScaleToMetersChanged: EventEmitter<
    SceneModel,
    CoordinateSystem,
>

Emits an event when the CoordinateSystem.scaleToMeters of a SceneModel is updated.

onSceneModelCoordSystemUnitsChanged: EventEmitter<SceneModel, CoordinateSystem>

Emits an event when the CoordinateSystem.units of a SceneModel is updated.

onSceneModelCoordSystemUpdated: EventEmitter<SceneModel, CoordinateSystem>

Emits an event after one or more coordinate system properties of a SceneModel have been updated, indicating that the CoordinateSystem is ready for use.

onSceneModelCreated: EventEmitter<Scene, SceneModel>

Emits an event each time a SceneModel is created within the Scene.

onSceneModelDestroyed: EventEmitter<Scene, SceneModel>

Emits an event each time a SceneModel is destroyed within the Scene.

onSceneObjectCreated: EventEmitter<Scene, SceneObject>

Emits an event each time a SceneObject is created within the Scene.

onSceneObjectDestroyed: EventEmitter<Scene, SceneObject>

Emits an event each time a SceneObject is destroyed within the Scene.

onSceneObjectMeshAdded: EventEmitter<SceneObject, SceneMesh>

Emits an event each time a SceneMesh is added to a SceneObject.

onSceneObjectMeshRemoved: EventEmitter<SceneObject, SceneMesh>

Emits an event each time a SceneMesh is removed from a SceneObject.

onSceneTextureCreated: EventEmitter<Scene, SceneTexture>

Emits an event each time a SceneTexture is created within the Scene.

onSceneTextureDestroyed: EventEmitter<Scene, SceneTexture>

Emits an event each time a SceneTexture is destroyed within the Scene.

onSceneTextureSetCreated: EventEmitter<Scene, SceneTextureSet>

Emits an event each time a SceneTextureSet is created within the Scene.

onSceneTextureSetDestroyed: EventEmitter<Scene, SceneTextureSet>

Emits an event each time a SceneTextureSet is destroyed within the Scene.

onSceneTransformCreated: EventEmitter<Scene, SceneTransform>

Emits an event each time a SceneTransform is created within the Scene.

onSceneTransformDestroyed: EventEmitter<Scene, SceneTransform>

Emits an event each time a SceneTransform is destroyed within the Scene.

onSceneTransformMatrixChanged: EventEmitter<Scene, SceneTransform>

Emits an event each time the transformation matrix of a SceneTransform is updated within the Scene.