Viewer Events.

Properties

cancel: CancelEvent

Event that fires when model loading has been canceled.

changeactivedragger: ChangeActiveDraggerEvent

Event that fires when the active dragger has been changed.

changemarkupcolor: ChangeMarkupColorEvent

Event that fires when the markup color has been changed.

clear: ClearEvent

Event that fires when the viewer has been cleared.

command: CommandEvent

Event that fires after viewer executes the command.

createviewpoint: ViewpointEvent

Event that fires after viewer creates a viewpoint.

databasechunk: DatabaseChunkEvent

Event that fires when the file scene description has been loaded.

dispose: DisposeEvent

Event that fires before viewer resources has been released.

drawviewpoint: ViewpointEvent

Event that fires after viewer loads a viewpoint.

explode: ExplodeEvent

Event that fires when model breaks into its component objects or collect objects back.

geometrychunk: GeometryChunkEvent

Event that fires when the file geometry data chunk has been loaded.

geometryend: GeometryEndEvent

Event that fires after model has been successfully loaded.

geometryerror: GeometryErrorEvent

Event that fires when the file fails to open.

geometryprogress: GeometryProgressEvent

Event that measures the progress of the model loading.

geometrystart: GeometryStartEvent

Event that fires before the model opens.

hide: HideEvent

Event that fires after selected objects becomes invisible.

initialize: InitializeEvent

Event that fires after the viewer initialized.

initializeprogress: InitializeProgressEvent

Event that measures the progress of the viewer's initialization.

isolate: IsolateEvent

Event that fires after selected objects becomes isolated.

open: OpenEvent

Event that fires before model opens.

Event that fires when camera panning.

render: RenderEvent

Event that fires when an rendering occurs.

resize: ResizeEvent

Event that fires when resize occurs.

select: SelectEvent

Event that fires when the selection changes.

showall: ShowAllEvent

Event that fires after all objects becomes visible.

update: UpdateEvent

Event that fires when an update occurs.

visualizeprogress: VisualizeProgressEvent

Deprecated since 25.4. Use initializeprogress instead.

walkspeedchange: WalkSpeedChangeEvent

Event that fires when walk speed changing.

walkstart: WalkStartEvent

Event that fires when walk started.

zoom: ZoomEvent

Event that fires when zooming to extents or selected objects.

zoomat: ZoomAtEvent

Event that fires when zooming of the camera using mouse wheel.

zoomtoentity: ZoomToEntityEvent

Event that fires when zooming to object.