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 );
382 void handleNewTerrainTile( agxTerrain::
TerrainTile );
384 void unloadAllTiles();
386 void prepareSimulation(
bool fromRestore);
388 agx::
Real getOverlappingAreaSolidMass(agxTerrain::
TileId, agxTerrain::TileId);
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;
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 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...
#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)
bool getEmbedCacheFilesInArhive() const
Returns if cached files should be embedded in AGX Archives used for serialization.
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()