22 #include <agx/config/AGX_USE_AGXTERRAIN.h> 36 class TerrainDataSource;
180 void setShouldStoreCompaction(
bool shouldStoreCompaction,
size_t maximumCompactionDepth);
185 bool getShouldStoreCompaction()
const;
193 void setDeformable(
bool deformable );
200 inline bool getDeformable()
const;
206 void setEmbedCacheFilesInArchive(
bool embed );
212 bool getEmbedCacheFilesInArhive()
const;
218 void setShouldStoreDeltas(
bool shouldStoreDeltas);
223 bool getShouldStoreDeltas();
228 TileAttachmentPtrVector getActiveTileAttachments();
278 void applyChangesToTemplateTerrain();
311 virtual void addNotification()
override;
316 virtual void removeNotification()
override;
341 RAYCAST_RESULT_FROM_DATASOURCE
360 using StepEventListener::store;
362 using StepEventListener::restore;
408 virtual ~TerrainPager();
410 void updateActiveTiles();
412 void unloadUnusedTiles(
bool partOfRemoveNotification );
416 void unloadAllTiles();
418 void prepareSimulation(
bool fromRestore);
429 bool m_shouldStoreDeltas;
433 struct BodyAttachments {
440 typedef std::pair<TileId, agx::Vec2i> GlobalTerrainIndex;
463 void fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height);
468 inline void TerrainPager::fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height)
470 m_heightFieldDelta[gtid] = height;
476 m_cache.setEmbedCacheFilesInArchive( embed );
482 return m_cache.getEmbedCacheFilesInArhive();
487 return m_cache.getTemplateTerrain()->getDeformable();
std::pair< Real, Real > RealPair
Struct with data to describe a terrain tile.
A TileSpecification determines where in the world a 2D TileId is located and contains utility methods...
Inheritance with partial specialization due to bug with ref_ptr containers.
Derive from this class to implement a listener for simulation step events.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
#define AGX_DECLARE_POINTER_TYPES(type)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
The TerrainCache is used internally by the TerrainPager to provide requested terrain tiles...
#define AGXTERRAIN_EXPORT
The rigid body class, combining a geometric model and a frame of reference.
Templated callback with two arguments.
Interface class for accessing data and functions for the internal soil particle simulation used in ag...
Abstract interface for requesting height data for a Terrain tile.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
#define AGX_DECLARE_VECTOR_TYPES(type)
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()