proj home

Files   Classes   Functions   Hierarchy  

pathlineseg.h

Go to the documentation of this file.
00001 #ifndef PATHLINESEG_H
00002 #define PATHLINESEG_H
00003 
00004 #include <vector>
00005 using namespace std;
00006 
00007 #include <funcstate.h>
00008 #include <point.h>
00009 #include <typedefs.h>
00010 
00014 class pathlineseg
00015 {
00016 public:
00017 
00018   typedef point2<double> pt2;
00019   typedef point2<double> const pt2c;
00020 
00022   vector< pt2 > pts;
00023 
00025   vector<uint> control;
00027   vector<uint> segments;
00029   pathlineseg();
00030 
00032   operator stringc const (); 
00034   void serializeInverse(stringc & str);
00035 
00037   doublec dist01();
00039   doublec dist02();
00040 
00041 };
00042 
00043 // x1 y1 .... xn yn   n 2D points.
00044 
00049 class pathlinesegvec : public funcstate<double> 
00050 {
00051 protected:
00052   typedef point2<double> pt2;
00053 public:
00054 
00056   uint distfn;
00057 
00058   doublec dist01();
00059   doublec dist02();
00060 
00062   pathlineseg& ps;
00063 
00065   doublec operator()();
00066 
00068   void read();
00069 
00071   void write();
00072 
00074   pathlinesegvec(pathlineseg& ps_);
00075 
00076 private:
00078   vector< pt2 >& pts;
00080   vector<uint>& control;
00082   vector<uint>& segments;
00083 };
00084 
00085 
00086 
00087 
00088 #endif
00089 

Generated on Fri Mar 4 00:49:25 2011 for Chelton Evans Source by  doxygen 1.5.8