34 static constexpr
float MAX_MASS = 1.0;
73 void setMass(
const Grid::GridCoord& coord, MassType massType,
float value);
83 float addMass(
const Grid::GridCoord& coord, MassType massType,
float value);
114 float getMaximumAllowedSolidMassInVoxel(
const Grid::GridCoord& coord)
const;
121 bool isActiveVoxel(
const Grid::GridCoord& coord, MassType massType)
const;
134 void clearVelocityGrid();
137 void setData(
const Grid& grid, MassType massType);
139 Grid* getGridMassData(MassType massType)
const;
140 Grid* getCompactionGridData()
const;
142 size_t getTotalGridMemoryUsage()
const;
144 size_t getTotalActiveVoxels()
const;
146 void clearMassGrid(MassType massType);
148 agx::Real getMassInTerrain(MassType massType)
const;
AGXCORE_EXPORT UInt32 hash(const T &key)
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
agx::UInt32 operator()(TerrainDataAtlas::MassType key) const
#define AGX_DECLARE_POINTER_TYPES(type)
Pure virtual interface class for the data storage grid classes we have.
Base class providing referencing counted objects.
Vector containing 'raw' data.
agx::HashTable< agx::Vec3i, agx::Vec3f > VoxelToVelocityTable
Container for holding a grid coordinate.
#define AGXTERRAIN_EXPORT
Inheritance with partial specialization due to bug with ref_ptr containers.
LinearProbingHashTable< KeyT, DataT, HashT, AllocatorT > HashTable
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()