48 DEFAULT = PRE_STEP | POST_STEP,
49 ALL = PRE_COLLIDE | PRE_STEP | POST_STEP | LAST_STEP
#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 AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
An EventListener can be associated to a Simulation and triggered upon various events.
Derive from this class to implement a listener for simulation step events.
virtual void preCollide(const agx::TimeStamp &time)
Called before collision detection is performed in the simulation Implement this method in the derived...
virtual ~StepEventListener()
Destructor.
virtual void last(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
virtual void pre(const agx::TimeStamp &time)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
virtual void post(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
ActivationMask
Defines the event states for which a listener will be activated, a mask can be bitwise OR:ed from the...
StepEventListener(int mask=DEFAULT)
Default constructor, sets the default activation mask to all (POST_STEP and PRE_STEP) events.
virtual void setMask(int mask) override
Specifies a bitmask which determines which event types will activate this listener.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...