21 #ifndef AGXCONTROL_ACTION_H
22 #define AGXCONTROL_ACTION_H
24 #include <agx/config.h>
187 ActionImplementation* getImplementation();
188 const ActionImplementation* getImplementation()
const;
203 friend class agxControl::Operation;
209 void swapImplementation(Action* other);
215 static const agx::String& getSecondaryConstraintActionId();
216 static const agx::String& getSetPositionFromCurrentConstraintActionId();
220 static const agx::String& getParticleEmitterActionId();
222 static const agx::String& getEventSensorActionId();
227 static const agx::String& getFlowRateOperationId();
228 static const agx::String& getComplianceOperationId();
233 static const agx::String& getRangeMinOperationId();
234 static const agx::String& getRangeMaxOperationId();
236 static const agx::String& getForceRangeMinOperationId();
237 static const agx::String& getForceRangeMaxOperationId();
239 static const agx::String& getPositionOperationId();
240 static const agx::String& getVelocityOperationId();
249 ActionImplementationRef m_implementation;
269 ConstraintAction() {}
273 virtual ~ConstraintAction();
288 class AGXPHYSICS_EXPORT SetComplianceConstraintAction :
public agxControl::ConstraintAction
295 Callback2ActionImplementation<agx::Real, int>* getTypedImplementation();
296 const Callback2ActionImplementation<agx::Real, int>* getTypedImplementation()
const;
299 SetComplianceConstraintAction() {}
302 virtual ~SetComplianceConstraintAction() {}
306 SetComplianceConstraintAction(
agx::Constraint* constraint,
const agx::String& operation, ActionImplementation* implementation);
316 class AGXPHYSICS_EXPORT SetDampingConstraintAction :
public agxControl::ConstraintAction
323 Callback2ActionImplementation<agx::Real, int>* getTypedImplementation();
324 const Callback2ActionImplementation<agx::Real, int>* getTypedImplementation()
const;
327 SetDampingConstraintAction() {}
330 virtual ~SetDampingConstraintAction() {}
343 class AGXPHYSICS_EXPORT SetEnableConstraintAction :
public agxControl::ConstraintAction
346 bool getEnabling()
const;
347 void setEnabling(
bool enable);
349 Callback1ActionImplementation<bool>* getTypedImplementation();
350 const Callback1ActionImplementation<bool>* getTypedImplementation()
const;
353 SetEnableConstraintAction() {}
356 virtual ~SetEnableConstraintAction();
380 SecondaryConstraintAction() {}
384 ~SecondaryConstraintAction();
410 void restoreEnableActionImplementation();
411 void restoreSpeedOperation();
412 void restoreRangeOperation();
413 void restoreRangeMinOperation();
414 void restoreRangeMaxOperation();
415 void restoreForceRangeMinOperation();
416 void restoreForceRangeMaxOperation();
417 void restoreComplianceOperation();
418 void restoreDampingOperation();
419 void restorePositionOperation();
464 ParticleEmitterAction();
506 EventSensor* getEventSensor();
515 EventSensorAction(EventSensor* sensor,
const agx::String& operation, ActionImplementation* implementation);
518 EventSensor * m_sensor;
530 CallbackAction(ActionImplementation* implementation);
538 class AGXPHYSICS_EXPORT SetLockPositionToCurrentConstraintAction :
public agxControl::SecondaryConstraintAction
541 CallbackActionImplementation* getTypedImplementation();
542 const CallbackActionImplementation* getTypedImplementation()
const;
545 SetLockPositionToCurrentConstraintAction();
549 virtual ~SetLockPositionToCurrentConstraintAction();