Readonly
idUnique ID of this ViewObject within ViewLayer.objects.
Readonly
layerThe ViewLayer to which this ViewObject belongs.
Readonly
originalID of this ViewObject within the originating system.
Readonly
sceneThe corresponding scene!SceneObject.
Gets the World-space axis-aligned 3D boundary of this ViewObject.
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.
[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
.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/viewer for usage.