diff options
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 |