A cell space is an OGC standard from the IndoorGML schema that identifies a space

Hierarchy

Constructors

Properties

boundaries: CellBoundary[] = []
centroid: AbsolutePosition
connectedSpaces: Map<Vector3, string> = ...
coordinates: Vector3[] = []
createdTimestamp: number

Created timestamp

displayName: string

Object display name

parentUID: string
positionConstructor: (new () => Absolute3DPosition | Absolute2DPosition)

Type declaration

    • new (): Absolute3DPosition | Absolute2DPosition
    • Returns Absolute3DPosition | Absolute2DPosition

priority: number = 0
slant?: Slant
uid: string

Object identifier

Returns

Unique object identifier

Accessors

  • get boundaryType(): (new () => T)
  • Get the boundary type

    Returns

    Absolute position constructor

    Returns (new () => T)

      • new (): T
      • Returns T

  • get position(): AbsolutePosition
  • Get the current absolute position of the object relative to the global reference space

    Returns

    Absolute position of data object

    Returns AbsolutePosition

  • set position(position: AbsolutePosition): void
  • Set the current absolute position of the object relative to the global reference space

    Parameters

    • position: AbsolutePosition

    Returns void

  • get relativePositions(): RelativePosition<any, Unit>[]
  • Get relative positions

    Returns

    Array of relative positions

    Returns RelativePosition<any, Unit>[]

  • set relativePositions(relativePostions: RelativePosition<any, Unit>[]): void
  • Parameters

    • relativePostions: RelativePosition<any, Unit>[]

    Returns void

  • get rotationQuaternion(): Quaternion
  • Returns Quaternion

  • set rotationQuaternion(quaternion: Quaternion): void
  • Parameters

    • quaternion: Quaternion

    Returns void

  • get scaleMatrix(): Matrix4
  • Get the transformation matrix for scaling

    Returns

    Transformation matrix

    Returns Matrix4

  • set scaleMatrix(matrix: Matrix4): void
  • Parameters

    • matrix: Matrix4

    Returns void

  • get transformationMatrix(): Matrix4
  • Returns Matrix4

  • set transformationMatrix(matrix: Matrix4): void
  • Parameters

    • matrix: Matrix4

    Returns void

Methods

  • Add a relative position to this data object

    Returns

    Data object instance

    Parameters

    • relativePosition: RelativePosition<any, Unit>

      Relative position to add

    Returns CellSpace

  • Bind the data object to a service

    Returns

    Data object binding with a service

    Parameters

    • service: DataService<string, CellSpace>

      Service to bind it to

    Returns DataObjectBinding<CellSpace>

  • Clone the data object

    Returns

    Cloned data object

    Returns CellSpace

  • Get the boundaries of the space

    Returns

    Array of boundary position

    Returns (Absolute3DPosition | Absolute2DPosition)[]

  • Get the current absolute position of the object

    Returns

    Position of the data object

    Parameters

    • Optional referenceSpace: TransformationSpace

      Reference space to transform it to

    Returns AbsolutePosition

  • Get relative position of a specified object

    Returns

    Relative position to reference object

    Parameters

    • referenceObjectUID: string

      Reference object identifier

    • Optional type: string

      Constructor type of the relative position

    Returns RelativePosition<any, Unit>

  • Get relative positions for a different target

    Returns

    Array of relative positions for the reference object

    Parameters

    • Optional referenceObjectUID: string

      Reference object identifier

    Returns RelativePosition<any, Unit>[]

  • Parameters

    • referenceObjectUID: string

    Returns boolean

  • Check if a position lies within a symbolic location

    Returns

    Point inside boundaries

    Parameters

    • position: AbsolutePosition

      Absolute position to check

    Returns boolean

  • Parameters

    • left: number
    • right: number
    • bottom: number
    • top: number
    • near: number
    • far: number

    Returns ReferenceSpace

  • Transform perspective

    Returns

    Reference space instance

    Parameters

    • left: number

      Farthest left on the x-axis

    • right: number

      Farthest right on the x-axis

    • bottom: number

      Farthest down on the y-axis

    • top: number

      Farthest up on the y-axis

    • near: number

      Distance to the near clipping plane along the -Z axis

    • far: number

      Distance to the far clipping plane along the -Z axis

    Returns ReferenceSpace

  • Parameters

    • unit: LengthUnit

    Returns ReferenceSpace

  • Parameters

    • referenceObjectUID: string

    Returns void

  • Returns ReferenceSpace

  • Parameters

    • r: Quaternion

    Returns ReferenceSpace

  • Parameters

    • r: Euler

    Returns ReferenceSpace

  • Parameters

    • r: AxisAngle

    Returns ReferenceSpace

  • Parameters

    • r: { pitch: number; roll: number; unit?: AngleUnit; yaw: number }
      • pitch: number
      • roll: number
      • Optional unit?: AngleUnit
      • yaw: number

    Returns ReferenceSpace

  • Parameters

    • r: { order?: EulerOrder; unit?: AngleUnit; x: number; y: number; z: number }
      • Optional order?: EulerOrder
      • Optional unit?: AngleUnit
      • x: number
      • y: number
      • z: number

    Returns ReferenceSpace

  • Parameters

    • r: number[]

    Returns ReferenceSpace

  • Parameters

    • kX: number
    • kY: number
    • Optional kZ: number

    Returns ReferenceSpace

  • Set a parent object to the data object

    Returns

    instance

    Parameters

    • object: string | DataObject

      Data object or UID to add as parent

    Returns CellSpace

  • Set the current absolute position of the object

    Returns

    Data object instance

    Parameters

    • position: AbsolutePosition

      Position to set

    • Optional referenceSpace: TransformationSpace

      Reference space

    Returns CellSpace

  • Set the unique identifier of this object

    Returns

    Data object instance

    Parameters

    • uid: string

      Unique Identifier

    Returns CellSpace

  • Transform a position

    Returns

    Transformed position

    Type Parameters

    • In extends AbsolutePosition<In>

    • Out extends AbsolutePosition<Out> = In

    Parameters

    • position: In

      Position to transform

    • Optional options: SpaceTransformationOptions

      Transformation options

    Returns Out

  • Parameters

    • dX: number
    • dY: number
    • Optional dZ: number

    Returns ReferenceSpace

  • Update parent reference spaces

    Returns

    Update promise

    Parameters

    • service: DataService<string, CellSpace>

      Service to use for updating

    Returns Promise<void>