3D-City Model
    Preparing search index...

    HeightMeasurementState – Application UI state for interactive height measurements.

    Ensures only one instance active (singleton pattern). Integrates with Cesium/app infrastructure, manages input tool activation, measurement instance lifecycle, custom event handlers, and UI updates. Handles finalizing or canceling the active height measurement in response to user actions.

    UI button used to activate this measure state.

    const state = new HeightMeasurementState(myButton);
    state.apply(app); // Begin measuring height interactively.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    button: HTMLButtonElement

    The toggling/activation button for this measurement state.

    dependentStates: string[]

    Required/precondition states.

    exclusiveStates: string[]

    States that are deactivated when this state activates.

    name: string

    Name/identifier for the state.

    restoreStates: string[]

    States that should be restored when this state ends.

    Methods

    • Activates height measurement mode, initializes a HeightMeasurement, cleans up unfinished measurements, sets up state and event handlers, and opens info window.

      Parameters

      • app: any

        Application instance.

      Returns void