#include <rdGeneralizedForce.h>
Inheritance diagram for rdGeneralizedForce:

Public Member Functions | |
| rdGeneralizedForce (int aQID=-1, int aNX=1, int aNY=0, int aNYP=0) | |
| Default constructor. | |
| rdGeneralizedForce (IDOM_Element *aElement, int aNX=1, int aNY=0, int aNYP=0) | |
| Construct the actuator from an XML element. | |
| rdGeneralizedForce (const rdGeneralizedForce &aGenForce) | |
| Copy constructor. | |
| virtual | ~rdGeneralizedForce () |
| Destructor. | |
| virtual rdActuator * | copy () const |
| Copy this actuator and return a pointer to the copy. | |
| virtual rdActuator * | copy (IDOM_Element *aElement) const |
| Copy this actuator and modify the copy so that it is consistent with a specified XML element node. | |
| rdGeneralizedForce & | operator= (const rdGeneralizedForce &aGenForce) |
| Assignment operator. | |
| virtual void | setControls (const double aX[]) |
| Set the current values of the controls. | |
| virtual void | getControls (double rX[]) const |
| Get the current values of the controls. | |
| void | setQID (int aQID) |
| Set the generalized coordinate to which the generalized force is applied. | |
| int | getQID () const |
| Get the ID of the generalized coordinate to which the generalized force is applied. | |
| virtual void | apply () |
| Apply the actuator force to BodyA and BodyB. | |
| virtual void | computeActuation () |
| Compute all quantities necessary for applying the actuator force to the model. | |
| virtual bool | check () const |
| Check that this generalized force actuator is valid. | |
| virtual bool | isQIDValid () const |
| Is the. | |
| virtual void | updateObject (bool aDeep=true) |
| Update this object based on its XML node. | |
| virtual void | updateNode (bool aDeep=true) |
| Update the XML node representing this object. | |
| virtual void | generateNode (IDOM_Element *aParent) |
| Generate an XML node representing this object. | |
| void | updateData () |
| Update the member data of this object based on its XML node. | |
Static Public Attributes | |
| const char | PROP_QID [] = "QID" |
Protected Attributes | |
| int | _qID |
| Coordinate to which the generalized force is applied. | |
| double * | _utmp |
| Temporary work array for holding generalized speeds. | |
Private Member Functions | |
| void | setNull () |
| Set the data members of this actuator to their null values. | |
This actuator has no states; the control is simply the force to be applied to the model.
|
||||||||||||||||||||
|
Construct the actuator from an XML element.
|
|
|
Copy constructor.
|
|
|
Check that this generalized force actuator is valid.
Reimplemented from rdActuator. |
|
|
Copy this actuator and modify the copy so that it is consistent with a specified XML element node. The copy is constructed by first using rdForce::rdForce(IDOM_Element*,int,int) in order to establish the relationship of the rdForce object with the XML node. Then, the assignment operator is used to set all data members of the copy to the values of this rdForce object. Finally, the data members of the copy are updated using rdForce::updateObject().
Implements rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Copy this actuator and return a pointer to the copy. The copy constructor for this class is used.
Implements rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Generate an XML node representing this object.
Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Get the current values of the controls.
Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Get the ID of the generalized coordinate to which the generalized force is applied.
|
|
|
Assignment operator.
|
|
|
Set the current values of the controls.
Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Set the generalized coordinate to which the generalized force is applied.
|
|
|
Update the member data of this object based on its XML node. Member objects (children) are not updated. Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Update the XML node representing this object.
Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
|
|
Update this object based on its XML node.
Reimplemented from rdActuator. Reimplemented in rdGeneralizedForceAtv, and suSpringGeneralizedForce. |
1.3