BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class Sensor

    Represents a sensor in the system.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get id(): Int64

      Gets the ID of the sensor.

      Returns Int64

    • get value(): number

      Gets the value of the sensor.

      Returns number

    • get point(): Vector3D

      Gets the point of the sensor.

      Returns Vector3D

    • get name(): string

      Gets the name of the sensor.

      Returns string

    • set name(name: string): void

      Sets the name of the sensor.

      Parameters

      • name: string

      Returns void

    Methods

    • Gets the state of the sensor.

      Returns SensorState

    • Updates the sensor with new point and/or value.

      Parameters

      • Optionalpoint: Vector3D
      • Optionalvalue: number

      Returns Promise<void>

    • Removes the sensor.

      Parameters

      • removeFromSensorsArray: boolean = true

      Returns Promise<boolean>