import AnisotropicRawData from './AnisotropicRawData'; import { MultiRange } from 'multi-integer-range'; import { ViewWindow } from './ViewWindow'; export default class DicomVolume extends AnisotropicRawData { /** * Estimated window, calculated from the actual voxel data */ estimatedWindow?: ViewWindow; /** * Default window, described in DICOM file */ dicomWindow?: ViewWindow; /** * Holds which images are already loaded in this volume. * When complete, this.loadedSlices.length() will be the same as this.size[2]. */ protected loadedSlices: MultiRange; /** * Holds misc DICOM header data. */ protected header: { [key: string]: any; }; appendHeader(header: { [key: string]: any; }): void; getHeader(key: string): any; /** * Append z to loadedSlices:MultiRange. * @param z z-coordinate * @deprecated use series accessor */ markSliceAsLoaded(z: number): void; /** * Appends and overwrites one slice. * Note that the input data must be in the machine's native byte order * (i.e., little endian in x64 CPUs). * @param z Z coordinate of the image inserted. * @param imageData The inserted image data using the machine's native byte order. * @deprecated use series accessor */ insertSingleImage(z: number, imageData: ArrayBuffer): void; }