00001 #ifndef _WINC_RADPLOT
00002 #define _WINC_RADPLOT
00003
00004 #include <WXP/Contour.h>
00005 #include <WXP/Date.h>
00006 #include <WXP/DatumPlot.h>
00007 #include <WXP/Domain.h>
00008 #include <WXP/Drawing.h>
00009 #include <WXP/Filename.h>
00010 #include <WXP/Grid.h>
00011 #include <WXP/Image.h>
00012 #include <WXP/ImagePlot.h>
00013 #include <WXP/Lev2Plot.h>
00014 #include <WXP/Listener.h>
00015 #include <WXP/MdrPlot.h>
00016 #include <WXP/NidsPlot.h>
00017 #include <WXP/RcmPlot.h>
00018 #include <WXP/Plot.h>
00019 #include <WXP/String.h>
00020 #include <WXP/Timezone.h>
00021
00022 namespace WXP {
00023 class RadPlot : public Drawing, public Listener {
00024 int type;
00025 Filename filename;
00026 String color_table;
00027 String color_fill;
00028 ImagePlot img;
00029 NidsPlot nids;
00030 Lev2Plot lev2;
00031 MdrPlot mdr;
00032 RcmPlot rcm;
00033 int sync;
00034
00035 public:
00036 RadPlot();
00037 RadPlot( const char *str );
00038 int init();
00039 int setParam( const char *str );
00040 int setPath( const char *path );
00041 int setFile();
00042 int setInput( const char *rtype );
00043 int getType( const char *rtype );
00044 int setNameConv( const char *name );
00045 int setHour( const char *str );
00046 int setFilename();
00047 int setFilename( const char *name );
00048 int setFilename( Date &date );
00049 int setFilename( Date &date, const char *param );
00050 inline int setForeTime( const char *fore ){ return 1; };
00051 int setColorTable( const char *str );
00052 int setColor( const char *str );
00053 int setColorFill( const char *str );
00054 int setVariable( const char *str );
00055 int setMap( bool val );
00056 int getDate( Date &date );
00057 int getInitDate( Date &date );
00058 int getDateOffset();
00059 int getLoopType();
00060 int getNumFrames();
00061 int getDomain( Domain &domain );
00062 inline int getSync(){ return sync; };
00063 int draw( Plot &plot, Image &image );
00064 int draw( Plot &plot );
00065 void callback( const char *ev_str, const char *ev_data, const void *data );
00066 int print();
00067
00068 enum Type {
00069 UNK,
00070 MDR,
00071 MDRSITE,
00072 RCM,
00073 RCMSITE,
00074 IMG,
00075 NIDS,
00076 LEV2,
00077 NOWRAD,
00078 KAVRAD
00079 };
00080 };
00081 }
00082 #endif