00001 #ifndef __PathTrackingFMM__ 00002 #define __PathTrackingFMM__ 00003 00004 00005 00034 #include "ImagePotential.hpp" 00035 00036 #include "SimilarPixelFMM.hpp" 00037 00038 class PathTrackingFMM : public SimilarPixelFMM 00039 { 00040 private: 00041 00042 int x1, y1; // end point 00043 00044 public: 00045 00046 PathTrackingFMM():SimilarPixelFMM(){ x1= 1; y1= 1; } 00047 virtual ~PathTrackingFMM(){ } 00048 00049 virtual void setTerminator(int x, int y){ x1= x; y1= y; potential->setPoint1(x, y); } 00050 00052 virtual bool iterate(); 00053 virtual bool iterate(int* x, int* y){return DistanceFMM::iterate(x,y);} 00054 virtual bool iterate(int* x, int* y, double* rate){return DistanceFMM::iterate(x,y,rate);} 00055 00056 00057 virtual void report(){} 00058 }; 00059 00060 #endif