WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
GridVect.h
1#ifndef _WINC_GRIDVECT
2#define _WINC_GRIDVECT
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/GridRead.h>
10#include <WXP/Listener.h>
11#include <WXP/ModelSpec.h>
12#include <WXP/Plot.h>
13#include <WXP/String.h>
14#include <WXP/VectPlot.h>
15
16namespace WXP {
17 class GridVect : public Drawing, public Listener {
18 char model[20];
19 int map;
20 int vbar;
21 int label;
22 int sync;
23 ModelSpec mspec;
24 Filename filename;
25 String grid_spec;
26 VectPlot vect;
27 GridRead gread;
28 Grid ugrid, vgrid;
29
30 public:
31 GridVect();
32 GridVect( const char *param );
33 int init();
34 int setParam( const char *str );
35 int setFile( );
36 int setInput( const char *type );
37 int setNameConv( const char *name );
38 int setFilename( );
39 int setFilename( const char *str );
40 int setFilename( Date &date );
41 int setFilename( Date &date, const char *param );
42 inline int setForeTime( const char *fore ){ return 1; };
43 int getDomain( Domain &domain );
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 void callback( const char *ev_str, const char *ev_data, const void *data );
51 inline int setMap( bool val ){ map = val; return 1; };
52 inline int setLabel( int val ){ label = val; return 1; };
53 int setColorTable( const char *str );
54 int setColorFill( const char *str );
55 inline float getMax(){ return vect.getMax(); };
56 inline int getSync(){ return sync; };
57 int draw( Plot &plot, Grid &grid1, Grid &grid2 );
58 int draw( Plot &plot );
59 int print();
60 };
61}
62#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 reads and composites gridded data.
Definition GridRead.h:13
This class plots U and V gridpoint data.
Definition GridVect.h:17
int getLoopType()
Definition GridVect.cc:180
int getDomain(Domain &domain)
Definition GridVect.cc:73
int print()
Definition GridVect.cc:287
int getNumFrames()
Definition GridVect.cc:188
int getDate(Date &date)
Definition GridVect.cc:164
int setColorFill(const char *str)
Definition GridVect.cc:222
int setNameConv(const char *name)
Definition GridVect.cc:119
int setModel(const char *str)
Definition GridVect.cc:157
int setForeTime(const char *fore)
Definition GridVect.h:42
int setParam(const char *str)
Definition GridVect.cc:58
int setFile()
Definition GridVect.cc:89
int setFilename()
Definition GridVect.cc:129
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition GridVect.cc:195
int init()
Definition GridVect.cc:46
int setInput(const char *type)
Definition GridVect.cc:111
int setColorTable(const char *str)
Definition GridVect.cc:213
int getDateOffset()
Definition GridVect.cc:176
int getSync()
Definition GridVect.h:56
int getInitDate(Date &date)
Definition GridVect.cc:169
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 plots vectors and streamlines from U and V grids.
Definition VectPlot.h:10
float getMax()
Definition VectPlot.h:55
All WXP classes fall under the WXP namespace.
Definition Angle.h:4