WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
FrontPlot.h
1#ifndef _WINC_FRONTPLOT
2#define _WINC_FRONTPLOT
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/Drawing.h>
7#include <WXP/Filename.h>
8#include <WXP/FrontData.h>
9#include <WXP/Listener.h>
10#include <WXP/Plot.h>
11#include <WXP/Point.h>
12#include <WXP/String.h>
13#include <WXP/Timezone.h>
14
15namespace WXP {
16 class FrontPlot : public Drawing, public Listener {
17 int pr_lab; /* Pressure labels */
18 float pr_rad; /* Pressure labels */
19 int barb; /* Barbs */
20 float scale; /* Scale factor */
21 int hour; /* Forecast hour */
22 int shadow;
23 int spline_type;
24 int filter_pres;
25 int map;
26 int sync;
27 String color;
28 Filename filename;
29 Timezone tz;
30
31 public:
32 FrontPlot();
33 FrontPlot( const char *param );
34 int init();
35 int setParam( const char *str );
36 int setFile();
37 int setInput( const char *type );
38 int setNameConv( const char *type );
39 int setFilename();
40 int setFilename( const char *str );
41 int setFilename( Date &date );
42 int setFilename( Date &date, const char *param );
43 int getDate( Date &date );
44 int getInitDate( Date &date );
45 int getDateOffset();
46 int getLoopType();
47 int setForeTime( const char *fore );
48 int getNumFrames();
49 int getDomain( Domain &domain );
50 int setColor( const char *str );
52 inline int setMap( bool val ){ map = val; return 1; };
54 inline int getSync(){ return sync; };
55 int draw( Plot &plot );
56 int draw( Plot &plot, FrontData &data );
57 int drawTriangle( Plot &plot, Point &pt1, Point &pt2, int dir );
58 int drawHalfCircle( Plot &plot, Point &pt1, Point &pt2, int dir );
59 void callback( const char *ev_str, const char *ev_data, const void *data );
60 int print();
61 };
62}
63#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 structure stores front information.
Definition FrontData.h:9
This class plots front data (ASUS01)
Definition FrontPlot.h:16
int setForeTime(const char *fore)
Definition FrontPlot.cc:209
int setNameConv(const char *type)
Definition FrontPlot.cc:166
int getNumFrames()
Definition FrontPlot.cc:225
int getDomain(Domain &domain)
Definition FrontPlot.cc:79
int init()
Definition FrontPlot.cc:45
int setFilename()
Definition FrontPlot.cc:173
int getDate(Date &date)
Definition FrontPlot.cc:193
int getInitDate(Date &date)
Definition FrontPlot.cc:198
int print()
Definition FrontPlot.cc:963
int setMap(bool val)
Definition FrontPlot.h:52
int getLoopType()
Definition FrontPlot.cc:214
int getDateOffset()
Definition FrontPlot.cc:205
int draw(Plot &plot)
Definition FrontPlot.cc:232
int setFile()
Definition FrontPlot.cc:128
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition FrontPlot.cc:229
int setInput(const char *type)
Definition FrontPlot.cc:140
int setParam(const char *str)
Definition FrontPlot.cc:84
int getSync()
Definition FrontPlot.h:54
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 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
This struct sets a 3D point (x, y, z)
Definition Point.h:5