22 #include <agx/config/AGX_USE_AGXTERRAIN.h>
36 class TerrainDataSource;
199 inline bool getDeformable()
const;
205 void setEmbedCacheFilesInArchive(
bool embed );
211 bool getEmbedCacheFilesInArhive()
const;
340 RAYCAST_RESULT_FROM_DATASOURCE
359 using StepEventListener::store;
361 using StepEventListener::restore;
409 void updateActiveTiles();
411 void unloadUnusedTiles(
bool partOfRemoveNotification );
415 void unloadAllTiles();
417 void prepareSimulation(
bool fromRestore);
426 bool m_shouldStoreDeltas;
430 struct BodyAttachments {
437 typedef std::pair<TileId, agx::Vec2i> GlobalTerrainIndex;
460 void fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height);
465 inline void TerrainPager::fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height)
467 m_heightFieldDelta[gtid] = height;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXTERRAIN_EXPORT
Derive from this class to implement a listener for simulation step events.
Interface class for accessing data and functions for the internal soil particle simulation used in ag...
The TerrainCache is used internally by the TerrainPager to provide requested terrain tiles.
void setEmbedCacheFilesInArchive(bool embed)
Sets if cached files written out to disk should be embeded in AGX Archives when store is called.
agxTerrain::TerrainRef getTemplateTerrain()
Returns the template terrain used for properties of new terrain tiles.
bool getEmbedCacheFilesInArhive() const
Returns if cached files should be embedded in AGX Archives used for serialization.
Abstract interface for requesting height data for a Terrain tile.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
A TileSpecification determines where in the world a 2D TileId is located and contains utility methods...
Templated callback with two arguments.
Inheritance with partial specialization due to bug with ref_ptr containers.
Inheritance with partial specialization due to bug with ref_ptr containers.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::pair< Real, Real > RealPair
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Struct with data to describe a terrain tile.