ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/visitors/ZconsVisitor.hpp
Revision: 1818
Committed: Wed Dec 1 20:05:49 2004 UTC (19 years, 9 months ago) by tim
File size: 1149 byte(s)
Log Message:
visitors get built

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 tim 1818
9     #include "primitives/RigidBody.hpp"
10    
11 gezelter 1490 enum ZConsState{zsFixed, zsMoving};
12 tim 1818
13 tim 1625 namespace oopse {
14    
15 gezelter 1490 class ZConsVisitor : public BaseVisitor{
16     public:
17    
18    
19     ZConsVisitor(SimInfo* info);
20     ~ZConsVisitor();
21    
22     virtual void visit(Atom* atom);
23     virtual void visit(DirectionalAtom* datom);
24     virtual void visit(RigidBody* rb);
25    
26     virtual void update();
27    
28     bool haveZconsMol() {return haveZcons;}
29    
30 tim 1818 virtual const std::string toString();
31 gezelter 1490 protected:
32 tim 1818 void internalVisit(StuntDouble* sd, const std::string& prefix);
33     bool isZconstraint(int index, std::string& prefix);
34 gezelter 1490 void getZconsPos(double time);
35    
36     private:
37 tim 1818 std::vector<Molecule*> zconsMol;
38     std::vector<double> zconsPos;
39     std::map<int, ZConsState> zconsState;
40 gezelter 1490 bool haveZcons;
41     double zconsTol;
42     double zconsTime;
43 tim 1818 std::string zconsFilename;
44 gezelter 1490 ZConsReader* zconsReader;
45     SimInfo* info;
46     };
47 tim 1625
48     }//namespace oopse
49 gezelter 1490 #endif // _ZCONS_VISITOR_H_
50    
51 tim 1625

Properties

Name Value
svn:executable *