WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
HurPlot.h
1#ifndef _WINC_HURPLOT
2#define _WINC_HURPLOT
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/HurStorms.h>
10#include <WXP/Listener.h>
11#include <WXP/Plot.h>
12#include <WXP/Timezone.h>
13#include <WXP/HurData.h>
14
15namespace WXP {
16 class HurPlot : public Drawing, public Listener {
17 int label; /* Plot labels */
18 float scale;
19 int shadow;
20 int fill;
21 Date vdate;
22 bool vdate_fix;
23 Filename filename;
24 String color_table;
25 String color;
26 HurStorms storms;
27 DatumPlot dplot;
28 Timezone tz;
29 int num_warn;
30 bool map;
31 int sync;
32 int hour;
33
34 public:
35 HurPlot();
36 HurPlot( const char *param );
37 int init();
38 int setParam( const char *str );
39 int setFile();
40 int setInput( const char *type );
41 int setHour( const char *str );
42 int setNameConv( const char *type );
43 int setFilename();
44 int setFilename( const char *str );
45 int setFilename( Date &date );
46 int setFilename( Date &date, const char *param );
48 inline int setForeTime( const char *fore ){ return 1; };
49 int getDate( Date &date );
50 int getInitDate( Date &date );
51 int getDateOffset();
52 int getLoopType();
53 int getNumFrames();
54 int getDomain( Domain &domain );
55 int setScale( float val );
56 int setTimezone( const char *str );
57 int setShadow( int val );
58 int setValidDate( const char *str );
59 int setValidDate( Date &date );
60 int setColorTable( const char *str );
61 int setColor( const char *str );
63 inline int setMap( bool val ){ map = val; return 1; };
65 inline int getSync(){ return sync; };
66 int readFile( const char *filename );
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 severe weather warn boxes.
Definition: HurPlot.h:16
int getNumFrames()
Definition: HurPlot.cc:256
int setHour(const char *str)
Definition: HurPlot.cc:173
int setColor(const char *str)
Definition: HurPlot.cc:291
HurPlot()
Definition: HurPlot.cc:34
int setNameConv(const char *type)
Definition: HurPlot.cc:160
int getInitDate(Date &date)
Definition: HurPlot.cc:229
int setParam(const char *str)
Definition: HurPlot.cc:98
int setTimezone(const char *str)
Definition: HurPlot.cc:273
int setValidDate(const char *str)
Definition: HurPlot.cc:309
int setShadow(int val)
Definition: HurPlot.cc:300
int getDateOffset()
Definition: HurPlot.cc:240
int draw(Plot &plot)
Definition: HurPlot.cc:360
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition: HurPlot.cc:331
int setScale(float val)
Definition: HurPlot.cc:264
int setFile()
Definition: HurPlot.cc:131
int getDate(Date &date)
Definition: HurPlot.cc:220
int setFilename()
Definition: HurPlot.cc:181
int setMap(bool val)
Definition: HurPlot.h:63
int readFile(const char *filename)
Definition: HurPlot.cc:338
int setInput(const char *type)
Definition: HurPlot.cc:152
int setForeTime(const char *fore)
Definition: HurPlot.h:48
int getLoopType()
Definition: HurPlot.cc:248
int getSync()
Definition: HurPlot.h:65
int print()
Definition: HurPlot.cc:503
int init()
Definition: HurPlot.cc:50
int setColorTable(const char *str)
Definition: HurPlot.cc:282
int getDomain(Domain &domain)
Definition: HurPlot.cc:80
This class creates an array a hurricane storms.
Definition: HurStorms.h:8
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