13#ifndef ML_CLUSTER_REF_VOLUME_H
14#define ML_CLUSTER_REF_VOLUME_H
62 bool _use32BitIndexes;
66 void** _clusterRefLUT;
73 return _use32BitIndexes ?
74 static_cast<MLuint32*
>(_clusterRefLUT[z])[x+ (y*_sizeX)] :
75 static_cast<MLuint64*
>(_clusterRefLUT[z])[x+ (y*_sizeX)];
82 static_cast<MLuint32*
>(_clusterRefLUT[z])[x+ (y*_sizeX)] =
static_cast<MLuint32>(clusterRef);
86 static_cast<MLuint64*
>(_clusterRefLUT[z])[x+ (y*_sizeX)] = clusterRef;
ClusterRefVolume()
Constructor.
~ClusterRefVolume()
Destructor, cleanup.
ML_FORCE_INLINE void setClusterRef(MLuint x, MLuint y, MLuint z, MLuint clusterRef)
Sets a cluster reference for volume position.
ML_FORCE_INLINE bool isInitialized() const
Returns whether the volume is initialized.
ML_FORCE_INLINE MLuint getClusterRef(MLuint x, MLuint y, MLuint z) const
Returns the cluster reference for the volume position.
MLErrorCode init(MLuint x, MLuint y, MLuint z)
Init volume, reserve memory.
void _deleteArrays()
Deletes all allocated structures.
MLint32 MLErrorCode
Type of an ML Error code.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.