Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InstanceData

Hierarchy

  • AbstractTreeNodeData
    • InstanceData

Implements

Index

Constructors

  • new InstanceData(instanceMatrices?: mat4[], instanceColors?: Color[], id?: string, version?: string): InstanceData
  • Creates a instanceMatrices data node.

    Parameters

    • Optional instanceMatrices: mat4[]
    • Optional instanceColors: Color[]
    • Optional id: string

      the id

    • Optional version: string

    Returns InstanceData

Accessors

  • get convertedObject(): {}
  • set convertedObject(value: {}): void
  • The converted object of the tree node.

    Returns {}

    • [key: string]: unknown
  • The converted object of the tree node.

    Parameters

    • value: {}
      • [key: string]: unknown

    Returns void

  • get id(): string
  • The ID of the tree node data.

    Returns string

  • get instanceColors(): Color[]
  • set instanceColors(value: Color[]): void
  • get instanceMatrices(): mat4[]
  • set instanceMatrices(value: mat4[]): void
  • get updateCallback(): null | ((newVersion: string, oldVersion: string) => void)
  • set updateCallback(value: null | ((newVersion: string, oldVersion: string) => void)): void
  • The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    Returns null | ((newVersion: string, oldVersion: string) => void)

  • The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    Parameters

    • value: null | ((newVersion: string, oldVersion: string) => void)

    Returns void

  • get updateCallbackConvertedObject(): null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
  • set updateCallbackConvertedObject(value: null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)): void
  • The update callback for the converted object of the tree node.

    Returns null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)

  • The update callback for the converted object of the tree node.

    Parameters

    • value: null | ((newObj: unknown, oldObj: unknown, viewport: string) => void)

    Returns void

  • get version(): string
  • The version of the tree node data. If the version changes, the node data will be marked for an update. A version change can be triggered via updateVersion.

    Returns string

Methods

  • updateVersion(): void