Fovia C++ In-Process API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
virtual signed int | Attach (VOLUME_DATA_PARAMS vdp, bool bOwnData) |
virtual signed int | AttachEx (VOLUME_DATA_PARAMS *vdp, bool bOwnData)=0 |
virtual signed int | DecRef ()=0 |
virtual signed int | Detach ()=0 |
virtual signed int | GetCustomAllocator (IAllocator **alloc)=0 |
virtual signed int | GetDesc (VOLUME_DATA_PARAMS *vdp)=0 |
virtual signed int | GetHistogram (unsigned long long *histogram)=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | SetCustomAllocator (IAllocator *alloc)=0 |
![]() | |
template<class T > | |
signed int | AskInterface (T **pp) |
The IVolumeData interface represents a volume data set in memory.
|
inlinevirtual |
|
pure virtual |
Attach volume data object to a memory block
vdp | volume data description. |
bOwnData | If true, the memory will be freed when this object is destructed. Specifically, each slice in the VOLUME_DATA_PARAMS::Data array is released, then the actual VOLUME_DATA_PARAMS::Data array. Finally, the VOLUME_DATA_PARAMS::ImagePositionPatient buffer is freed if it is non-NULL. |
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Detach volume data object from memory block. Note that this does not free the memory used by this data. It only removes it's reference information from this IVolumeData. If it was attached with bOwnData set to true, DecRef() this object until the count is 0 instead of Detach() and the data will be freed.
|
pure virtual |
Gets the custom allocator for this volume.
alloc | Address of pointer to receive the location of the custom allocator (or NULL if there is none). |
|
pure virtual |
Get volume data description.
vdp | Struct to receive the volume data description. |
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
Sets a custom allocator to be used for freeing/allocating slices in this volume.
alloc | The allocator. NULL is an acceptable (and the default) value. |