115 friend class EventManager;
#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
An EventListener can be associated to a Simulation and triggered upon various events.
Type
Type of EventListener.
@ CONTACT_EVENT_LISTENER
Of type ContactEventListener.
@ UNDEFINED_TYPE
Undefined type.
@ STEP_EVENT_LISTENER
Of type StepEventListener.
void setEnable(bool enable)
Specify whether the listener should react at all at events.
virtual void addNotification()
Called when this listener is added to the simulation.
const Simulation * getSimulation() const
virtual void setMask(int f)
Specifies a bit mask which determines which event types that will activate this listener.
EventListener(Type type=UNDEFINED_TYPE)
Default constructor.
virtual void removeNotification()
Called when this listener is removed from the simulation.
Simulation * getSimulation()
virtual ~EventListener()
Destructor.
void setSimulation(Simulation *simulation)
Set the associated simulation for this EventListener.
agx::UInt32 getPriority() const
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
A component is an object containing other objects, enabling hierarchical structuring.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::SetVector< agx::ref_ptr< agxSDK::EventListener > > EventListenerRefSetVector
agx::Vector< EventListener * > EventListenerPtrVector
agx::Vector< agx::ref_ptr< agxSDK::EventListener > > EventListenerRefVector