17 #ifndef AGXCONTROL_SENSOREVENT_H
18 #define AGXCONTROL_SENSOREVENT_H
20 #include <agx/config.h>
74 agx::Physics::ParticleGeometryContactInstance contact,
75 agx::Physics::ParticleData& particleData,
76 agx::Physics::GeometryData& geometryData,
133 agx::Physics::ParticleGeometryContactInstance contact,
134 agx::Physics::ParticleData& particleData,
135 agx::Physics::GeometryData& geometryData,
#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)
This is a sensor class that can be attached to an geometry in the simulation.
A sensor event is an event triggered when the sensor is activated by a contact.
virtual void postContactHandling(agxSDK::Simulation *simulation, EventSensor *sensor)
Post function that will be triggered for the event after all the contacts have handled in the operati...
agx::Name m_name
Name of the sensor event.
virtual void triggerEvent(const agx::TimeStamp &t, agxSDK::Simulation *simulation, agxCollide::GeometryContact *cd, EventSensor *sensor)
Triggers the sensor event by passing contact information.
virtual void triggerParticleEvent(const agx::TimeStamp &t, agxSDK::Simulation *simulation, agx::Physics::ParticleGeometryContactInstance contact, agx::Physics::ParticleData &particleData, agx::Physics::GeometryData &geometryData, EventSensor *sensor)
Triggers the sensor event by passing particle contact information.
SensorEvent(const agx::Name &name=agx::Name())
Default Constructor.
virtual void update(const agx::TimeStamp &t)
Used to update the sensor event each time step, if they have time dependent components.
virtual ~SensorEvent()
Destructor.
const agx::Name & getName() const
virtual void addNotification(EventSensor *sensor)
Function will be executed when the sensor that the operations is added to is added to a simulation.
int priority
The priority of the sensor event.
A specific type of sensor event that triggers a change in the simulation when activated by a contact.
virtual void addNotification(EventSensor *sensor) override
Function will be executed when the sensor that the operations is added to is added to a simulation.
virtual void triggerParticleEvent(const agx::TimeStamp &t, agxSDK::Simulation *simulation, agx::Physics::ParticleGeometryContactInstance contact, agx::Physics::ParticleData &particleData, agx::Physics::GeometryData &geometryData, EventSensor *sensor) override
Triggers the sensor event by passing particle contact information.
virtual void triggerEvent(const agx::TimeStamp &t, agxSDK::Simulation *simulation, agxCollide::GeometryContact *cd, EventSensor *sensor) override
Triggers the sensor event by passing contact information.
virtual void update(const agx::TimeStamp &t) override
Used to update the sensor operation each time step, if they have time dependent components.
SensorOperation(const agx::Name &name=agx::Name())
Default constructor.
virtual ~SensorOperation()
Destructor.
virtual 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...
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...
Representation of a name string.
Base class providing referencing counted objects.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...