ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/StuntDouble.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/StuntDouble.hpp (file contents):
Revision 1108 by tim, Wed Apr 14 15:37:41 2004 UTC vs.
Revision 1118 by tim, Mon Apr 19 03:52:27 2004 UTC

# Line 1 | Line 1
1   #ifndef __STUNTDOUBLE_HPP__
2   #define __STUNTDOUBLE_HPP__
3  
4 + #include <map>
5 + #include "GenericData.hpp"
6 +
7   #define OT_ATOM 0
8   #define OT_DATOM 1
9   #define OT_RIGIDBODY 2
10  
11 + using namespace std;
12 + class BaseVisitor;
13 +
14   class StuntDouble {
15   public:
16    
# Line 60 | Line 66 | class StuntDouble {
66    virtual void   setEuler(double phi, double theta, double psi);
67    virtual void   getEulerAngles(double eulers[3]);
68  
69 +  virtual bool isLinear() {return false;}
70 +  virtual int linearAxis() {return -1;}
71 +
72 +
73 +  virtual void accept(BaseVisitor* v) = 0;
74 +
75 +  void addProperty(GenericData* data);
76 +  void removeProperty(const string& propName);
77 +  GenericData* getProperty(const string& propName);
78 +  
79   protected:
80    StuntDouble(){}
81    int objType;
82 +
83 +  map<string, GenericData*> properties;
84   };
85  
86   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines