17 #ifndef AGXCONTROL_RECORDPARTICLESOPERATIONS_H 18 #define AGXCONTROL_RECORDPARTICLESOPERATIONS_H 52 virtual void addNotification(
EventSensor * sensor)
override;
61 agx::Physics::ParticleGeometryContactInstance ,
62 agx::Physics::ParticleData& ,
63 agx::Physics::GeometryData& ,
80 void copyContactingParticlesToStorage(
EventSensor * sensor);
104 void addNotification(
EventSensor * sensor)
override;
113 agx::Physics::ParticleGeometryContactInstance ,
114 agx::Physics::ParticleData& ,
115 agx::Physics::GeometryData& ,
145 virtual void addNotification(
EventSensor * sensor)
override;
154 agx::Physics::ParticleGeometryContactInstance ,
155 agx::Physics::ParticleData& ,
156 agx::Physics::GeometryData& ,
190 void addNotification(
EventSensor * sensor)
override;
199 agx::Physics::ParticleGeometryContactInstance ,
200 agx::Physics::ParticleData& ,
201 agx::Physics::GeometryData& ,
214 bool loadParticleStorageFromSimulation(
EventSensor * sensor);
216 void loadParticlesFromStorage(
EventSensor * sensor);
246 virtual void addNotification(
EventSensor * sensor )
override;
255 agx::Physics::ParticleGeometryContactInstance,
256 agx::Physics::ParticleData&,
257 agx::Physics::GeometryData&,
294 void addNotification(
EventSensor * sensor )
override;
303 agx::Physics::ParticleGeometryContactInstance ,
304 agx::Physics::ParticleData& ,
305 agx::Physics::GeometryData& ,
316 void loadParticlesFromFile(
EventSensor * sensor );
Class that stores particle data from a continuous flow in the coupled sensor to a separate specified ...
agx::JournalRef m_journal
agx::String m_journalPath
agx::FrameRef m_targetOffsetFrame
agx::FrameRef m_targetOffsetFrame
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
agxData::EntityStorageRef m_particleStorage
Loads particle data from an external journal file into a simulation relative to the coupled sensor ob...
#define AGXPHYSICS_EXPORT
Representation of a name string.
agx::HashSet< agx::UInt32 > m_previousContactingParticleIds
This is a sensor class that can be attached to an geometry in the simulation.
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.
Loads particle data from an external agx file into a simulation relative to the coupled sensor object...
agx::Material * m_startMaterial
Class that stores particles in contact with the sensor to an binary .agx file.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agxData::EntityStorageRef m_particleStorage
agx::JournalRef m_journal
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...
void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
Main material class which acts as a holder of a Surface Material and a Bulk material.
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.
Class that stores a single frame of the current particle configuration in the coupled sensor...
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
The object defining a frame of reference and providing transformations operations.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::String m_journalPath
agx::Material * m_startMaterial
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
A specific type of sensor event that triggers a change in the simulation when activated by a contact...
agx::FrameRef m_sourceOffsetFrame
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.
bool m_shouldAttachJournalOnContact