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();
#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.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
DOF
Specifies a selected degree of freedom.
The base class for a constraint.
Spawns new bodys inside a given volume.
Spawns new particles inside a given volume given to the Emitter.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
AGXFMI_EXPORT InputVariable_Real * setLockMaxForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
AGXFMI_EXPORT InputVariable_Real * setMotorCompliance(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeCompliance(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeMinRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setMotorMaxForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setMotorSpeed(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockMinForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockPosition(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeMaxForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockCompliance(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeMinForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeMaxRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setMotorMinForceRange(agx::Constraint1DOF *constraint)
AGXTERRAIN_EXPORT agx::Real & currentTime()