API
4.0
For C++ developers
|
This acts as an adapter to allow a Force or Actuator to be used as a SimTK::Force. More...
Public Member Functions | |
ForceAdapter (const Force &force) | |
void | calcForce (const SimTK::State &state, SimTK::Vector_< SimTK::SpatialVec > &bodyForces, SimTK::Vector_< SimTK::Vec3 > &particleForces, SimTK::Vector &mobilityForces) const override |
SimTK::Real | calcPotentialEnergy (const SimTK::State &state) const override |
bool | shouldBeParallelized () const |
Public Member Functions inherited from SimTK::Force::Custom::Implementation | |
virtual | ~Implementation () |
virtual bool | dependsOnlyOnPositions () const |
virtual bool | shouldBeParallelIfPossible () const |
virtual void | calcDecorativeGeometryAndAppend (const State &state, Stage stage, Array_< DecorativeGeometry > &geometry) const |
virtual void | realizeTopology (State &state) const |
virtual void | realizeModel (State &state) const |
virtual void | realizeInstance (const State &state) const |
virtual void | realizeTime (const State &state) const |
virtual void | realizePosition (const State &state) const |
virtual void | realizeVelocity (const State &state) const |
virtual void | realizeDynamics (const State &state) const |
virtual void | realizeAcceleration (const State &state) const |
virtual void | realizeReport (const State &state) const |
virtual void | realizeTopology (State &state) const |
virtual void | realizeModel (State &state) const |
virtual void | realizeInstance (const State &state) const |
virtual void | realizeTime (const State &state) const |
virtual void | realizePosition (const State &state) const |
virtual void | realizeVelocity (const State &state) const |
virtual void | realizeDynamics (const State &state) const |
virtual void | realizeAcceleration (const State &state) const |
virtual void | realizeReport (const State &state) const |
This acts as an adapter to allow a Force or Actuator to be used as a SimTK::Force.
OpenSim::ForceAdapter::ForceAdapter | ( | const Force & | force | ) |
|
overridevirtual |
Implements SimTK::Force::Custom::Implementation.
|
overridevirtual |
Implements SimTK::Force::Custom::Implementation.
bool OpenSim::ForceAdapter::shouldBeParallelized | ( | ) | const |