Simbody
3.5
|
Public declaration of internals for ForceSubsystem extension. More...
Public Member Functions | |
Guts (const String &name, const String &version) | |
This constructor is for use in the constructors of derived Subsystems. | |
virtual | ~Guts () |
Destructor is virtual to permit cleanup of derived classes. | |
const MultibodySystem & | getMultibodySystem () const |
virtual Real | calcPotentialEnergy (const State &state) const =0 |
Get this subsystem's contribution to the potential energy. | |
SimTK_DOWNCAST (ForceSubsystem::Guts, Subsystem::Guts) |
Public declaration of internals for ForceSubsystem extension.
SimTK::ForceSubsystem::Guts::Guts | ( | const String & | name, |
const String & | version | ||
) | [inline] |
This constructor is for use in the constructors of derived Subsystems.
This serves as a default constructor since both arguments have defaults. The name and version strings are not interpreted by Simbody in any way; they are simply stored and returned as given.
Reimplemented from SimTK::Subsystem::Guts.
virtual SimTK::ForceSubsystem::Guts::~Guts | ( | ) | [inline, virtual] |
Destructor is virtual to permit cleanup of derived classes.
Reimplemented from SimTK::Subsystem::Guts.
const MultibodySystem& SimTK::ForceSubsystem::Guts::getMultibodySystem | ( | ) | const [inline] |
virtual Real SimTK::ForceSubsystem::Guts::calcPotentialEnergy | ( | const State & | state | ) | const [pure virtual] |
Get this subsystem's contribution to the potential energy.
The state must be at Dynamics stage or later.