#include <mitkOoCVolume.h>
Inherits mitkVolume.
Inheritance diagram for mitkOoCVolume:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkOoCVolume () | |
virtual int | GetDataObjectType () const |
virtual void const * | GetData () const |
virtual void * | GetData () |
virtual void | FreezeSlice (int sliceIdx) |
virtual void | UnFreezeSlice (int sliceIdx) |
virtual void const * | GetSliceForRead (int sliceIdx) |
virtual void * | GetSliceForWrite (int sliceIdx) |
virtual void * | GetSliceForReadWrite (int sliceIdx) |
virtual bool | ReadSliceData (int sliceIdx, void *dst) |
virtual bool | ReadYZSliceData (int xIdx, void *dst) |
virtual bool | ReadXZSliceData (int yIdx, void *dst) |
virtual bool | GetArbitrarySlice (int w, int h, double o[3], double ux[3], double uy[3], void *dst) |
virtual bool | WriteSliceData (int sliceIdx, void const *src) |
virtual bool | ReadSubVolume (int x, int y, int z, int w, int h, int d, int &tw, int &th, int &td, void *dst) |
virtual bool | WriteSubVolume (int x, int y, int z, int w, int h, int d, int &tw, int &th, int &td, void const *src) |
virtual bool | Allocate () |
virtual unsigned long long | GetActualMemorySize () const |
virtual void | Initialize () |
virtual void | ShallowCopy (mitkDataObject *src) |
virtual void | DeepCopy (mitkDataObject *src) |
void | SetSliceDataModified (int sliceIdx, bool modified=true) |
void | SetMemoryBufferSize (size_type s) |
void | SetBufferedSliceNum (unsigned int n) |
unsigned int | GetBufferedSliceNum () |
void | SetPathOfDiskBuffer (char const *path) |
char const * | GetPathOfDiskBuffer () |
void | SetNamePrefix (char const *prefix) |
char const * | GetNamePrefix () |
void | SetKeepCacheFiles (bool keep=true) |
mitkOoCVolume is a concrete data object to represent a out-of-core multi-dimensional medical image dataset.
|
Default constructor. |
|
Generate the buffer for the volume data on disk and allocate necessary space in memory for holding the buffered image data. The previous allocated data will be deleted if exists.
Implements mitkVolume. |
|
Reimplemented from mitkVolume. |
|
Lock the physical memory containing sliceIdx'th slice data. (only useful for out-of-core volume data (mitkOoCVolume) to avoid swapping some slice data from memory buffer to disk buffer, i.e. to keep the returned pointer of some 'Get' functions, such as GetSliceData(), GetSliceForRead() and so on, always be valid until call UnFreezeSlice().
Reimplemented from mitkVolume. |
|
Return the actual memory size occupied by the buffered volume data. The unit is BYTE.
Implements mitkDataObject. |
|
Get arbitrary directional slice from the volume to a specified memory buffer (i.e. re-slicing).
Implements mitkVolume. |
|
Get the number of buffered slice in memory.
|
|
You can not get a permanent pointer to the entire volume data since it can not be loaded to the main memory all together, so do not call this function when using a mitkOoCVolume object, and it will always return NULL.
Implements mitkVolume. |
|
You can not get a permanent pointer to the entire volume data since it can not be loaded to the main memory all together, so do not call this function when using a mitkOoCVolume object, and it will always return NULL.
Implements mitkVolume. |
|
Return the data object type.
Reimplemented from mitkVolume. |
|
Get the name prefix of the volume cache files. For quick restore of an out-of-core volume.
|
|
Get the full path of the disk buffer which contains all the slices of the volume.
|
|
Get data pointer of a specified slice in the volume (for read only).
Implements mitkVolume. |
|
Get data pointer of a specified slice in the volume (for read & write).
Implements mitkVolume. |
|
Get data pointer of a specified slice in the volume (for write only).
Implements mitkVolume. |
|
Delete the allocated memory (if any) and initialize to default status. Reimplemented from mitkVolume. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkVolume. |
|
Copy slice data from the volume to a specified memory buffer.
Implements mitkVolume. |
|
Copy a sub-volume (start position = (x, y, z), size = w * h * d) from the volume to a specified memory buffer.
Implements mitkVolume. |
|
Copy y-directional slice from the volume to a specified memory buffer.
Implements mitkVolume. |
|
Copy x-directional slice from the volume to a specified memory buffer.
Implements mitkVolume. |
|
Set the number of buffered slice in memory.
|
|
Set whether or not to keep the cache files. To set it to true for quick restore of an out-of-core volume.
|
|
Set the size of the memory buffer for containing cached slices.
|
|
Set the name prefix of the volume cache files. For quick restore of an out-of-core volume.
|
|
Set the full path of the disk buffer to contain all the slices of the volume.
|
|
Set the modified flag of the sliceIdx'th slice.
|
|
Reimplemented from mitkVolume. |
|
Unlock the physical memory containing sliceIdx'th slice data.
Reimplemented from mitkVolume. |
|
Copy slice data from a specified memory buffer to the volume.
Implements mitkVolume. |
|
Copy a sub-volume (start position = (x, y, z), size = w * h * d) from a specified memory buffer to the volume.
Implements mitkVolume. |