VolumetricData.h File Reference
Base class for storing and operating on volumetric data, and associated gradient data. All of the methods included in this class are expected to function correctly for volumes with non-uniform grid spacing among the three axes and for non-orthorhombic shapes. Volumetric operations that only support orthorhombic volumes with uniform grid spacing are best included in Voltools or another task-specific subclass or subroutine collection.
More...
#include <stddef.h>
Go to the source code of this file.
Compounds
Volumetric data class for potential maps, electron density maps, etc. More...
Defines
fast but unsafe macro for querying volume gradients. More...
fast but unsafe macro for querying volume gradients. More...
Detailed Description
Base class for storing and operating on volumetric data, and associated gradient data. All of the methods included in this class are expected to function correctly for volumes with non-uniform grid spacing among the three axes and for non-orthorhombic shapes. Volumetric operations that only support orthorhombic volumes with uniform grid spacing are best included in Voltools or another task-specific subclass or subroutine collection.
Definition in file VolumetricData.h.
Define Documentation
#define VOXEL_GRADIENT_FAST
(
gradientmap,
planesz,
rowsz,
x,
y,
z,
newgrad
)
Value:
{ ptrdiff_t index = ((z)*(planesz) + (y)*(rowsz) + (x)) * 3L; \
(newgrad)[0] = (gradientmap)[index ]; \
(newgrad)[1] = (gradientmap)[index + 1]; \
(newgrad)[2] = (gradientmap)[index + 2]; \
}fast but unsafe macro for querying volume gradients.
Definition at line 328 of file VolumetricData.h.
Referenced by IsoSurface::DoCellGeneral, and IsoSurface::DoGridPosNorms.
#define VOXEL_GRADIENT_FAST_IDX
(
gradientmap,
index,
newgrad
)
Value:
{ (newgrad)[0] = (gradientmap)[index ]; \
(newgrad)[1] = (gradientmap)[index + 1]; \
(newgrad)[2] = (gradientmap)[index + 2]; \
}fast but unsafe macro for querying volume gradients.
Definition at line 321 of file VolumetricData.h.
Generated on Mon Nov 17 02:47:54 2025 for VMD (current) by
doxygen1.2.14 written by Dimitri van Heesch,
© 1997-2002