State – Abstract/base class for representing a UI or application state in an interactive application (such as a Cesium/3D tool).
Encapsulates state name and relationships to other states (mutual exclusivity, restore, and dependencies)
and provides a standardized interface for managing state logic.
Designed to be subclassed for concrete state implementations (e.g., measurement, edit, or navigation modes).
Param: name
The unique name or identifier of the state (e.g., "default", "polygon", "dimension").
Param: exclusiveStates
Names of states that cannot coexist with this one (mutually exclusive).
Param: restoreStates
Names of states to restore/activate when this state ends.
Param: dependentStates
Names of other states this state relies on.
Method
remove() - Removes/deactivates the state (intended to be overridden or extended by subclasses).
State – Abstract/base class for representing a UI or application state in an interactive application (such as a Cesium/3D tool).
Encapsulates state name and relationships to other states (mutual exclusivity, restore, and dependencies) and provides a standardized interface for managing state logic. Designed to be subclassed for concrete state implementations (e.g., measurement, edit, or navigation modes).
Param: name
The unique name or identifier of the state (e.g., "default", "polygon", "dimension").
Param: exclusiveStates
Names of states that cannot coexist with this one (mutually exclusive).
Param: restoreStates
Names of states to restore/activate when this state ends.
Param: dependentStates
Names of other states this state relies on.
Method
remove() - Removes/deactivates the state (intended to be overridden or extended by subclasses).
Example