WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
WatchPlot.h
1#ifndef _WINC_WATCHPLOT
2#define _WINC_WATCHPLOT
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/WatchData.h>
12
13namespace WXP {
14 class WatchPlot : 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 WatchData watches[40];
25 Timezone tz;
26 int num_watch;
27 bool map;
28 int sync;
29
30 public:
31 WatchPlot();
32 WatchPlot( const char *param );
33 int init();
34 int setParam( const char *str );
35 int setFile();
36 int setInput( const char *type );
37 int setHour( const char *str );
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 );
44 inline int setForeTime( const char *fore ){ return 1; };
45 int getDate( Date &date );
46 int getInitDate( Date &date );
47 int getDateOffset();
48 int getLoopType();
49 int getNumFrames();
50 int getDomain( Domain &domain );
51 int setScale( float val );
52 int setTimezone( const char *str );
53 int setShadow( int val );
54 int setValidDate( const char *str );
55 int setValidDate( Date &date );
56 int setColorTable( const char *str );
57 int setColor( const char *str );
59 inline int setMap( bool val ){ map = val; return 1; };
61 inline int getSync(){ return sync; };
62 int readFile( Filename &filename );
63 int readFile( const char *filename, Date &date );
64 int draw( Plot &plot );
65 void callback( const char *ev_str, const char *ev_data, const void *data );
66 int print();
67 };
68}
69#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 class plots severe weather watch boxes.
Definition: WatchPlot.h:14
int getNumFrames()
Definition: WatchPlot.cc:255
int getDomain(Domain &domain)
Definition: WatchPlot.cc:81
int setTimezone(const char *str)
Definition: WatchPlot.cc:272
int setValidDate(const char *str)
Definition: WatchPlot.cc:308
int readFile(Filename &filename)
Definition: WatchPlot.cc:337
int setScale(float val)
Definition: WatchPlot.cc:263
int setShadow(int val)
Definition: WatchPlot.cc:299
int setParam(const char *str)
Definition: WatchPlot.cc:99
int init()
Definition: WatchPlot.cc:50
int getDateOffset()
Definition: WatchPlot.cc:239
int getInitDate(Date &date)
Definition: WatchPlot.cc:228
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition: WatchPlot.cc:330
WatchPlot()
Definition: WatchPlot.cc:34
int setFile()
Definition: WatchPlot.cc:130
int setColor(const char *str)
Definition: WatchPlot.cc:290
int setHour(const char *str)
Definition: WatchPlot.cc:172
int setMap(bool val)
Definition: WatchPlot.h:59
int getSync()
Definition: WatchPlot.h:61
int getLoopType()
Definition: WatchPlot.cc:247
int setInput(const char *type)
Definition: WatchPlot.cc:151
int getDate(Date &date)
Definition: WatchPlot.cc:219
int setColorTable(const char *str)
Definition: WatchPlot.cc:281
int setFilename()
Definition: WatchPlot.cc:180
int setForeTime(const char *fore)
Definition: WatchPlot.h:44
int print()
Definition: WatchPlot.cc:558
int draw(Plot &plot)
Definition: WatchPlot.cc:410
int setNameConv(const char *type)
Definition: WatchPlot.cc:159
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct stores watch box data.
Definition: WatchData.h:8