00001 /************************************************************** 00002 * Name: Aldo Alejandro Avila (aavila) 00003 * File: MapGenerator.H 00004 * Asgn: visuals 00005 * Date: Fri Apr 1 15:13:28 EST 2005 00006 **************************************************************/ 00007 00008 #ifndef MapGenerator_Header 00009 #define MapGenerator_Header 00010 00011 #include <string> 00012 #include <iostream> 00013 #include <qapplication.h> 00014 #include <qimage.h> 00015 #include <assert.h> 00016 00017 #include "TileMaker.H" 00018 #include "RouteMaker.H" 00019 #include "BQStructs.H" 00020 #include "DBInterface.H" 00021 00022 using namespace std; 00023 00024 00025 const int Zo1 = 1; 00026 const int Zo2 = 3; 00027 const int Zo3 = 6; 00028 const int Zo4 = 9; 00029 const int Zo5 = 12; 00030 const int Zo6 = 15; 00031 const int Zo7 = 18; 00032 const int Zo8 = 21; 00033 const int Zo9 = 24; 00034 const int Zo10 = 30; 00035 00037 class MapGenerator { 00038 00039 public: 00040 00041 MapGenerator(int argc,char** argv,int tiles,DBInterface* db); 00042 virtual ~MapGenerator(); 00044 string drawRoute(path_t* route, int zoom,int argc,char** argv,int sX, int sY,string routeID); 00045 00046 protected: 00047 00048 private: 00049 00051 RouteMaker* m_rMaker; 00053 DBInterface* m_db; 00054 00055 }; 00056 00057 #endif