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