--- branches/new_design/OOPSE-4/src/primitives/RigidBody.hpp 2004/11/01 20:15:58 1692 +++ branches/new_design/OOPSE-4/src/primitives/RigidBody.hpp 2004/11/30 20:50:47 1805 @@ -37,6 +37,7 @@ namespace oopse{ #include "primitives/StuntDouble.hpp" #include "primitives/DirectionalAtom.hpp" +#include "types/AtomStamp.hpp" namespace oopse{ class RigidBody : public StuntDouble { public: @@ -80,7 +81,7 @@ namespace oopse{ virtual void accept(BaseVisitor* v); - void addAtom(Atom* atom); + void addAtom(Atom* at, AtomStamp* ats); /** calculate the reference coordinates */ void calcRefCoords(); @@ -91,9 +92,22 @@ namespace oopse{ /** update the positions of atoms belong to this rigidbody */ void updateAtoms(); + Atom* beginAtom(std::vector::iterator& i); + + Atom* nextAtom(std::vector::iterator& i); + + std::vector::iterator getBeginAtomIter() { + return atoms_.begin(); + } + + std::vector::iterator getEndAtomIter() { + return atoms_.end(); + } + /** * Returns the atoms of this rigid body * @return the atoms of this rigid body in a vector + * @deprecate */ std::vector getAtoms() { return atoms_;