77 :
Volume(dimensions, spacing, type)
91 void* _memoryMapPtr{
nullptr};
92 int _cacheFileDescriptor{-1};
~SharedDataVolume()
Destructs the SharedDataVolume object. Unmaps the data from memory and closes the mapped file.
virtual PLATFORM_API void setVoxels(const void *voxels)=0
Sets the voxels of the volume.
const uint8_ts & getMemoryBuffer() const
Get the Memory Buffer object.
SharedDataVolume(const Vector3ui &dimensions, const Vector3f &spacing, const DataType type)
Constructs a new SharedDataVolume object.
PLATFORM_API void mapData(const std::string &filename)
Convenience function to map data from file.
A base class for volumes.
glm::vec< 3, uint32_t > Vector3ui