Hierarchy

  • DataObject
    • Fingerprint

Constructors

Properties

classifier: string
createdTimestamp: number

Created timestamp

displayName: string

Object display name

features: Map<string, FingerprintFeature> = ...
parentUID: string
processed: boolean
uid: string

Object identifier

Returns

Unique object identifier

vector: number[]

Accessors

  • 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

  • set source(obj: DataObject): void
  • Set the fingerprint source. This can be used to identify the user or device that captured the data.

    Parameters

    • obj: DataObject

      Fingerprint source

    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 Fingerprint

  • Bind the data object to a service

    Returns

    Data object binding with a service

    Parameters

    • service: DataService<string, Fingerprint>

      Service to bind it to

    Returns DataObjectBinding<Fingerprint>

  • Clone the data object

    Returns

    Cloned data object

    Returns Fingerprint

  • Compute the relative position vector from the relative positions

    Parameters

    • aggFn: ((values: number[], key?: string) => number)

      Aggregation function

        • (values: number[], key?: string): number
        • Parameters

          • values: number[]
          • Optional key: string

          Returns number

    Returns void

  • 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>[]

  • Check if a fingerprint has a feature

    Returns

    Existance of feature

    Parameters

    • key: string

      Feature key

    Returns boolean

  • Parameters

    • referenceObjectUID: string

    Returns boolean

  • Parameters

    • referenceObjectUID: string

    Returns void

  • Set a parent object to the data object

    Returns

    instance

    Parameters

    • object: string | DataObject

      Data object or UID to add as parent

    Returns Fingerprint

  • Set the current absolute position of the object

    Returns

    Data object instance

    Parameters

    • position: AbsolutePosition

      Position to set

    • Optional referenceSpace: TransformationSpace

      Reference space

    Returns Fingerprint

  • Set the unique identifier of this object

    Returns

    Data object instance

    Parameters

    • uid: string

      Unique Identifier

    Returns Fingerprint