00001 #ifndef _WINC_UPAPLOT
00002 #define _WINC_UPAPLOT
00003
00004 #include <WXP/Date.h>
00005 #include <WXP/DatumPlot.h>
00006 #include <WXP/Domain.h>
00007 #include <WXP/Drawing.h>
00008 #include <WXP/Filename.h>
00009 #include <WXP/GridCont.h>
00010 #include <WXP/GridVect.h>
00011 #include <WXP/Listener.h>
00012 #include <WXP/Plot.h>
00013 #include <WXP/UpaGrid.h>
00014
00015 namespace WXP {
00016 class UpaPlot : public Drawing, public Listener {
00017 Filename filename;
00018 String param_str;
00019 String city_file;
00020 String color_table;
00021 String color;
00022 String variable;
00023 String level;
00024 char plot_type[10];
00025 Timezone tz;
00026 Domain gdomain;
00027 UpaGrid upagrid;
00028 DatumPlot dplot;
00029 GridCont gplot;
00030 GridVect vplot;
00031 bool map;
00032 int map_fill;
00033 int sync;
00034
00035 public:
00036 UpaPlot();
00037 UpaPlot( const char *param );
00038 int init();
00039 int setParam( const char *str );
00040 int setPath( const char *path );
00041 int setFile( );
00042 int setInput( const char *type );
00043 int setNameConv( const char *name );
00044 int setHour( const char *str );
00045 int setFilename( );
00046 int setFilename( const char *str );
00047 int setFilename( Date &date );
00048 int setFilename( Date &date, const char *param );
00049 inline int setForeTime( const char *fore ){ return 1; };
00050 int setColorTable( const char *str );
00051 int setColor( const char *str );
00052 int setVariable( const char *str );
00053 int setLevel( const char *str );
00054 inline int setMap( bool val ){ map = val; return 1; };
00055 int getDate( Date &date );
00056 int getInitDate( Date &date );
00057 int getDateOffset();
00058 int getLoopType();
00059 int getNumFrames();
00060 int setPlot( Plot &plot );
00061 int getDomain( Domain &domain );
00062 inline int getSync(){ return sync; };
00063 int draw( Plot &plot );
00064 void callback( const char *ev_str, const char *ev_data, const void *data );
00065 int print();
00066 };
00067 }
00068 #endif