ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/primitives/Molecule.hpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/primitives/Molecule.hpp (file contents):
Revision 1943 by tim, Fri Jan 14 01:56:04 2005 UTC vs.
Revision 1989 by tim, Mon Feb 7 22:39:19 2005 UTC

# Line 186 | Line 186 | class Molecule {
186              return atoms_[i];
187          }
188  
189 +        RigidBody* getRigidBodyAt(unsigned int i) {
190 +            assert(i < rigidBodies_.size());
191 +            return rigidBodies_[i];
192 +        }
193 +        
194          Atom* beginAtom(std::vector<Atom*>::iterator& i) {
195              i = atoms_.begin();
196              return (i == atoms_.end()) ? NULL : *i;
# Line 292 | Line 297 | class Molecule {
297          /** Returns the velocity of center of mass of this molecule */
298          Vector3d getComVel();
299  
300 +        std::string getMoleculeName() {
301 +            return moleculeName_;
302 +        }
303 +        
304          friend std::ostream& operator <<(std::ostream& o, Molecule& mol);
305          
306      private:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines