#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
Abstract representation of a data buffer.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Derive from this class to implement a listener for simulation step events.
agxData::Buffer * getHeightBuffer()
static TerrainJournalRecorder * find(const agxTerrain::Terrain *terrain, const agxSDK::Simulation *simulation)
Finds TerrainJournalRecorder given terrain and simulation.
TerrainJournalRecorder(agxTerrain::Terrain *terrain)
Constructor for the TerrainJournalRecorder.
void createJournalBindings(agx::Journal *journal)
bool heigthBufferIsValid()
agxTerrain::Terrain * getTerrain()
Get the coupled terrain object.
virtual void preCollide(const agx::TimeStamp &time) override
Called before the collision detection step is taken in the simulation.
agxData::BufferRef m_heigthBuffer
void storeChangedVertices()
agxTerrain::TerrainRef m_terrain
agx::RealVector m_heightIndices
void initHeightFieldStorage()
agx::JournalObserver m_journal
void journalAttachedCallback(agxSDK::Simulation *simulation, agx::Journal *journal)
static size_t addTerrainJournalRecorders(agxSDK::Simulation *simulation)
Find all active terrains in the simulation and add a TerrainJournalRecorder objects for each one.
virtual void post(const agx::TimeStamp &time) override
Called after a step is taken in the simulation.
agxSDK::Simulation::JournalAttachEvent::CallbackType m_journalAttachedCallback
virtual ~TerrainJournalRecorder()
virtual void pre(const agx::TimeStamp &time) override
Called before a step is taken in the simulation.
agx::ComponentRef m_dataRoot
virtual void addNotification() override
Called when this object is added to a simulation.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.