Skip to content

@simversus/yjvisDocs


@simversus/yjvis / DataArray

Class: DataArray

Internal

基础对象

Extends

Extended by

Constructors

new DataArray()

new DataArray(prop?): DataArray

Parameters

prop?: Partial<object>

Returns

DataArray

Overrides

BaseObject.constructor

Defined in

data/dataArray.ts:50

Properties

_viewFun

protected _viewFun: TypedArrayConstructor

Defined in

data/dataArray.ts:21


classHierarchy

classHierarchy: ClassEnum[]

Deprecated

Inherited from

BaseObject.classHierarchy

Defined in

core/baseObject.ts:96


label

label: string

自定义标识

Inherited from

BaseObject.label

Defined in

core/baseObject.ts:104


name

name: string = ''

Defined in

data/dataArray.ts:15


ranges

ranges: [number, number][] = []

Defined in

data/dataArray.ts:17


userData

userData: any

用户自定义数据

Inherited from

BaseObject.userData

Defined in

core/baseObject.ts:100


uuid

uuid: number

唯一标识符

Inherited from

BaseObject.uuid

Defined in

core/baseObject.ts:92

Accessors

data

get data(): TypedArray

set data(data): void

Parameters

data: TypedArray | number[]

Returns

TypedArray

Defined in

data/dataArray.ts:31


mtime

get mtime(): number

Returns

number

Inherited from

BaseObject.mtime

Defined in

core/baseObject.ts:118


numberOfComponents

get numberOfComponents(): number

set numberOfComponents(value): void

Parameters

value: number

Returns

number

Defined in

data/dataArray.ts:35


numberOfTuples

get numberOfTuples(): number

元素个数

Returns

number

Defined in

data/dataArray.ts:46

Methods

applyMatrix4()

applyMatrix4(matrix4): void

对数据应用矩阵

Parameters

matrix4: Mat4

Returns

void

Defined in

data/dataArray.ts:112


applyNormalMatrix()

applyNormalMatrix(matrix3): void

对数据应用法线矩阵

Parameters

matrix3: Mat3

Returns

void

Defined in

data/dataArray.ts:132


changed()

changed(): void

标记对象为已修改

Returns

void

Inherited from

BaseObject.changed

Defined in

core/baseObject.ts:128


getMagnitudeAt()

getMagnitudeAt(id): number

获取指定位置的分量和

Parameters

id: number

Returns

number

Defined in

data/dataArray.ts:172


getRange()

getRange(componentId?): Number2

获取数据范围

Parameters

componentId?: number

数据的分量数,默认为0,小于0代表总和

Returns

Number2

Defined in

data/dataArray.ts:72


getValueAt()

getValueAt(id): Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array

获取指定位置的值

Parameters

id: number

Returns

Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array

Defined in

data/dataArray.ts:154


is()

is(t): boolean

Parameters

t: ClassEnum

Returns

boolean

Inherited from

BaseObject.is

Defined in

core/baseObject.ts:122


release()

release(): void

销毁该对象

Returns

void

Inherited from

BaseObject.release

Defined in

core/baseObject.ts:134


setValueAt()

setValueAt(id, values): void

设置指定位置的值

Parameters

id: number

values: number[]

Returns

void

Defined in

data/dataArray.ts:162