21 #ifndef AGXCONTROL_ACTION_H 22 #define AGXCONTROL_ACTION_H 24 #include <agx/config.h> 184 ActionImplementation* getImplementation();
185 const ActionImplementation* getImplementation()
const;
200 friend class agxControl::Operation;
206 void swapImplementation(Action* other);
212 static const agx::String& getSecondaryConstraintActionId();
213 static const agx::String& getSetPositionFromCurrentConstraintActionId();
217 static const agx::String& getParticleEmitterActionId();
218 static const agx::String& getEventSensorActionId();
223 static const agx::String& getFlowRateOperationId();
224 static const agx::String& getComplianceOperationId();
229 static const agx::String& getRangeMinOperationId();
230 static const agx::String& getRangeMaxOperationId();
232 static const agx::String& getForceRangeMinOperationId();
233 static const agx::String& getForceRangeMaxOperationId();
235 static const agx::String& getPositionOperationId();
236 static const agx::String& getVelocityOperationId();
245 ActionImplementationRef m_implementation;
265 ConstraintAction() {}
269 virtual ~ConstraintAction();
284 class AGXPHYSICS_EXPORT SetComplianceConstraintAction :
public agxControl::ConstraintAction
291 Callback2ActionImplementation<agx::Real, int>* getTypedImplementation();
292 const Callback2ActionImplementation<agx::Real, int>* getTypedImplementation()
const;
295 SetComplianceConstraintAction() {}
298 virtual ~SetComplianceConstraintAction() {}
302 SetComplianceConstraintAction(
agx::Constraint* constraint,
const agx::String& operation, ActionImplementation* implementation);
312 class AGXPHYSICS_EXPORT SetDampingConstraintAction :
public agxControl::ConstraintAction
319 Callback2ActionImplementation<agx::Real, int>* getTypedImplementation();
320 const Callback2ActionImplementation<agx::Real, int>* getTypedImplementation()
const;
323 SetDampingConstraintAction() {}
326 virtual ~SetDampingConstraintAction() {}
339 class AGXPHYSICS_EXPORT SetEnableConstraintAction :
public agxControl::ConstraintAction
342 bool getEnabling()
const;
343 void setEnabling(
bool enable);
345 Callback1ActionImplementation<bool>* getTypedImplementation();
346 const Callback1ActionImplementation<bool>* getTypedImplementation()
const;
349 SetEnableConstraintAction() {}
352 virtual ~SetEnableConstraintAction();
376 SecondaryConstraintAction() {}
380 ~SecondaryConstraintAction();
406 void restoreEnableActionImplementation();
407 void restoreSpeedOperation();
408 void restoreRangeOperation();
409 void restoreRangeMinOperation();
410 void restoreRangeMaxOperation();
411 void restoreForceRangeMinOperation();
412 void restoreForceRangeMaxOperation();
413 void restoreComplianceOperation();
414 void restoreDampingOperation();
415 void restorePositionOperation();
460 ParticleEmitterAction();
479 EventSensor* getEventSensor();
488 EventSensorAction(EventSensor* sensor,
const agx::String& operation, ActionImplementation* implementation);
491 EventSensor * m_sensor;
503 CallbackAction(ActionImplementation* implementation);
511 class AGXPHYSICS_EXPORT SetLockPositionToCurrentConstraintAction :
public agxControl::SecondaryConstraintAction
514 CallbackActionImplementation* getTypedImplementation();
515 const CallbackActionImplementation* getTypedImplementation()
const;
518 SetLockPositionToCurrentConstraintAction();
522 virtual ~SetLockPositionToCurrentConstraintAction();
AGXFMI_EXPORT InputVariable_Real * setMotorMaxForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockMinForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockPosition(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeCompliance(agx::Constraint1DOF *constraint)
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
#define AGXPHYSICS_EXPORT
The base class for a constraint.
#define AGX_DECLARE_POINTER_TYPES(type)
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
AGXFMI_EXPORT InputVariable_Real * setRangeMinRange(agx::Constraint1DOF *constraint)
This is a sensor class that can be attached to an geometry in the simulation.
AGXFMI_EXPORT InputVariable_Real * setMotorCompliance(agx::Constraint1DOF *constraint)
Base class providing referencing counted objects.
DOF
Specifies a selected degree of freedom.
AGXFMI_EXPORT InputVariable_Real * setRangeMaxForceRange(agx::Constraint1DOF *constraint)
The rigid body class, combining a geometric model and a frame of reference.
This file defines a set of operations used internally by the measurement sensor to calculate differen...
AGXFMI_EXPORT InputVariable_Real * setMotorSpeed(agx::Constraint1DOF *constraint)
AGXTERRAIN_EXPORT agx::Real & currentTime()
AGXFMI_EXPORT InputVariable_Real * setLockCompliance(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setRangeMinForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Spawns new particles inside a given volume.
AGX_DECLARE_VECTOR_TYPES(EventSensor)
AGXFMI_EXPORT InputVariable_Real * setRangeMaxRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setLockMaxForceRange(agx::Constraint1DOF *constraint)
AGXFMI_EXPORT InputVariable_Real * setMotorMinForceRange(agx::Constraint1DOF *constraint)