BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class SensorManager

    Manages all sensor channels.

    Index

    Constructors

    Accessors

    • get renderer(): BaseRenderer

      Gets the renderer associated with the sensor manager.

      Returns BaseRenderer

    • get channels(): SensorChannel[]

      Gets the channels managed by the sensor manager.

      Returns SensorChannel[]

    Methods

    • Finds a channel by its name.

      Parameters

      • channelName: string

      Returns SensorChannel

    • Finds a group by its name within a specified channel.

      Parameters

      • channelName: string
      • groupName: string

      Returns SensorGroup

    • Finds a sensor by its name within a specified group and channel.

      Parameters

      • channelName: string
      • groupName: string
      • sensorName: string

      Returns Sensor

    • Sets the state of the sensor manager.

      Parameters

      • state: SensorsState

      Returns Promise<void>

    • Gets the state of the sensor manager.

      Returns SensorsState

    • Sets the active channel.

      Parameters

      Returns Promise<void>

    • Adds a new channel to the sensor manager.

      Parameters

      • name: string
      • low: number = 0
      • high: number = 50
      • factor: number = 1.5

      Returns Promise<SensorChannel>

    • Gets a channel by its name.

      Parameters

      • name: string

      Returns SensorChannel

    • Cleans up the sensor manager by removing all channels.

      Returns Promise<void>