WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MosPlot.h
1#ifndef _WINC_MOSPLOT
2#define _WINC_MOSPLOT
3
4#include <WXP/Date.h>
5#include <WXP/DatumPlot.h>
6#include <WXP/Domain.h>
7#include <WXP/Drawing.h>
8#include <WXP/Filename.h>
9#include <WXP/GridCont.h>
10#include <WXP/GridVect.h>
11#include <WXP/Listener.h>
12#include <WXP/ModelSpec.h>
13#include <WXP/MosGrid.h>
14#include <WXP/Plot.h>
15#include <WXP/String.h>
16#include <WXP/Timezone.h>
17
18namespace WXP {
19 class MosPlot : public Drawing, public Listener {
20 Filename filename;
21 ModelSpec mspec;
22 String param_str;
23 String color_table;
24 String color;
25 char model[20];
26 String time;
27 String variable;
28 char plot_type[10];
29 Timezone tz;
30 Domain gdomain;
31 MosGrid mosgrid;
32 DatumPlot dplot;
33 GridCont gplot;
34 GridVect vplot;
35 int map_fill;
36 bool map;
37 int sync;
38
39 public:
40 MosPlot();
41 MosPlot( const char *param );
42 int init();
43 int setParam( const char *str );
44 int setPath( const char *path );
45 int setFile();
46 int setInput( const char *str );
47 int setModel( const char *str );
48 int setNameConv( const char *name );
49 int setHour( const char *str );
50 int setForeTime( const char *fore );
51 int setFilename();
52 int setFilename( Date &date );
53 int setFilename( const char *str );
54 int setFilename( Date &date, const char *param );
55 int setColorTable( const char *str );
56 int setColor( const char *str );
57 int setVariable( const char *str );
58 inline int setMap( bool val ){ map = val; return 1; };
59 int getDate( Date &date );
60 int getInitDate( Date &date );
61 int getDateOffset();
62 int getLoopType();
63 int getNumFrames();
64 int getDomain( Domain &domain );
65 inline int getSync(){ return sync; };
66 int draw( Plot &plot );
67 void callback( const char *ev_str, const char *ev_data, const void *data );
68 int print();
69 };
70}
71#endif
This class stores date and time information.
Definition Date.h:8
This class plots point data.
Definition DatumPlot.h:13
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 U and V gridpoint data.
Definition GridVect.h:17
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 converts MOS data to a grid.
Definition MosGrid.h:13
This class plots surface data.
Definition MosPlot.h:19
int setFilename()
Definition MosPlot.cc:185
int setColorTable(const char *str)
Definition MosPlot.cc:603
int getSync()
Definition MosPlot.h:65
int setFile()
Definition MosPlot.cc:131
int setNameConv(const char *name)
Definition MosPlot.cc:175
int setForeTime(const char *fore)
Definition MosPlot.cc:209
int setParam(const char *str)
Definition MosPlot.cc:91
int getInitDate(Date &date)
Definition MosPlot.cc:224
int print()
Definition MosPlot.cc:629
int init()
Definition MosPlot.cc:49
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition MosPlot.cc:626
int getLoopType()
Definition MosPlot.cc:235
int getDate(Date &date)
Definition MosPlot.cc:219
int draw(Plot &plot)
Definition MosPlot.cc:251
int setInput(const char *str)
Definition MosPlot.cc:158
int getDateOffset()
Definition MosPlot.cc:231
int setModel(const char *str)
Definition MosPlot.cc:166
int getDomain(Domain &domain)
Definition MosPlot.cc:74
int setColor(const char *str)
Definition MosPlot.cc:612
int getNumFrames()
Definition MosPlot.cc:243
int setVariable(const char *str)
Definition MosPlot.cc:621
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