17 #ifndef AGXCONTROL_GRANULARMODELREDUCTIONOPERATIONS_H
18 #define AGXCONTROL_GRANULARMODELREDUCTIONOPERATIONS_H
37 agx::Physics::ParticleGeometryContactInstance contact,
38 agx::Physics::ParticleData& particleData,
39 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
This is a sensor class that can be attached to an geometry in the simulation.
A specific type of sensor event that triggers a change in the simulation when activated by a contact.
ParticleStorageListener(SplitSensorOperation *op)
virtual void destroyInstancesCallback(agxData::EntityStorage *storage, agxData::Array< agxData::EntityPtr > instances) override
SplitSensorOperation * m_splitOperation
virtual void destroyInstancesCallback(agxData::EntityStorage *storage, agxData::EntityRange instance) override
virtual void destroyInstanceCallback(agxData::EntityStorage *storage, agxData::EntityPtr instance) override
agx::ParticleSystem * m_particleSystem
ParticleStorageListener m_particleStorageListener
virtual ~SplitSensorOperation()
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 triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *simulation, agxCollide::GeometryContact *cd, agxControl::EventSensor *sensor) override
Triggers the sensor event by passing contact information.
void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance contact, agx::Physics::ParticleData &particleData, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
void connectToParticleStorage(agx::ParticleSystem *system)
void singalParticleDestroyed(agx::Index id)
agx::HashSet< agx::Index > m_previousParticleIdsInSensor
SplitSensorOperation(const agx::Name &name=agx::Name())
Type-specific Array used for fast access into the data held by a Buffer.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Data storage for a collection of entity instances of a specified EntityModel.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Representation of a name string.
A basic particle system that contains all the storages and buffers required for basic operation and a...
This namespace contains general operation and action classes which can be used to control a agxSDK::S...