True if this ViewObject has been destroyed.
ReadonlyidUnique ID of this ViewObject within ViewLayer.objects.
ReadonlylayerThe ViewLayer to which this ViewObject belongs.
ReadonlyoriginalID of this ViewObject within the originating system.
ReadonlysceneThe corresponding SceneObject.
ReadonlyviewThe View to which this ViewObject belongs.
The ViewTransform that defines the local transform of this ViewObject, if any.
Gets if this ViewObject is clippable.
Sets if this ViewObject is clippable.
Gets if this ViewObject is included in boundary calculations.
Sets if this ViewObject included in boundary calculations.
Gets the RGB colorize color for this ViewObject, if set.
[0..1].Sets the RGB colorize color for this ViewObject.
[0..1].null or undefined to reset the colorize color to its default value of [1,1,1].Gets if this ViewObject is culled.
true and ViewObject.culled is false.Sets if this ViewObject is culled.
true and ViewObject.culled is false.Gets if this ViewObject is highlighted.
true the ViewObject will be registered by ViewObject.id in ViewLayer.highlightedObjects.Sets if this ViewObject is highlighted.
true the ViewObject will be registered by ViewObject.id in ViewLayer.highlightedObjects.Gets the opacity factor for this ViewObject.
[0..1] which multiplies by the rendered fragment alphas.Sets the opacity factor for this ViewObject.
[0..1] which multiplies by the rendered fragment alphas.null or undefined to reset the opacity to its default value of 1.true when the ViewObject's opacity is currently overriding
the underlying SceneMesh material's alpha — i.e. the caller
has set opacity to a value (any number, including 1).
Cleared when the caller passes null / undefined to the
setter, returning the renderer to the material's native alpha.
The renderer's mesh-batch state-update bridge reads this flag to distinguish "user wants opacity = 1" (override on, alpha forced to 1.0, naturally-transparent meshes routed through the opaque bin) from "user has cleared the opacity override" (read material alpha — typically how a 4D scheduler returns finished objects to their native appearance).
Gets if this ViewObject is pickable.
Sets if this ViewObject is pickable.
Gets if this ViewObject is selected.
true the ViewObject will be registered by ViewObject.id in ViewLayer.selectedObjects.Sets if this ViewObject is selected.
true the ViewObject will be registered by ViewObject.id in ViewLayer.selectedObjects.Gets if this ViewObject is visible.
true the ViewObject will be registered by ViewObject.id in ViewLayer.visibleObjects.true and ViewObject.culled is false.Sets if this ViewObject is visible.
true the ViewObject will be registered by ViewObject.id in ViewLayer.visibleObjects.true and ViewObject.culled is false.Gets if this ViewObject is X-rayed.
true the ViewObject will be registered by ViewObject.id in ViewLayer.xrayedObjects.Sets if this ViewObject is X-rayed.
true the ViewObject will be registered by ViewObject.id in ViewLayer.xrayedObjects.
An object within a View.
Overview
Every View automatically maintains within itself a ViewObject for each SceneObject that exists in the Viewer.
Whenever we create a SceneObject, each View will automatically create a corresponding ViewObject within itself. When we destroy a SceneObject, each View will automatically destroy its corresponding ViewObject. The ViewObjects in a View are therefore a manifest of the ViewerObjects in the View.
See @xeokit/sdk/viewing/viewer for usage.