00001 #ifndef _WINC_DATUMPLOT
00002 #define _WINC_DATUMPLOT
00003
00004 #include <WXP/ColorFill.h>
00005 #include <WXP/Datum.h>
00006 #include <WXP/DatumAttr.h>
00007 #include <WXP/EarthPoint.h>
00008 #include <WXP/Plot.h>
00009 #include <WXP/PlotAttr.h>
00010 #include <WXP/Point.h>
00011
00012 namespace WXP {
00013 class DatumPlot {
00014 String color_table;
00015 String color_fill;
00016 DatumAttr attr;
00017 ColorFill fill;
00018 Point ppt;
00019 float scale;
00020 int post_line;
00021 int first;
00022
00023 public:
00024 DatumPlot();
00025 int init();
00026 int setParam( const char *str );
00027 int setColorTable( const char *str );
00028 int setColorFill( const char *str );
00029 int setAttr( const char *str );
00030 int setAttr( PlotAttr &pattr );
00031 int setColor( const char *str );
00032 inline int setScale( float val ){ scale = val; return 1; };
00033 int setMarker( int type );
00034 int draw( Plot &plot, Datum &data );
00035 int draw( Plot &plot, float rlat, float rlon, int type,
00036 const char *data, const char *format );
00037 int draw( Plot &plot, EarthPoint &ept, int type,
00038 const char *data, const char *format );
00039 int draw( Plot &plot, float rlat, float rlon, int type,
00040 float data, const char *format );
00041 int draw( Plot &plot, EarthPoint &ept, int type,
00042 float data, const char *format );
00043 int print();
00044 };
00045 }
00046 #endif