5 |
|
#include "io/ZConsReader.hpp" |
6 |
|
#include "visitors/AtomData.hpp" |
7 |
|
#include "constraints/ZconsData.hpp" |
8 |
+ |
|
9 |
+ |
#include "primitives/RigidBody.hpp" |
10 |
+ |
|
11 |
|
enum ZConsState{zsFixed, zsMoving}; |
12 |
+ |
|
13 |
|
namespace oopse { |
14 |
|
|
15 |
|
class ZConsVisitor : public BaseVisitor{ |
27 |
|
|
28 |
|
bool haveZconsMol() {return haveZcons;} |
29 |
|
|
30 |
< |
virtual const string toString(); |
30 |
> |
virtual const std::string toString(); |
31 |
|
protected: |
32 |
< |
void internalVisit(StuntDouble* sd, const string& prefix); |
33 |
< |
bool isZconstraint(int index, string& prefix); |
30 |
< |
Molecule* findZconsMol(int index); |
32 |
> |
void internalVisit(StuntDouble* sd, const std::string& prefix); |
33 |
> |
bool isZconstraint(int index, std::string& prefix); |
34 |
|
void getZconsPos(double time); |
35 |
|
|
36 |
|
private: |
37 |
< |
vector<Molecule*> zconsMol; |
38 |
< |
vector<double> zconsPos; |
39 |
< |
map<int, ZConsState> zconsState; |
37 |
> |
std::vector<Molecule*> zconsMol; |
38 |
> |
std::vector<double> zconsPos; |
39 |
> |
std::map<int, ZConsState> zconsState; |
40 |
|
bool haveZcons; |
41 |
|
double zconsTol; |
42 |
|
double zconsTime; |
43 |
< |
string zconsFilename; |
43 |
> |
std::string zconsFilename; |
44 |
|
ZConsReader* zconsReader; |
45 |
|
SimInfo* info; |
46 |
|
}; |