| 1 |
chuckv |
678 |
#ifndef __MOLOCATOR_H__ |
| 2 |
|
|
#define __MOLOCATOR_H__ |
| 3 |
|
|
|
| 4 |
|
|
#include "Atom.hpp" |
| 5 |
|
|
#include "MoleculeStamp.hpp" |
| 6 |
|
|
#include "SimState.hpp" |
| 7 |
|
|
|
| 8 |
|
|
|
| 9 |
|
|
class MoLocator{ |
| 10 |
|
|
|
| 11 |
|
|
public: |
| 12 |
|
|
|
| 13 |
|
|
MoLocator( MoleculeStamp* theStamp ); |
| 14 |
|
|
~MoLocator(); |
| 15 |
|
|
|
| 16 |
|
|
void placeMol( double pos[3], double ornt[3][3], Atom** atomArray, |
| 17 |
|
|
int atomIndex ); |
| 18 |
|
|
double getMaxLength( void ) { return maxLength; } |
| 19 |
|
|
|
| 20 |
|
|
void setConfig( SimState* theConfig ); |
| 21 |
|
|
|
| 22 |
|
|
private: |
| 23 |
|
|
|
| 24 |
|
|
void calcRefCoords( void ); |
| 25 |
|
|
void rotMe( double r[3], double A[3][3] ); |
| 26 |
|
|
|
| 27 |
|
|
MoleculeStamp* myStamp; |
| 28 |
|
|
double *myCoords; |
| 29 |
|
|
double maxLength; |
| 30 |
|
|
int nAtoms; |
| 31 |
|
|
|
| 32 |
|
|
SimState* myConfig; |
| 33 |
|
|
bool haveConfig; |
| 34 |
|
|
}; |
| 35 |
|
|
|
| 36 |
|
|
|
| 37 |
|
|
#endif |