17 #ifndef AGXCONTROL_RECORDPARTICLESOPERATIONS_H
18 #define AGXCONTROL_RECORDPARTICLESOPERATIONS_H
61 agx::Physics::ParticleGeometryContactInstance ,
62 agx::Physics::ParticleData& ,
63 agx::Physics::GeometryData& ,
113 agx::Physics::ParticleGeometryContactInstance ,
114 agx::Physics::ParticleData& ,
115 agx::Physics::GeometryData& ,
154 agx::Physics::ParticleGeometryContactInstance ,
155 agx::Physics::ParticleData& ,
156 agx::Physics::GeometryData& ,
199 agx::Physics::ParticleGeometryContactInstance ,
200 agx::Physics::ParticleData& ,
201 agx::Physics::GeometryData& ,
255 agx::Physics::ParticleGeometryContactInstance,
256 agx::Physics::ParticleData&,
257 agx::Physics::GeometryData&,
303 agx::Physics::ParticleGeometryContactInstance ,
304 agx::Physics::ParticleData& ,
305 agx::Physics::GeometryData& ,
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Base virtual class for storing particle states to an external journal file.
agx::FrameRef m_sourceOffsetFrame
virtual void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
virtual ~BaseRecordParticleJournalOperation()
BaseRecordParticleJournalOperation(const agx::Name &name, const agx::String &journalPath, agx::Frame *sourceOffset=nullptr)
void attachJournal(agxSDK::Simulation *simulation)
agx::JournalRef m_journal
virtual void update(const agx::TimeStamp &) override
Used to update the sensor operation each time step, if they have time dependent components.
BaseRecordParticleJournalOperation(const agx::Name &name=agx::Name())
virtual void postContactHandling(agxSDK::Simulation *, EventSensor *) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
agxData::EntityStorageRef m_particleStorage
void initDataStructure(agxSDK::Simulation *simulation)
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
virtual void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
void copyContactingParticlesToStorage(EventSensor *sensor)
agx::String m_journalPath
agx::HashSet< agx::UInt32 > m_previousContactingParticleIds
This is a sensor class that can be attached to an geometry in the simulation.
Loads particle data from an external agx file into a simulation relative to the coupled sensor object...
agx::Material * m_startMaterial
void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
LoadParticleAGXFileOperation(const agx::Name &name, const agx::String &filePath, agx::Real startAfter=0, agx::Material *startMaterial=nullptr, agx::Frame *targetOffsetFrame=nullptr)
virtual ~LoadParticleAGXFileOperation()
agx::FrameRef m_targetOffsetFrame
void postContactHandling(agxSDK::Simulation *simulation, agxControl::EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
LoadParticleAGXFileOperation(const agx::Name &name=agx::Name())
void loadParticlesFromFile(EventSensor *sensor)
Loads particle data from an external journal file into a simulation relative to the coupled sensor ob...
agx::FrameRef m_targetOffsetFrame
void loadAndAttachJournal(EventSensor *sensor)
void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
LoadParticleJournalOperation(const agx::Name &name, const agx::String &journalPath, agx::Real startAfter=0, agx::Material *startMaterial=nullptr, agx::Frame *targetOffsetFrame=nullptr)
void postContactHandling(agxSDK::Simulation *simulation, agxControl::EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
LoadParticleJournalOperation(const agx::Name &name=agx::Name())
agx::Material * m_startMaterial
virtual ~LoadParticleJournalOperation()
agx::JournalRef m_journal
bool loadParticleStorageFromSimulation(EventSensor *sensor)
void loadParticlesFromStorage(EventSensor *sensor)
agx::String m_journalPath
agxData::EntityStorageRef m_particleStorage
void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
Class that stores particle data from a continuous flow in the coupled sensor to a separate specified ...
RecordParticleJournalOperation(const agx::Name &name, const agx::String &journalPath, bool shouldAttachJournalOnContact=true, agx::Frame *sourceOffset=nullptr)
virtual ~RecordParticleJournalOperation()
void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
bool m_shouldAttachJournalOnContact
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *simulation, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
RecordParticleJournalOperation(const agx::Name &name=agx::Name())
Class that stores a single frame of the current particle configuration in the coupled sensor.
virtual ~RecordParticleShapshotJournalOperation()
void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *simulation, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
RecordParticleShapshotJournalOperation(agx::Name name=agx::Name())
void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
RecordParticleShapshotJournalOperation(const agx::Name &name, const agx::String &journalPath, agx::Real snapShotTime=0, agx::Frame *sourceOffset=nullptr)
void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
virtual void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
virtual void update(const agx::TimeStamp &) override
Used to update the sensor operation each time step, if they have time dependent components.
A specific type of sensor event that triggers a change in the simulation when activated by a contact.
Class that stores particles in contact with the sensor to an binary .agx file.
virtual void update(const agx::TimeStamp &) override
Used to update the sensor operation each time step, if they have time dependent components.
WriteParticleDataToAGXOperation(const agx::Name &name, const agx::String &filepath, agx::Real snapShotTime, agx::Frame *sourceOffset=nullptr)
agx::FrameRef m_sourceOffsetFrame
virtual ~WriteParticleDataToAGXOperation()
virtual void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
void writeParticlesToFile(EventSensor *sensor)
virtual void postContactHandling(agxSDK::Simulation *, EventSensor *) override
Post function that will be triggered for the event after all the contacts have handled in the operati...
WriteParticleDataToAGXOperation(const agx::Name &name=agx::Name())
virtual void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The object defining a frame of reference and providing transformations operations.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Representation of a name string.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.