00001 #ifndef _WINC_MAPPLOT
00002 #define _WINC_MAPPLOT
00003
00004 #include <WXP/Date.h>
00005 #include <WXP/Drawing.h>
00006 #include <WXP/Plot.h>
00007 #include <WXP/Points.h>
00008 #include <WXP/String.h>
00009
00010 namespace WXP {
00011 class MapPlot : public Drawing {
00012 int sync;
00013 int def;
00014 int type;
00015 int in_region;
00016 int fill_cont;
00017 int fill;
00018 int index;
00019 float la, lo;
00020 String color_table;
00021 String color;
00022 String color_line;
00023 String filenames;
00024
00025 int process( Plot &plot, const char *str, int flag );
00026 public:
00027 MapPlot();
00028 MapPlot( const char *param );
00029 ~MapPlot();
00030 int init();
00031 int getDomain (Domain &domain);
00032 int setMapFiles( const char *str );
00033 int setFile();
00034 int setInput( const char *str );
00035 int setNameConv( const char *name );
00036 int setFilename();
00037 int setFilename( const char *name );
00038 int setFilename( Date &date );
00039 int setFilename( Date &date, const char *param );
00040 inline int setForeTime( const char *fore ){ return 1; };
00041 int getDate( Date &date );
00042 int getInitDate( Date &date );
00043 int getDateOffset();
00044 int getLoopType();
00045 int getNumFrames();
00046 inline int setFillCont( bool v ){ fill_cont = v; return 1; };
00047 int setColorTable( const char *str );
00048 int setColor( const char *name );
00049 int setColorLine( const char *name );
00050 int setParam( const char *str );
00051 inline int getSync(){ return sync; };
00052 int drawSegment( Plot &plot, Points &pts );
00053 int draw( Plot &plot, const char *file );
00054 int drawLatLon( Plot &plot, float dlat, float dlon );
00055 int draw( Plot &plot );
00056 int print();
00057
00058 static const int UNDER = 1;
00059 static const int OVER = 2;
00060 };
00061 }
00062 #endif