00001 #ifndef LINEARPATH_H
00002 #define LINEARPATH_H
00003
00004 #include <string>
00005 #include <vector>
00006 #include "ConMath.h"
00007
00008
00009 #include "path.h"
00010 #include "config.h"
00011 #include "entity.h"
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 class LinearPath : public Path {
00023 public:
00024
00025
00026 void AddPoint(const Vector& v);
00027 Point Index(const int i) const;
00028 int NumPoints() const{ return samples->s.size();}
00029
00030
00031
00032
00033
00034 ConStruct toConstruct() const;
00035
00036 LinearPath();
00037
00038 LinearPath(const Path& path);
00039 LinearPath(const ConStruct& init);
00040 ~LinearPath();
00041
00042 };
00043 #endif