diff options
author | Willem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-22 14:16:06 +0000 |
---|---|---|
committer | wpalenst <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-22 14:16:06 +0000 |
commit | 01e94c82d907b8d6aa155affc01160396e794b31 (patch) | |
tree | ac340f65b197ea6db3811d8f9f02ac0ca1fb6035 /include/astra/Float32VolumeData3DMemory.h | |
parent | b4324c3d3ee5e27c271a4965680d3bf1fee81827 (diff) | |
download | astra-01e94c82d907b8d6aa155affc01160396e794b31.tar.gz astra-01e94c82d907b8d6aa155affc01160396e794b31.tar.bz2 astra-01e94c82d907b8d6aa155affc01160396e794b31.tar.xz astra-01e94c82d907b8d6aa155affc01160396e794b31.zip |
Add mxarray/link functionality for 3d volumes
Diffstat (limited to 'include/astra/Float32VolumeData3DMemory.h')
-rw-r--r-- | include/astra/Float32VolumeData3DMemory.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/astra/Float32VolumeData3DMemory.h b/include/astra/Float32VolumeData3DMemory.h index 51df93e..b3f3891 100644 --- a/include/astra/Float32VolumeData3DMemory.h +++ b/include/astra/Float32VolumeData3DMemory.h @@ -84,6 +84,19 @@ public: */ CFloat32VolumeData3DMemory(CVolumeGeometry3D* _pGeometry, float32 _fScalar); + /** Constructor. Create an instance of the CFloat32VolumeData3DMemory class with pre-allocated memory. + * + * Creates an instance of the CFloat32VolumeData3DMemory class. Memory + * is pre-allocated and passed via the abstract CFloat32CustomMemory handle + * class. The handle will be deleted when the memory can be freed. + * You should override the destructor to provide custom behaviour on free. + * + * @param _pGeometry Volume Geometry object. This object will be HARDCOPIED into this class. + * @param _pCustomMemory custom memory handle + * + */ + CFloat32VolumeData3DMemory(CVolumeGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory); + /** Destructor. */ virtual ~CFloat32VolumeData3DMemory(); @@ -122,6 +135,18 @@ public: */ bool initialize(CVolumeGeometry3D* _pGeometry, float32 _fScalar); + /** Initialization. Initializes an instance of the CFloat32VolumeData3DMemory class with pre-allocated memory. + * + * Memory is pre-allocated and passed via the abstract CFloat32CustomMemory handle + * class. The handle will be deleted when the memory can be freed. + * You should override the destructor to provide custom behaviour on free. + * + * @param _pGeometry Volume Geometry object. This object will be HARDCOPIED into this class. + * @param _pCustomMemory custom memory handle + * + */ + bool initialize(CVolumeGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory); + /** Which type is this class? * * @return DataType: VOLUME |