Molmodel
Classes | Public Types | Public Member Functions | Protected Member Functions

SimTK::AtomSubsystem Class Reference

#include <AtomSubsystem.h>

Inheritance diagram for SimTK::AtomSubsystem:

List of all members.

Classes

class  Atom
class  AtomsByBody
class  Bond
class  PairIterator

Public Types

enum  NeighborAlgorithm { N_SQUARED, VOXEL_HASH, AUTOMATIC }
typedef SimTK::units::md::mass_t mass_t
typedef SimTK::units::md::length_t length_t
typedef
SimTK::units::md::location_t 
location_t
typedef SimTK::units::md::area_t area_t
typedef std::vector< AtomIndex > AtomIndexList
typedef std::vector< AtomsByBodyAtomicBodies

Public Member Functions

 SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE (AtomSubsystem, AtomIndex)
 SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE (AtomSubsystem, BodyAtomIndex)
 SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE (AtomSubsystem, LocalBodyIndex)
 SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE (AtomSubsystem, BondIndex)
PairIterator pairBegin (const State &state, length_t cutoff=0.0 *nanometers, NeighborAlgorithm algorithm=AUTOMATIC) const
PairIterator pairEnd () const
 AtomSubsystem (SimTK::MultibodySystem &system)
MultibodySystemupdMultibodySystem ()
const MultibodySystemgetMultibodySystem () const
AtomSubsystemsetAtomMobilizedBodyIndex (AtomIndex atomIx, MobilizedBodyIndex bodyIx)
const AtomIndexListgetBodyAtoms (LocalBodyIndex bodyIx) const
const AtomIndexListgetBodyAtoms (SimTK::MobilizedBodyIndex bodyIx) const
AtomIndex addAtom (mass_t mass=0.0 *daltons)
size_t getNumAtoms () const
const Vec3getAtomLocationInGround (const SimTK::State &state, AtomIndex atom) const
const Vec3getAtomVelocityInGround (const SimTK::State &state, AtomIndex atom) const
const Vec3getAtomBodyStationInGround (const SimTK::State &state, AtomIndex atom) const
const AtomgetAtom (AtomIndex ix) const
AtomupdAtom (AtomIndex ix)
BondIndex addBond (AtomIndex a1, AtomIndex a2)
size_t getNumBonds () const
const BondgetBond (BondIndex ix) const
BondupdBond (BondIndex ix)
size_t getNumBodies () const
void addBodyExclusion (MobilizedBodyIndex bodyIx1, MobilizedBodyIndex bodyIx2)
SimbodyMatterSubsystemupdMatterSubsystem ()

Protected Member Functions

const Impl & getRep () const
Impl & updRep ()

Member Typedef Documentation

typedef std::vector<AtomIndex> SimTK::AtomSubsystem::AtomIndexList

Member Enumeration Documentation

Enumerator:
N_SQUARED 
VOXEL_HASH 
AUTOMATIC 

Constructor & Destructor Documentation

SimTK::AtomSubsystem::AtomSubsystem ( SimTK::MultibodySystem system) [explicit]

Member Function Documentation

const Impl& SimTK::AtomSubsystem::getRep ( ) const [protected]
Impl& SimTK::AtomSubsystem::updRep ( ) [protected]
SimTK::AtomSubsystem::SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE ( AtomSubsystem  ,
AtomIndex   
)
SimTK::AtomSubsystem::SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE ( AtomSubsystem  ,
BodyAtomIndex   
)
SimTK::AtomSubsystem::SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE ( AtomSubsystem  ,
LocalBodyIndex   
)
SimTK::AtomSubsystem::SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE ( AtomSubsystem  ,
BondIndex   
)
PairIterator SimTK::AtomSubsystem::pairBegin ( const State state,
length_t  cutoff = 0.0 *nanometers,
NeighborAlgorithm  algorithm = AUTOMATIC 
) const
PairIterator SimTK::AtomSubsystem::pairEnd ( ) const
MultibodySystem& SimTK::AtomSubsystem::updMultibodySystem ( )
const MultibodySystem& SimTK::AtomSubsystem::getMultibodySystem ( ) const
AtomSubsystem& SimTK::AtomSubsystem::setAtomMobilizedBodyIndex ( AtomIndex  atomIx,
MobilizedBodyIndex  bodyIx 
)
const AtomIndexList& SimTK::AtomSubsystem::getBodyAtoms ( LocalBodyIndex  bodyIx) const
const AtomIndexList& SimTK::AtomSubsystem::getBodyAtoms ( SimTK::MobilizedBodyIndex  bodyIx) const
AtomIndex SimTK::AtomSubsystem::addAtom ( mass_t  mass = 0.0 *daltons)
size_t SimTK::AtomSubsystem::getNumAtoms ( ) const
const Vec3& SimTK::AtomSubsystem::getAtomLocationInGround ( const SimTK::State state,
AtomIndex  atom 
) const
const Vec3& SimTK::AtomSubsystem::getAtomVelocityInGround ( const SimTK::State state,
AtomIndex  atom 
) const
const Vec3& SimTK::AtomSubsystem::getAtomBodyStationInGround ( const SimTK::State state,
AtomIndex  atom 
) const
const Atom& SimTK::AtomSubsystem::getAtom ( AtomIndex  ix) const
Atom& SimTK::AtomSubsystem::updAtom ( AtomIndex  ix)
BondIndex SimTK::AtomSubsystem::addBond ( AtomIndex  a1,
AtomIndex  a2 
)
size_t SimTK::AtomSubsystem::getNumBonds ( ) const
const Bond& SimTK::AtomSubsystem::getBond ( BondIndex  ix) const
Bond& SimTK::AtomSubsystem::updBond ( BondIndex  ix)
size_t SimTK::AtomSubsystem::getNumBodies ( ) const
void SimTK::AtomSubsystem::addBodyExclusion ( MobilizedBodyIndex  bodyIx1,
MobilizedBodyIndex  bodyIx2 
)
SimbodyMatterSubsystem& SimTK::AtomSubsystem::updMatterSubsystem ( )

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines