BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class SensorChannel

    Represents a channel of sensors.

    Index

    Constructors

    • Parameters

      • sensorManager: SensorManager
      • _id: Int64
      • _name: string
      • _low: number
      • _high: number
      • _factor: number

      Returns SensorChannel

    Accessors

    • get activated(): boolean

      Gets whether the channel is activated.

      Returns boolean

    • get mode(): BIM_SENSOR_VISUALIZATION_OPTIONS

      Gets the mode of the sensor channel.

      Returns BIM_SENSOR_VISUALIZATION_OPTIONS

    • set mode(mode: BIM_SENSOR_VISUALIZATION_OPTIONS): void

      Sets the mode of the sensor channel.

      Parameters

      • mode: BIM_SENSOR_VISUALIZATION_OPTIONS

      Returns void

    • get groups(): SensorGroup[]

      Gets the groups of the sensor channel.

      Returns SensorGroup[]

    • get id(): Int64

      Gets the ID of the sensor channel.

      Returns Int64

    • get name(): string

      Gets the name of the sensor channel.

      Returns string

    • set name(name: string): void

      Sets the name of the sensor channel.

      Parameters

      • name: string

      Returns void

    • get low(): number

      Gets the low value of the sensor channel.

      Returns number

    • get high(): number

      Gets the high value of the sensor channel.

      Returns number

    • get factor(): number

      Gets the factor of the sensor channel.

      Returns number

    Methods

    • Finds a group by its name.

      Parameters

      • groupName: string

      Returns SensorGroup

    • Gets the state of the sensor channel.

      Returns SensorChannelState

    • Activates the sensor channel.

      Parameters

      • Optionalmode: BIM_SENSOR_VISUALIZATION_OPTIONS

      Returns Promise<void>

    • Updates the sensor channel with new low, high, and/or factor values.

      Parameters

      • Optionallow: number
      • Optionalhigh: number
      • Optionalfactor: number

      Returns Promise<boolean>

    • Adds a group to the sensor channel.

      Parameters

      • name: string

      Returns Promise<SensorGroup>

    • Removes the sensor channel.

      Parameters

      • removeFromChannelsArray: boolean = true

      Returns Promise<boolean>

    • Cleans up the sensor channel by removing all groups.

      Returns Promise<void>