WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
GridCont.h
1#ifndef _WINC_GRIDCONT
2#define _WINC_GRIDCONT
3
4#include <WXP/ContPlot.h>
5#include <WXP/Date.h>
6#include <WXP/Domain.h>
7#include <WXP/Drawing.h>
8#include <WXP/Filename.h>
9#include <WXP/Grid.h>
10#include <WXP/GridRead.h>
11#include <WXP/Listener.h>
12#include <WXP/ModelSpec.h>
13#include <WXP/Plot.h>
14#include <WXP/String.h>
15
16namespace WXP {
17 class GridCont : public Drawing, public Listener {
18 char model[20];
19 int label;
20 int map;
21 int map_fill;
22 ModelSpec model_spec;
23 Filename filename;
24 ContPlot cont;
25 GridRead gread;
26 Grid grid;
27 String grid_spec;
28 int sync;
29
30 public:
31 GridCont();
32 GridCont( const char *param );
33 int init();
34 int setParam( const char *str );
35 int setPath( const char *str );
36 int setFile( );
37 int setInput( const char *type );
38 int setNameConv( const char *name );
39 int setFilename( );
40 int setFilename( const char *str );
41 int setFilename( Date &date );
42 int setFilename( Date &date, const char *param );
43 inline int setForeTime( const char *fore ){ return 1; };
44 int getDate( Date &date );
45 int getInitDate( Date &date );
46 int getDateOffset();
47 int getLoopType();
48 int getNumFrames();
49 int setModel( const char *str );
50 inline int setLabel( int val ){ label = val; return 1; };
51 void callback( const char *ev_str, const char *ev_data, const void *data );
52 int setColorTable( const char *str );
53 int setColorFill( const char *str );
54 inline int setType( int type ){ return cont.setType( type ); };
55 inline int setBase( float val ){ return cont.setBase( val ); };
56 inline int setInterval( float val ){ return cont.setInterval( val ); };
57 inline int setLabelParam( int skip, int rad ){ return cont.setLabelParam( skip, rad ); };
58 inline int setMap( bool val ){ map = val; return 1; };
59 inline int setMapFill( int val ){ map_fill = val; return 1; };
60 inline bool isTypeFill(){ return cont.isTypeFill(); };
61 int getDomain( Domain &domain );
62 inline int getSync(){ return sync; };
63 int draw( Plot &plot, Grid &grid );
64 int draw( Plot &plot );
65 int print();
66 };
67}
68#endif
This class contours a grid.
Definition ContPlot.h:15
int setInterval(float val)
Definition ContPlot.cc:287
int setType(int rtype)
Definition ContPlot.cc:162
int setLabelParam(int skip, int rad)
Definition ContPlot.cc:320
int setBase(float val)
Definition ContPlot.cc:296
bool isTypeFill()
Definition ContPlot.h:49
This class stores date and time information.
Definition Date.h:8
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
int setColorTable(const char *str)
Definition GridCont.cc:239
int getInitDate(Date &date)
Definition GridCont.cc:196
int setForeTime(const char *fore)
Definition GridCont.h:43
int getSync()
Definition GridCont.h:62
int setModel(const char *str)
Definition GridCont.cc:184
int setInput(const char *type)
Definition GridCont.cc:135
int setFilename()
Definition GridCont.cc:151
int getDate(Date &date)
Definition GridCont.cc:191
int setParam(const char *str)
Definition GridCont.cc:96
int setColorFill(const char *str)
Definition GridCont.cc:248
int getNumFrames()
Definition GridCont.cc:231
int setNameConv(const char *name)
Definition GridCont.cc:143
int init()
Definition GridCont.cc:48
int getLoopType()
Definition GridCont.cc:207
int getDomain(Domain &domain)
Definition GridCont.cc:66
int getDateOffset()
Definition GridCont.cc:203
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition GridCont.cc:214
int print()
Definition GridCont.cc:327
int setFile()
Definition GridCont.cc:119
This class reads and composites gridded data.
Definition GridRead.h:13
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
All WXP classes fall under the WXP namespace.
Definition Angle.h:4