Derived class of MolecularMechanicsSystem that knows how to model molmodel Compounds. More...
#include <CompoundSystem.h>
Public Member Functions | |
SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE (CompoundSystem, CompoundIndex) | |
Compound::Index type is an integer index into subcompounds of a Compound. | |
CompoundSystem () | |
default constructor | |
~CompoundSystem () | |
destructor | |
void | adoptCompound (Compound &child, const Transform &compoundTransform=Transform()) |
Install a new Compound into this system. | |
void | modelCompounds () |
Instantiate simbody MobilizedBodies representing the adopted Compounds. | |
size_t | getNumCompounds () const |
const Compound & | getCompound (CompoundIndex i) const |
Compound & | updCompound (CompoundIndex i) |
Derived class of MolecularMechanicsSystem that knows how to model molmodel Compounds.
CompoundSystem | ( | ) | [inline] |
default constructor
~CompoundSystem | ( | ) | [inline] |
destructor
Install a new Compound into this system.
We take over ownership of the Compound's representation from the given handle, leaving that handle as a reference to our new Compound. It is an error if the given handle wasn't the owner of the Compound.
child | Compound to be incorporated | |
compoundTransform | location and orientation of the Compound |
References PIMPLHandle< HANDLE, IMPL, PTR >::disown(), Compound::getTopLevelTransform(), Compound::setMultibodySystem(), and Compound::setTopLevelTransform().
Referenced by LigandDroplet::LigandDroplet(), Protein::Protein(), and WaterDroplet::WaterDroplet().
const Compound& getCompound | ( | CompoundIndex | i | ) | const [inline] |
i | integer index of Compound |
Referenced by PeriodicPdbWriter::handleEvent().
size_t getNumCompounds | ( | ) | const [inline] |
Referenced by PeriodicPdbWriter::handleEvent(), LigandDroplet::LigandDroplet(), and WaterDroplet::WaterDroplet().
void modelCompounds | ( | ) |
Instantiate simbody MobilizedBodies representing the adopted Compounds.
SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE | ( | CompoundSystem | , | |
CompoundIndex | ||||
) |
Compound::Index type is an integer index into subcompounds of a Compound.
It is NOT instrinsic to the subcompound, but represents the relationship between a subcompound and precisely one of its parent compounds.
Compound& updCompound | ( | CompoundIndex | i | ) | [inline] |
i | integer index of Compound |
Referenced by LigandDroplet::LigandDroplet(), and WaterDroplet::WaterDroplet().