Readonly
coordinateConfigures the Scene's coordinate system.
True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyUnique ID of this Component.
Readonly
modelsThe SceneModels belonging to this Scene, each keyed to its SceneModel.id.
Readonly
objectsThe SceneObjects in this Scene, mapped to SceneObject.id.
Readonly
tilesThe SceneTiles in this Scene.
Gets the collective World-space 3D axis-aligned boundary of all the SceneModels in this Scene.
The boundary will be of the form [xMin, yMin, zMin, xMax, yMax, zMax]
.
Gets the collective World-space 3D center of all the SceneModels in this Scene.
Protected
cleanForces this component to action any deferred state updates.
Protected
cleanGives this component an opportunity to action any defered state updates.
Destroys all contained SceneModels.
See @xeokit/sdk/scene for usage.
void
Creates a new SceneModel in this Scene.
Remember to call SceneModel.build when you've finished building or loading the SceneModel. That will fire events via Scene.onModelCreated and SceneModel.onBuilt, to indicate to any subscribers that the SceneModel is built and ready for use.
See @xeokit/sdk/scene for more details on usage.
Creation parameters for the new SceneModel.
Destroys this Scene and all contained SceneModels.
See @xeokit/sdk/scene for usage.
void
Protected
errorProtected
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
Protected
logProtected
Logs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Protected
setFlags this component as having a defered state updates it needs to perform.
Protected
warnProtected
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Emits an event when the Component has been destroyed.
Readonly
onEmits an event each time a SceneModel is created in this Scene.
Readonly
onEmits an event each time a SceneModel is destroyed in this Scene.
Readonly
onEmits an event each time a SceneTile is created in this Scene.
Readonly
onEmits an event each time a SceneTile is destroyed in this Scene.
Container of model geometry and materials.
A Scene contains SceneModels, SceneObjects, SceneMeshes, SceneGeometries, SceneTextureSets and SceneTextures.
See @xeokit/sdk/scene for usage.