AGX Dynamics  2.37.3.2
agx::detail::ParticleEventListener Class Referenceabstract

Particle EventListener that can be inherited and overridden in order to listen to particle events. More...

#include <GranularImpactDataWriter.h>

+ Inheritance diagram for agx::detail::ParticleEventListener:

Public Member Functions

 ParticleEventListener (agx::Physics::GranularBodySystem *system)
 
IndexHashSet getDestroyedParticles () const
 Returns the currently destroyed particles registered from the coupled GranularBodySystem. More...
 

Protected Member Functions

virtual ~ParticleEventListener ()
 
void clearDestroyedParticles ()
 
virtual void onParticleCreated (agx::Index id)=0
 
virtual void onParticleDestroyed (agx::Index id)=0
 
bool particleIsDestroyed (agx::Index id)
 

Detailed Description

Particle EventListener that can be inherited and overridden in order to listen to particle events.

Definition at line 58 of file GranularImpactDataWriter.h.

Constructor & Destructor Documentation

◆ ParticleEventListener()

agx::detail::ParticleEventListener::ParticleEventListener ( agx::Physics::GranularBodySystem *  system)

◆ ~ParticleEventListener()

virtual agx::detail::ParticleEventListener::~ParticleEventListener ( )
protectedvirtual

Member Function Documentation

◆ clearDestroyedParticles()

void agx::detail::ParticleEventListener::clearDestroyedParticles ( )
protected

◆ getDestroyedParticles()

IndexHashSet agx::detail::ParticleEventListener::getDestroyedParticles ( ) const

Returns the currently destroyed particles registered from the coupled GranularBodySystem.

Definition at line 119 of file GranularImpactDataWriter.h.

◆ onParticleCreated()

virtual void agx::detail::ParticleEventListener::onParticleCreated ( agx::Index  id)
protectedpure virtual

Implemented in agx::GranularDataExporter.

◆ onParticleDestroyed()

virtual void agx::detail::ParticleEventListener::onParticleDestroyed ( agx::Index  id)
protectedpure virtual

Implemented in agx::GranularDataExporter.

◆ particleIsDestroyed()

bool agx::detail::ParticleEventListener::particleIsDestroyed ( agx::Index  id)
protected

The documentation for this class was generated from the following file: