Newer
Older
HuangJiPC / public / static / three / examples / jsm / misc / Volume.d.ts
@zhangdeliang zhangdeliang on 21 Jun 852 bytes update
import {
	Matrix3,
} from '../../../src/Three';

import { VolumeSlice } from './VolumeSlice.js';

export class Volume {

	constructor( xLength?: number, yLength?: number, zLength?: number, type?:string, arrayBuffer?: ArrayLike<number> );

	xLength: number;
	yLength: number;
	zLength: number;

	data: ArrayLike<number>;

	spacing: number[];
	offset: number[];

	matrix: Matrix3;

	lowerThreshold: number;
	upperThreshold: number;

	sliceList: VolumeSlice[];

	getData( i: number, j: number, k: number ): number;
	access( i: number, j: number, k: number ): number;
	reverseAccess( index: number ): number[];

	map( functionToMap: Function, context: this ): this;

	extractPerpendicularPlane ( axis: string, RASIndex: number ): object;
	extractSlice( axis: string, index: number ): VolumeSlice;

	repaintAllSlices(): this;
	computeMinMax(): number[];

}