WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
GridPlot.h
1#ifndef _WINC_GRIDPLOT
2#define _WINC_GRIDPLOT
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/Drawing.h>
7#include <WXP/Filename.h>
8#include <WXP/Grid.h>
9#include <WXP/GridCont.h>
10#include <WXP/GridRead.h>
11#include <WXP/GridVect.h>
12#include <WXP/Listener.h>
13#include <WXP/ModelSpec.h>
14#include <WXP/Plot.h>
15#include <WXP/String.h>
16#include <WXP/Timezone.h>
17#include <WXP/VarNameItem.h>
18
19namespace WXP {
20 class GridPlot : public Drawing, public Listener {
21 char model[20];
22 bool map;
23 int sync;
24 ModelSpec mspec;
25 Filename filename;
26 String param_str;
27 String color_table;
28 String color_fill;
29 String time;
30 String level;
31 String variable;
32 GridCont gplot;
33 GridVect vplot;
34 GridRead gread;
35 Grid grid;
36 Timezone tz;
37 int map_fill;
38
39 public:
40 GridPlot();
41 GridPlot( const char *param );
42 int init();
43 int setParam( const char *str );
44 int setPath( const char *str );
45 int setFile( );
46 int setInput( const char *type );
47 int setNameConv( const char *name );
48 int setHour( const char *str );
49 int setFilename( );
50 int setFilename( const char *str );
51 int setFilename( Date &date );
52 int setFilename( Date &date, const char *param );
53 int setForeTime( const char *fore );
54 int getDate( Date &date );
55 int getInitDate( Date &date );
56 int getDateOffset();
57 int getLoopType();
58 int getNumFrames();
59 int setModel( const char *str );
60 inline int setMap( bool val ){ map = val; return 1; };
61 void callback( const char *ev_str, const char *ev_data, const void *data );
62 int setColorTable( const char *str );
63 int setColorFill( const char *str );
64 int setVariable( const char *str );
65 inline bool isTypeFill(){ return gplot.isTypeFill(); };
66 inline int setMapFill( int val ){ map_fill = val; return 1; };
67 int getDomain( Domain &domain );
68 inline int getSync(){ return sync; };
69 int draw( Plot &plot, Grid &grid );
70 int draw( Plot &plot );
71 int print();
72 };
73}
74#endif
This class stores date and time information.
Definition Date.h:8
This class stores and manipulates domain data.
Definition Domain.h:19
This is a virtual class defining drawing routines.
Definition Drawing.h:16
This class creates filenames.
Definition Filename.h:11
This class plots gridpoint data.
Definition GridCont.h:17
This class plots gridpoint data.
Definition GridPlot.h:20
int init()
Definition GridPlot.cc:50
int getDomain(Domain &domain)
Definition GridPlot.cc:71
int getDate(Date &date)
Definition GridPlot.cc:248
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition GridPlot.cc:274
int setInput(const char *type)
Definition GridPlot.cc:157
int setFile()
Definition GridPlot.cc:131
int print()
Definition GridPlot.cc:686
int getSync()
Definition GridPlot.h:68
int setForeTime(const char *fore)
Definition GridPlot.cc:231
int getDateOffset()
Definition GridPlot.cc:260
int setNameConv(const char *name)
Definition GridPlot.cc:165
int setParam(const char *str)
Definition GridPlot.cc:97
int setModel(const char *str)
Definition GridPlot.cc:220
int getNumFrames()
Definition GridPlot.cc:281
int setFilename()
Definition GridPlot.cc:180
int setColorFill(const char *str)
Definition GridPlot.cc:302
int getLoopType()
Definition GridPlot.cc:264
int setVariable(const char *str)
Definition GridPlot.cc:311
int getInitDate(Date &date)
Definition GridPlot.cc:253
int setColorTable(const char *str)
Definition GridPlot.cc:293
This class reads and composites gridded data.
Definition GridRead.h:13
This class plots U and V gridpoint data.
Definition GridVect.h:17
This class defines a grid.
Definition Grid.h:20
This virtual class defines the callback method for use with plotting.
Definition Listener.h:11
This class retrieves forecast model file parameters. This is a mapping between a model type and the f...
Definition ModelSpec.h:7
This class defines mid-level graphics commands. Calls the Graph object for actual graphics output.
Definition Plot.h:26
This is a variable length string class.
Definition String.h:5
This class manipulates timezones.
Definition Timezone.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4