WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
SfcPlot.h
1#ifndef _WINC_SFCPLOT
2#define _WINC_SFCPLOT
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/Plot.h>
13#include <WXP/SfcGrid.h>
14#include <WXP/String.h>
15#include <WXP/Timezone.h>
16
17namespace WXP {
18 class SfcPlot : public Drawing, public Listener {
19 Filename filename;
20 String param_str;
21 String variable;
22 char plot_type[10];
23 Timezone tz;
24 Domain gdomain;
25 SfcGrid sfcgrid;
26 DatumPlot dplot;
27 GridCont gplot;
28 GridVect vplot;
29 String output;
30 bool map;
31 int map_fill;
32 int sync;
33
34 public:
35 SfcPlot();
36 SfcPlot( const char *param );
37 int init();
38 int setParam( const char *str );
39 int setPath( const char *path );
40 int setFile();
41 int setInput( const char *str );
42 int setNameConv( const char *name );
43 int setHour( const char *str );
44 int setFilename();
45 int setFilename( Date &date );
46 int setFilename( const char *str );
47 int setFilename( Date &date, const char *param );
49 inline int setForeTime( const char *fore ){ return 1; };
50 int setColorTable( const char *str );
51 int setColor( const char *str );
52 int setVariable( const char *str );
53 int setPlotType( const char *str );
54 int setTimezone( const char *str );
55 int setGridDomain( const char *str );
56 int setOutput( const char *file );
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 );
66 inline int getSync(){ return sync; };
67 int draw( Plot &plot );
68 void callback( const char *ev_str, const char *ev_data, const void *data );
69 int print();
70 };
71}
72#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 defines mid-level graphics commands. Calls the Graph object for actual graphics output.
Definition: Plot.h:26
This class converts surface data to a grid.
Definition: SfcGrid.h:13
This class plots surface data.
Definition: SfcPlot.h:18
int setHour(const char *str)
Definition: SfcPlot.cc:222
int setNameConv(const char *name)
Definition: SfcPlot.cc:209
int setColor(const char *str)
Definition: SfcPlot.cc:737
SfcPlot()
Definition: SfcPlot.cc:59
int setVariable(const char *str)
Definition: SfcPlot.cc:746
int setFile()
Definition: SfcPlot.cc:181
int getSync()
Definition: SfcPlot.h:66
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition: SfcPlot.cc:793
int setPath(const char *path)
Definition: SfcPlot.cc:174
int getNumFrames()
Definition: SfcPlot.cc:304
int getDate(Date &date)
Definition: SfcPlot.cc:268
int setTimezone(const char *str)
Definition: SfcPlot.cc:764
int getInitDate(Date &date)
Definition: SfcPlot.cc:277
int setOutput(const char *file)
Definition: SfcPlot.cc:782
int print()
Definition: SfcPlot.cc:799
int setForeTime(const char *fore)
Definition: SfcPlot.h:49
int init()
Definition: SfcPlot.cc:75
int setMap(bool val)
Definition: SfcPlot.h:58
int setInput(const char *str)
Definition: SfcPlot.cc:201
int setFilename()
Definition: SfcPlot.cc:230
int setColorTable(const char *str)
Definition: SfcPlot.cc:726
int getDateOffset()
Definition: SfcPlot.cc:288
int getDomain(Domain &domain)
Definition: SfcPlot.cc:111
int draw(Plot &plot)
Definition: SfcPlot.cc:312
int setPlotType(const char *str)
Definition: SfcPlot.cc:755
int setParam(const char *str)
Definition: SfcPlot.cc:132
int setGridDomain(const char *str)
Definition: SfcPlot.cc:773
int getLoopType()
Definition: SfcPlot.cc:296
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