SceneManager

object SceneManager : AutoCloseable


Manager for all SpatialComposeScenes that are created when the SceneManager is running.

This is used by the testing framework to keep track of all scene compositions that were created for the purpose of finding the semantic roots.

Summary

Public functions

open Unit

Alias to SceneManager.stop To implement the AutoCloseable interface.

List<SubspaceSemanticsNode>

Returns all root subspace semantics nodes of all registered scenes.

Int
Unit

Start keeping track of the scenes that are created.

Unit

Stop tracking the created scenes and clear the set of scenes that SceneManager was keeping track of.

Public functions

close

Added in 1.0.0-alpha01
open fun close(): Unit

Alias to SceneManager.stop To implement the AutoCloseable interface.

getAllRootSubspaceSemanticsNodes

Added in 1.0.0-alpha01
fun getAllRootSubspaceSemanticsNodes(): List<SubspaceSemanticsNode>

Returns all root subspace semantics nodes of all registered scenes.

SceneManager.start should be called before attempting to get the root subspace semantics nodes. This will throw an IllegalStateException if the SceneManager is not in a running state.

getSceneCount

Added in 1.0.0-alpha01
fun getSceneCount(): Int

start

Added in 1.0.0-alpha01
fun start(): Unit

Start keeping track of the scenes that are created. Scenes created before SceneManager is running will not be tracked.

stop

Added in 1.0.0-alpha01
fun stop(): Unit

Stop tracking the created scenes and clear the set of scenes that SceneManager was keeping track of.