StreamingDynamicImageVolume
Hierarchy
- default
- StreamingDynamicImageVolume
Implements
- IDynamicImageVolume
Index
Constructors
Properties
Accessors
Methods
- callLoadImage
- cancelLoading
- clearLoadCallbacks
- convertToCornerstoneImage
- convertToImageSlicesAndCache
- decache
- destroy
- errorCallback
- getCornerstoneImage
- getCornerstoneImageLoadObject
- getCornerstoneImages
- getImageIdIndex
- getImageIdsToLoad
- getImageLoadRequests
- getImageURIIndex
- getLoaderImageOptions
- getScalarData
- getScalarDataArrays
- getScalarDataLength
- isDynamicVolume
- load
- loadImages
- modified
- removeFromCache
- successCallback
Constructors
constructor
Parameters
imageVolumeProperties: ImageVolumeProps & { splittingTag: string }
streamingProperties: IStreamingVolumeProperties
Returns default
Properties
optionaladditionalDetails
dimensions
direction
hasPixelSpacing
imageCacheOffsetMap
optionalimageData
imagesLoader
isPreScaled
loadStatus
Type declaration
callbacks: (...args: unknown[]) => void[]
cancelled: boolean
loaded: boolean
loading: boolean
metadata
numVoxels
origin
optionalreferencedImageIds
optionalreferencedVolumeId
optionalscaling
Type declaration
optionalPT?: { SUVbsaFactor?: number; SUVlbmFactor?: number; suvbwToSuvbsa?: number; suvbwToSuvlbm?: number }
optionalSUVbsaFactor?: number
optionalSUVlbmFactor?: number
optionalsuvbwToSuvbsa?: number
optionalsuvbwToSuvlbm?: number
optionalsizeInBytes
spacing
readonlyvolumeId
vtkOpenGLTexture
Accessors
imageIds
Returns string[]
Parameters
newImageIds: string[]
Returns void
publicnumTimePoints
Returns the number of time points
Returns number
number of time points
publicsplittingTag
Returns the splitting tag used to split the imageIds in 4D volume
Returns string
publictimePointIndex
Returns the active time point index
Returns number
active time point index
Set the active time point index which also updates the active scalar data
Parameters
newTimePointIndex: number
Returns void
current time point index
Methods
callLoadImage
Parameters
imageId: any
imageIdIndex: any
options: any
Returns any
publiccancelLoading
It cancels loading the images of the volume. It sets the loading status to false and filters any imageLoad request in the requestPoolManager that has the same volumeId
Returns void
publicclearLoadCallbacks
Clear the load callbacks
Returns void
convertToCornerstoneImage
Parameters
imageId: string
imageIdIndex: number
Returns IImageLoadObject
convertToImageSlicesAndCache
Returns string[]
decache
Parameters
optionalcompletelyRemove: boolean
Returns void | string[]
destroy
Returns void
publicerrorCallback
Parameters
imageId: any
permanent: any
error: any
Returns void
getCornerstoneImage
Parameters
imageId: string
imageIdIndex: number
Returns IImage
getCornerstoneImageLoadObject
Parameters
imageId: string
imageIdIndex: number
Returns IImageLoadObject
getCornerstoneImages
Returns IImage[]
getImageIdIndex
Parameters
imageId: string
Returns number
publicgetImageIdsToLoad
Returns string[]
publicgetImageLoadRequests
It returns the imageLoad requests for the streaming image volume instance. It involves getting all the imageIds of the volume and creating a success callback which would update the texture (when the image has loaded) and the failure callback. Note that this method does not execute the requests but only returns the requests. It can be used for sorting requests outside of the volume loader itself e.g. loading a single slice of CT, followed by a single slice of PET (interleaved), before moving to the next slice.
Parameters
priority: number
Returns any[]
Array of requests including imageId of the request, its imageIdIndex, options (targetBuffer and scaling parameters), and additionalDetails (volumeId)
getImageURIIndex
Parameters
imageURI: string
Returns number
publicgetLoaderImageOptions
Parameters
imageId: string
Returns { additionalDetails: { imageId: string; imageIdIndex: number; volumeId: string }; allowFloatRendering: any; loader: (imageId: string, options?: ImageLoaderOptions) => Promise<IImage>; preScale: { enabled: boolean; scalingParameters: ScalingParameters }; skipCreateImage: boolean; targetBuffer: { arrayBuffer: SharedArrayBuffer; columns: any; length: number; offset: number; rows: any; type: any }; transferPixelData: boolean; transferSyntaxUID: any }
additionalDetails: { imageId: string; imageIdIndex: number; volumeId: string }
imageId: string
imageIdIndex: number
volumeId: string
allowFloatRendering: any
loader: (imageId: string, options?: ImageLoaderOptions) => Promise<IImage>
Parameters
imageId: string
optionaloptions: ImageLoaderOptions
Returns Promise<IImage>
preScale: { enabled: boolean; scalingParameters: ScalingParameters }
enabled: boolean
scalingParameters: ScalingParameters
skipCreateImage: boolean
targetBuffer: { arrayBuffer: SharedArrayBuffer; columns: any; length: number; offset: number; rows: any; type: any }
arrayBuffer: SharedArrayBuffer
columns: any
length: number
offset: number
rows: any
type: any
transferPixelData: boolean
transferSyntaxUID: any
publicgetScalarData
Return the active scalar data (buffer)
Returns PixelDataTypedArray
volume scalar data
getScalarDataArrays
Returns PixelDataTypedArray[]
getScalarDataLength
Returns number
publicisDynamicVolume
return true if it is a 4D volume or false if it is 3D volume
Returns boolean
publicload
It triggers a prefetch for images in the volume.
Parameters
callback: (...args: unknown[]) => void
A callback function to be called when the volume is fully loaded
Returns void
publicloadImages
Retrieves images using the older getImageLoadRequests method to setup all the requests. Ensures compatibility with the custom image loaders.
Parameters
imageIds: string[]
listener: ImageLoadListener
Returns Promise<boolean>
modified
Returns void
removeFromCache
Returns void
publicsuccessCallback
Parameters
imageId: string
image: any
Returns void
Streaming Image Volume Class that extends StreamingImageVolume base class. It implements load method to load the imageIds and insert them into the volume.