00001 #ifndef _WINC_SATPLOT
00002 #define _WINC_SATPLOT
00003
00004 #include <WXP/Date.h>
00005 #include <WXP/Domain.h>
00006 #include <WXP/Drawing.h>
00007 #include <WXP/Filename.h>
00008 #include <WXP/Image.h>
00009 #include <WXP/Listener.h>
00010 #include <WXP/Plot.h>
00011 #include <WXP/String.h>
00012 #include <WXP/Timezone.h>
00013
00014 namespace WXP {
00015 class SatPlot : public Drawing, public Listener {
00016 char label[20];
00017 int type;
00018 int bar;
00019 int over;
00020 int fill;
00021 int map;
00022 float zoom;
00023 String color_table;
00024 String color_fill;
00025 String model_mask;
00026 String calib;
00027 int tran_sat;
00028 int map_rem;
00029 int remap_inc;
00030 int pix_off;
00031 int pix_ave;
00032 char cutoff[20];
00033 float min_lon, max_lon;
00034 int sync;
00035 Timezone tz;
00036 Filename filename;
00037 String image_dom;
00038 String output;
00039 Image image;
00040
00041 public:
00042 SatPlot();
00043 SatPlot( const char *param );
00044 int init();
00045 int setParam( const char *str );
00046 int setPath( const char *path );
00047 int setFile( );
00048 int setInput( const char *rtype );
00049 int setOutput( const char *str );
00050 int setNameConv( const char *name );
00051 int setHour( const char *str );
00052 int setFilename( );
00053 int setFilename( const char *file );
00054 int setFilename( Date &date );
00055 int setFilename( Date &date, const char *param );
00056 inline int setForeTime( const char *fore ){ return 1; };
00057 int getDate( Date &date );
00058 int getNumFrames();
00059 int getInitDate( Date &date );
00060 int getDateOffset();
00061 int getLoopType();
00062 int getDomain( Domain &domain );
00063 int setColorTable( const char *str );
00064 int setColorFill( const char *str );
00065 int setModelMask( const char *str );
00066 inline int setMap( bool val ){ map = val; return 1; };
00067 inline int getSync(){ return sync; };
00068 int maskModel( Image &image, Date &date );
00069 int saveImage( Image &image );
00070 int draw( Plot &plot, Image &bimage );
00071 int draw( Plot &plot );
00072 void callback( const char *ev_str, const char *ev_data, const void *data );
00073 int print();
00074 };
00075 }
00076 #endif