ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/visitors/ZconsVisitor.hpp
Revision: 1625
Committed: Thu Oct 21 16:22:01 2004 UTC (19 years, 8 months ago) by tim
File size: 1114 byte(s)
Log Message:
replace old GebericData with  new GenericData

File Contents

# User Rev Content
1 gezelter 1490 #ifndef _ZCONS_VISITOR_H_
2     #define _ZCONS_VISITOR_H_
3    
4 tim 1492 #include "visitors/BaseVisitor.hpp"
5     #include "io/ZConsReader.hpp"
6 tim 1625 #include "visitors/AtomData.hpp"
7     #include "constraints/ZconsData.hpp"
8 gezelter 1490 enum ZConsState{zsFixed, zsMoving};
9 tim 1625 namespace oopse {
10    
11 gezelter 1490 class ZConsVisitor : public BaseVisitor{
12     public:
13    
14    
15     ZConsVisitor(SimInfo* info);
16     ~ZConsVisitor();
17    
18     virtual void visit(Atom* atom);
19     virtual void visit(DirectionalAtom* datom);
20     virtual void visit(RigidBody* rb);
21    
22     virtual void update();
23    
24     bool haveZconsMol() {return haveZcons;}
25    
26     virtual const string toString();
27     protected:
28     void internalVisit(StuntDouble* sd, const string& prefix);
29     bool isZconstraint(int index, string& prefix);
30     Molecule* findZconsMol(int index);
31     void getZconsPos(double time);
32    
33     private:
34     vector<Molecule*> zconsMol;
35     vector<double> zconsPos;
36     map<int, ZConsState> zconsState;
37     bool haveZcons;
38     double zconsTol;
39     double zconsTime;
40     string zconsFilename;
41     ZConsReader* zconsReader;
42     SimInfo* info;
43     };
44 tim 1625
45     }//namespace oopse
46 gezelter 1490 #endif // _ZCONS_VISITOR_H_
47    
48 tim 1625

Properties

Name Value
svn:executable *