Events emitted by a Viewer.

Properties

log: EventEmitter<Viewer, string>

Emits an event each time a message is logged by the Viewer.

onCameraFrustumUpdated: EventEmitter<Camera, Frustum3>

Emits an event each time Camera.frustum updates on a Camera.

onCameraProjectionTypeChanged: EventEmitter<View, Camera>

Emits an event each time Camera.projectionType updates within a View.

onCameraProjMatrixUpdated: EventEmitter<View, Camera>

Emits an event each time Camera.projMatrix updates within a View.

onCameraViewMatrixUpdated: EventEmitter<View, Camera>

Emits an event each time Camera.viewMatrix updates within a View.

onError: EventEmitter<Viewer, SDKResult<any>>

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

onSceneAttached: EventEmitter<Viewer, Scene>

Emits an event each time a Scene is attached to the Viewer.

onSceneDetached: EventEmitter<Viewer, Scene>

Emits an event each time a Scene is detached from the Viewer.

onSectionPlaneActive: EventEmitter<SectionPlane, boolean>

Emits an event each time SectionPlane.active changes on a SectionPlane.

onSectionPlaneCreated: EventEmitter<View, SectionPlane>

Emits an event each time a SectionPlane is created within a View.

onSectionPlaneDestroyed: EventEmitter<View, SectionPlane>

Emits an event each time a SectionPlane is destroyed within a View.

onSectionPlaneDirChanged: EventEmitter<SectionPlane, Vec3>

Emits an event each time SectionPlane.dir changes on a SectionPlane.

onSectionPlanePosChanged: EventEmitter<SectionPlane, Vec3>

Emits an event each time SectionPlane.pos changes on a SectionPlane.

Emits an event each time a snapshot is completed within a View via View.getSnapshot.

Emits an event each time a snapshot is initiated within a View via View.getSnapshot.

Emits an event each time the Viewer "ticks" (~10–60 times per second).

onViewCanvasBoundaryChanged: EventEmitter<View, IntArrayParam>

Emits an event each time the canvas boundary changes within a View.

onViewCreated: EventEmitter<Viewer, View>

Emits an event each time a View is created within the Viewer.

onViewDestroyed: EventEmitter<Viewer, View>

Emits an event each time a View is destroyed within the Viewer.

onViewerDestroyed: EventEmitter<Viewer, boolean>

Emits an event when the Viewer is destroyed.

onViewLayerCreated: EventEmitter<View, ViewLayer>

Emits an event each time a ViewLayer is created within a View.

Layers are created explicitly with View.createLayer, or implicitly with SceneModel.createObject and SceneObjectParams.layerId.

onViewLayerDestroyed: EventEmitter<View, ViewLayer>

Emits an event each time a ViewLayer is destroyed within a View.

ViewLayers are destroyed explicitly with ViewLayer.destroy, or implicitly when they become empty and View.autoLayers is false.

onViewObjectColorizeChanged: EventEmitter<View, ViewObject>

Emits an event each time the colorization of a ViewObject changes within a View.

ViewObjects are colorized with View.setObjectsColorized, ViewLayer.setObjectsColorized or ViewObject.colorize.

onViewObjectCreated: EventEmitter<View, ViewObject>

Emits an event each time a ViewObject is created within a View.

onViewObjectDestroyed: EventEmitter<View, ViewObject>

Emits an event each time a ViewObject is destroyed within a View.

onViewObjectHighlightedChanged: EventEmitter<View, ViewObject>

Emits an event each time the highlight state of a ViewObject changes within a View.

ViewObjects are highlighted with View.setObjectsHighlighted, ViewLayer.setObjectsHighlighted or ViewObject.highlighted.

onViewObjectOpacityChanged: EventEmitter<View, ViewObject>

Emits an event each time the opacity of a ViewObject changes within a View.

ViewObjects have their opacity changed with View.setObjectsOpacity, ViewLayer.setObjectsOpacity or ViewObject.opacity.

onViewObjectSelectedChanged: EventEmitter<View, ViewObject>

Emits an event each time the selected state of a ViewObject changes within a View.

ViewObjects are selected with View.setObjectsSelected, ViewLayer.setObjectsSelected or ViewObject.selected.

onViewObjectVisibleChanged: EventEmitter<View, ViewObject>

Emits an event each time the visibility of a ViewObject changes within a View.

ViewObjects are shown and hidden with View.setObjectsVisible, ViewLayer.setObjectsVisible or ViewObject.visible.

onViewObjectXRayedChanged: EventEmitter<View, ViewObject>

Emits an event each time the X-ray state of a ViewObject changes within a View.

ViewObjects are X-rayed with View.setObjectsXRayed, ViewLayer.setObjectsXRayed or ViewObject.xrayed.

onViewUpdated: EventEmitter<View, View>

Emits an event each time a View becomes dirty (within the Viewer), requiring a redraw.

processes: EventEmitter<Spinner, number>

Emits an event each time the number of active processes tracked by the Viewer's Spinner changes.

zeroProcesses: EventEmitter<Spinner, number>

Emits an event each time the number of active processes tracked by the Viewer's Spinner reaches zero.