36 virtual agx::Vec3 getElementSize()
const override;
38 virtual size_t getMemoryUsage()
const override;
40 virtual bool empty()
override;
42 virtual void clearGrid()
override;
46 virtual void setFloatValue(
const GridCoord& ijk,
float value)
override;
48 virtual float getFloatValue(
const GridCoord& ijk)
const override;
50 virtual bool isActiveVoxel(
const GridCoord& ijk)
const override;
52 virtual size_t getNumActiveVoxels()
const override;
54 virtual agx::Real getTotal()
const override;
56 virtual std::tuple<float, float> getTotalAndLargest()
const override;
58 virtual void sizeHint(
size_t hint )
override;
60 virtual bool hasIterateSupport()
const override;
62 virtual void iterateVoxels(
GridFunction )
const override;
67 bool onlyOccupiedVoxels =
true )
const override;
Pure virtual interface class for the data storage grid classes we have.
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
Class implementing the BasicGrid interface.
The geometry representation used by the collision detection engine.
Vector containing 'raw' data.
#define AGXTERRAIN_EXPORT
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
std::function< void(GridCoord, float)> GridFunction
Inheritance with partial specialization due to bug with ref_ptr containers.