22 #include <agx/config/AGX_USE_AGXTERRAIN.h> 36 class TerrainDataSource;
171 void setShouldStoreCompaction(
bool shouldStoreCompaction,
size_t maximumCompactionDepth);
176 bool getShouldStoreCompaction()
const;
182 void setEmbedCacheFilesInArchive(
bool embed );
188 bool getEmbedCacheFilesInArhive()
const;
194 void setShouldStoreDeltas(
bool shouldStoreDeltas);
199 bool getShouldStoreDeltas();
246 void applyChangesToTemplateTerrain();
279 virtual void addNotification()
override;
284 virtual void removeNotification()
override;
309 RAYCAST_RESULT_FROM_DATASOURCE
328 using StepEventListener::store;
330 using StepEventListener::restore;
376 virtual ~TerrainPager();
378 void updateActiveTiles();
380 void unloadUnusedTiles(
bool partOfRemoveNotification );
384 void unloadAllTiles();
386 void prepareSimulation(
bool fromRestore);
395 bool m_shouldStoreDeltas;
399 struct BodyAttachments {
406 struct TileAttachments {
415 typedef std::pair<TileId, agx::Vec2i> GlobalTerrainIndex;
438 void fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height);
443 inline void TerrainPager::fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height)
445 m_heightFieldDelta[gtid] = height;
451 m_cache.setEmbedCacheFilesInArchive( embed );
457 return m_cache.getEmbedCacheFilesInArhive();
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...
Namespace agx 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.
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)
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()