ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/primitives/RigidBody.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/primitives/RigidBody.hpp (file contents):
Revision 1692 by tim, Mon Nov 1 20:15:58 2004 UTC vs.
Revision 1805 by tim, Tue Nov 30 20:50:47 2004 UTC

# Line 37 | Line 37 | namespace oopse{
37  
38   #include "primitives/StuntDouble.hpp"
39   #include "primitives/DirectionalAtom.hpp"
40 + #include "types/AtomStamp.hpp"
41   namespace oopse{
42      class RigidBody : public StuntDouble {
43          public:
# Line 80 | Line 81 | namespace oopse{
81  
82              virtual void accept(BaseVisitor* v);
83  
84 <            void addAtom(Atom* atom);
84 >            void addAtom(Atom* at, AtomStamp* ats);
85  
86              /** calculate the reference coordinates */
87              void calcRefCoords();
# Line 91 | Line 92 | namespace oopse{
92              /** update the positions of atoms belong to this rigidbody */
93              void updateAtoms();
94  
95 +            Atom* beginAtom(std::vector<Atom*>::iterator& i);
96 +
97 +            Atom* nextAtom(std::vector<Atom*>::iterator& i);
98 +
99 +            std::vector<Atom*>::iterator getBeginAtomIter() {
100 +                return atoms_.begin();
101 +            }
102 +            
103 +            std::vector<Atom*>::iterator getEndAtomIter() {
104 +                return atoms_.end();
105 +            }
106 +
107              /**
108               * Returns the atoms of this rigid body
109               * @return the atoms of this rigid body in a vector
110 +             * @deprecate
111               */          
112              std::vector<Atom*> getAtoms() {
113                  return atoms_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines