Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DataObject
    • VSLAMMap

Index

Constructors

  • new VSLAMMap(uid?: string, displayName?: string): VSLAMMap
  • Create a new data object

    Parameters

    • Optional uid: string

      Optional unique identifier

    • Optional displayName: string

      Optional display name

    Returns VSLAMMap

Properties

createdTimestamp: number

Created timestamp

displayName: string

Object display name

keyFrames: Set<VSLAMKeyFrame>
landmarks: Set<VSLAMLandmark>
parentUID: string
uid: string

Object identifier

returns

Unique object identifier

Accessors

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

    Returns AbsolutePosition

    Absolute position of data object

  • Set the current absolute position of the object relative to the global reference space

    Parameters

    • position: AbsolutePosition

    Returns void

    Absolute position of data object

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

    Returns RelativePosition<any, Unit>[]

    Array of relative positions

  • Get relative positions

    Parameters

    • relativePostions: RelativePosition<any, Unit>[]

    Returns void

    Array of relative positions

Methods

  • addRelativePosition(relativePosition: RelativePosition<any, Unit>): VSLAMMap
  • Add a relative position to this data object

    Parameters

    • relativePosition: RelativePosition<any, Unit>

      Relative position to add

    Returns VSLAMMap

    Data object instance

  • Bind the data object to a service

    Parameters

    • service: DataService<string, VSLAMMap>

      Service to bind it to

    Returns DataObjectBinding<VSLAMMap>

    Data object binding with a service

  • Clone the data object

    Returns VSLAMMap

    Cloned data object

  • getPosition(referenceSpace?: TransformationSpace): AbsolutePosition
  • Get the current absolute position of the object

    Parameters

    • Optional referenceSpace: TransformationSpace

    Returns AbsolutePosition

    Position of the data object

  • getRelativePosition(referenceObjectUID: string, type?: string): RelativePosition<any, Unit>
  • Get relative position of a specified object

    Parameters

    • referenceObjectUID: string

      Reference object identifier

    • Optional type: string

      Constructor type of the relative position

    Returns RelativePosition<any, Unit>

    Relative position to reference object

  • getRelativePositions(referenceObjectUID?: string): RelativePosition<any, Unit>[]
  • Get relative positions for a different target

    Parameters

    • Optional referenceObjectUID: string

    Returns RelativePosition<any, Unit>[]

    Array of relative positions for the reference object

  • hasRelativePosition(referenceObjectUID: string): boolean
  • Parameters

    • referenceObjectUID: string

    Returns boolean

  • removeRelativePositions(referenceObjectUID: string): void
  • Parameters

    • referenceObjectUID: string

    Returns void

  • setParent(object: string | DataObject): VSLAMMap
  • Set a parent object to the data object

    Parameters

    • object: string | DataObject

      Data object or UID to add as parent

    Returns VSLAMMap

    instance

  • setPosition(position: AbsolutePosition, referenceSpace?: TransformationSpace): VSLAMMap
  • Set the current absolute position of the object

    Parameters

    • position: AbsolutePosition

      Position to set

    • Optional referenceSpace: TransformationSpace

    Returns VSLAMMap

    Data object instance

  • Set the unique identifier of this object

    Parameters

    • uid: string

      Unique Identifier

    Returns VSLAMMap

    Data object instance

  • Parameters

    • json: any

    Returns VSLAMLandmark