WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WarnPlot.h
1#ifndef _WINC_WARNPLOT
2#define _WINC_WARNPLOT
3
4#include <WXP/Date.h>
5#include <WXP/Domain.h>
6#include <WXP/Drawing.h>
7#include <WXP/Filename.h>
8#include <WXP/Listener.h>
9#include <WXP/Plot.h>
10#include <WXP/Timezone.h>
11#include <WXP/WarnData.h>
12
13namespace WXP {
14 class WarnPlot : public Drawing, public Listener {
15 int label; /* Plot labels */
16 float scale;
17 int shadow;
18 int fill;
19 Date vdate;
20 bool vdate_fix;
21 Filename filename;
22 String color_table;
23 String color;
24 static const int max_warning = 800;
25 WarnData warning[max_warning];
26 char types[20];
27 Timezone tz;
28 int num_warn;
29 bool map;
30 int sync;
31 int min;
32
33 public:
34 WarnPlot();
35 WarnPlot( const char *param );
36 int init();
37 int setParam( const char *str );
38 int setFile();
39 int setInput( const char *type );
40 int setHour( const char *str );
41 int setNameConv( const char *type );
42 int setFilename();
43 int setFilename( const char *str );
44 int setFilename( Date &date );
45 int setFilename( Date &date, const char *param );
47 inline int setForeTime( const char *fore ){ return 1; };
48 int getDate( Date &date );
49 int getInitDate( Date &date );
50 int getDateOffset();
51 int getLoopType();
52 int getNumFrames();
53 int getDomain( Domain &domain );
54 int setScale( float val );
55 int setTimezone( const char *str );
56 int setShadow( int val );
57 int setValidDate( const char *str );
58 int setValidDate( Date &date );
59 int setColorTable( const char *str );
60 int setColor( const char *str );
62 inline int setMap( bool val ){ map = val; return 1; };
64 inline int getSync(){ return sync; };
65 int readFile( const char *filename );
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 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 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
This struct stores watch box data.
Definition WarnData.h:8
This class plots severe weather warn boxes.
Definition WarnPlot.h:14
int draw(Plot &plot)
Definition WarnPlot.cc:406
int setInput(const char *type)
Definition WarnPlot.cc:159
int getDomain(Domain &domain)
Definition WarnPlot.cc:85
int setHour(const char *str)
Definition WarnPlot.cc:180
int getDate(Date &date)
Definition WarnPlot.cc:227
int setScale(float val)
Definition WarnPlot.cc:271
int setForeTime(const char *fore)
Definition WarnPlot.h:47
int print()
Definition WarnPlot.cc:575
int getNumFrames()
Definition WarnPlot.cc:263
int setNameConv(const char *type)
Definition WarnPlot.cc:167
int setValidDate(const char *str)
Definition WarnPlot.cc:316
int setColor(const char *str)
Definition WarnPlot.cc:298
int getInitDate(Date &date)
Definition WarnPlot.cc:236
int setMap(bool val)
Definition WarnPlot.h:62
int getDateOffset()
Definition WarnPlot.cc:247
int setFile()
Definition WarnPlot.cc:138
WarnPlot()
Definition WarnPlot.cc:35
int getSync()
Definition WarnPlot.h:64
int getLoopType()
Definition WarnPlot.cc:255
int setParam(const char *str)
Definition WarnPlot.cc:103
int setColorTable(const char *str)
Definition WarnPlot.cc:289
int setTimezone(const char *str)
Definition WarnPlot.cc:280
int readFile(const char *filename)
Definition WarnPlot.cc:345
int setShadow(int val)
Definition WarnPlot.cc:307
int setFilename()
Definition WarnPlot.cc:188
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition WarnPlot.cc:338
int init()
Definition WarnPlot.cc:51
All WXP classes fall under the WXP namespace.
Definition Angle.h:4