22#include <agx/config/AGX_USE_AGXTERRAIN.h>
36 class TerrainDataSource;
215 inline bool getDeformable()
const;
221 void setEmbedCacheFilesInArchive(
bool embed );
227 bool getEmbedCacheFilesInArhive()
const;
356 RAYCAST_RESULT_FROM_DATASOURCE
375 using StepEventListener::store;
377 using StepEventListener::restore;
425 void updateActiveTiles();
427 void unloadUnusedTiles(
bool partOfRemoveNotification );
431 void unloadAllTiles();
433 void prepareSimulation(
bool fromRestore);
444 bool m_shouldStoreDeltas;
448 bool m_shouldSynchronizeCompaction;
450 struct BodyAttachments {
457 typedef std::pair<TileId, agx::Vec2i> GlobalTerrainIndex;
460 agx::HashTable < agx::RigidBody *, BodyAttachments > m_bodies;
480 void fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height);
485 inline void TerrainPager::fillHeightDelta(
const GlobalTerrainIndex& gtid,
agx::Real height)
487 m_heightFieldDelta[gtid] = height;
#define AGX_DECLARE_POINTER_TYPES(type)
#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
#define AGX_DECLARE_VECTOR_TYPES(type)
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.
An event 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
Struct with data to describe a terrain tile.