| 26 |
|
public: |
| 27 |
|
|
| 28 |
|
RigidBody(); |
| 29 |
+ |
//RigidBody(const RigidBody& rb); |
| 30 |
+ |
|
| 31 |
|
virtual ~RigidBody(); |
| 32 |
|
|
| 33 |
|
void addAtom(Atom* at, AtomStamp* ats); |
| 39 |
|
void setVel( double theV[3] ); |
| 40 |
|
|
| 41 |
|
void getFrc( double theF[3] ); |
| 42 |
+ |
void setFrc(double theF[3] ); |
| 43 |
|
void addFrc( double theF[3] ); |
| 44 |
|
void zeroForces(); |
| 45 |
|
|
| 63 |
|
virtual char* getType() { return rbName;} |
| 64 |
|
|
| 65 |
|
void getTrq( double theT[3] ); |
| 66 |
+ |
void setTrq(double theT[3]); |
| 67 |
|
void addTrq( double theT[3] ); |
| 68 |
|
|
| 69 |
|
void getI( double the_I[3][3] ); |
| 98 |
|
virtual void accept(BaseVisitor* v); |
| 99 |
|
|
| 100 |
|
vector<Atom*> getAtoms() { return myAtoms;} |
| 101 |
< |
|
| 101 |
> |
int getNumAtoms() {return myAtoms.size();} |
| 102 |
> |
|
| 103 |
> |
void getAtomPos(double theP[3], int index); |
| 104 |
> |
void getAtomVel(double theV[3], int index); |
| 105 |
> |
void getAtomRefCoor(double pos[3], int index); |
| 106 |
|
protected: |
| 107 |
|
|
| 108 |
|
double mass; // the total mass |