From 01e94c82d907b8d6aa155affc01160396e794b31 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 22 Apr 2014 14:16:06 +0000 Subject: Add mxarray/link functionality for 3d volumes --- include/astra/Float32VolumeData3DMemory.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'include/astra/Float32VolumeData3DMemory.h') 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 -- cgit v1.2.3