Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeData

Hierarchy

  • AbstractTreeNodeData
    • AttributeData

Implements

Index

Constructors

  • new AttributeData(array: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array, itemSize: number, itemBytes: number, byteOffset: number, elementBytes: number, normalized: boolean, count: number, min?: number[], max?: number[], byteStride?: number, target?: number, sparse?: boolean, sparseIndices?: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array, sparseValues?: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array, morphAttributeData?: IAttributeData[], id?: string, version?: string): AttributeData
  • Creates an attribute data object.

    Parameters

    • array: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
    • itemSize: number
    • itemBytes: number
    • byteOffset: number
    • elementBytes: number
    • normalized: boolean
    • count: number
    • Optional min: number[]
    • Optional max: number[]
    • Optional byteStride: number
    • Optional target: number
    • Optional sparse: boolean
    • Optional sparseIndices: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
    • Optional sparseValues: Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
    • Optional morphAttributeData: IAttributeData[]
    • Optional id: string
    • Optional version: string

    Returns AttributeData

Accessors

  • get array(): Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
  • Returns Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array

  • get byteOffset(): number
  • get byteStride(): undefined | number
  • 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 count(): number
  • get elementBytes(): number
  • get id(): string
  • The ID of the tree node data.

    Returns string

  • get itemBytes(): number
  • get itemSize(): number
  • get max(): number[]
  • get min(): number[]
  • get normalized(): boolean
  • get sparse(): undefined | boolean
  • get sparseIndices(): undefined | Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
  • Returns undefined | Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array

  • get sparseValues(): undefined | Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array
  • Returns undefined | Int8Array | Uint8Array | Int16Array | Uint16Array | Uint32Array | Float32Array

  • get target(): undefined | number
  • 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