BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class SensorGroup

    Represents a group of sensors.

    Index

    Constructors

    Accessors

    • get id(): Int64

      Gets the ID of the sensor group.

      Returns Int64

    • get elements(): ElementInfo[]

      Gets the elements of the sensor group.

      Returns ElementInfo[]

    • get sensors(): Sensor[]

      Gets the sensors of the sensor group.

      Returns Sensor[]

    • get name(): string

      Gets the name of the sensor group.

      Returns string

    • set name(name: string): void

      Sets the name of the sensor group.

      Parameters

      • name: string

      Returns void

    Methods

    • Finds a sensor by its name.

      Parameters

      • sensorName: string

      Returns Sensor

    • Gets the state of the sensor group.

      Returns SensorGroupState

    • Adds a sensor to the group.

      Parameters

      • name: string
      • point: Vector3D
      • value: number

      Returns Promise<Sensor>

    • Adds an element to the group by its internal ID.

      Parameters

      Returns Promise<boolean>

    • Adds an element to the group by its element ID.

      Parameters

      Returns Promise<boolean>

    • Removes an element from the group.

      Parameters

      Returns Promise<boolean>

    • Removes the sensor group.

      Parameters

      • removeFromGroupsArray: boolean = true

      Returns Promise<boolean>

    • Cleans up the sensor group by removing sensors and/or elements.

      Parameters

      • sensors: boolean = true
      • elements: boolean = true

      Returns Promise<void>