WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
NidsPlot.h
1#ifndef _WINC_NIDSPLOT
2#define _WINC_NIDSPLOT
3
4#include <WXP/Date.h>
5#include <WXP/Datum.h>
6#include <WXP/Domain.h>
7#include <WXP/Drawing.h>
8#include <WXP/Filename.h>
9#include <WXP/Listener.h>
10#include <WXP/NidsData.h>
11#include <WXP/NidsFile.h>
12#include <WXP/NidsInfo.h>
13#include <WXP/Plot.h>
14#include <WXP/StormAttr.h>
15#include <WXP/String.h>
16#include <WXP/Timezone.h>
17#include <WXP/VarList.h>
18
19namespace WXP {
20
21 class NidsPlot : public Drawing, public Listener {
22 char id[5];
23 char type[15];
24 int plt_site;
25 int plt_table;
26 float plt_dist[5];
27 float plt_azimuth;
28 bool draw_plot;
29 bool draw_data;
30 String variable;
31 String color_table;
32 String color_fill;
33 String color;
34 int map;
35 int clutter_rad;
36 int ramp_cut;
37 int ramp_len;
38 int sync;
39 Filename filename;
40 Timezone tz;
41 NidsFile nids;
42 NidsInfo info;
43 NidsData ndata;
44 VarList vars;
45
46 public:
47 NidsPlot();
48 NidsPlot( const char *str );
49 int init();
50 int setParam( const char *str );
51 int setPath( const char *path );
52 int setFile();
53 int setInput( const char *type );
54 int setNameConv( const char *type );
55 int setHour( const char *str );
56 int setFilename();
57 int setFilename( Filename &rfile );
58 int setFilename( const char *file );
59 int setFilename( Date &date );
60 int setFilename( Date &date, const char *param );
61 inline int setForeTime( const char *fore ){ return 1; };
62 int getDate( Date &date );
63 int getInitDate( Date &date );
64 int getDateOffset();
65 int getLoopType();
66 int getNumFrames();
67 int getDomain( Domain &domain );
68 int getInfo( NidsInfo &rinfo );
69 int setId( const char *str );
70 int setType( const char *str );
71 int setVariable( const char *str );
72 int setColorTable( const char *str );
73 int setColorFill( const char *str );
74 int setColor( const char *str );
75 inline int setMap( bool val ){ map = val; return 1; };
76 inline int getSync(){ return sync; };
77 int drawImage( Plot &plot );
78 int drawData( Plot &plot );
79 const char *getUnits( const char *name );
80 int drawStorm( Plot &plot, StormAttr &storm );
81 int draw( Plot &plot );
82 void callback( const char *ev_str, const char *ev_data, const void *data );
83 int print();
84 };
85}
86#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 reads and decodes NIDS data from file.
Definition NidsFile.h:20
This class plots NIDS data.
Definition NidsPlot.h:21
int draw(Plot &plot)
Definition NidsPlot.cc:1229
int getDateOffset()
Definition NidsPlot.cc:329
NidsPlot()
Definition NidsPlot.cc:58
int setNameConv(const char *type)
Definition NidsPlot.cc:249
int setColorFill(const char *str)
Definition NidsPlot.cc:451
int setColorTable(const char *str)
Definition NidsPlot.cc:442
int setId(const char *str)
Definition NidsPlot.cc:413
int setFile()
Definition NidsPlot.cc:219
int setColor(const char *str)
Definition NidsPlot.cc:460
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition NidsPlot.cc:348
int getInitDate(Date &date)
Definition NidsPlot.cc:322
int drawData(Plot &plot)
Definition NidsPlot.cc:790
int getDate(Date &date)
Definition NidsPlot.cc:317
int setPath(const char *path)
Definition NidsPlot.cc:211
int init()
Definition NidsPlot.cc:67
int setForeTime(const char *fore)
Definition NidsPlot.h:61
int getNumFrames()
Definition NidsPlot.cc:341
int print()
Definition NidsPlot.cc:1278
int setParam(const char *str)
Definition NidsPlot.cc:125
int getLoopType()
Definition NidsPlot.cc:333
int getSync()
Definition NidsPlot.h:76
int setFilename()
Definition NidsPlot.cc:269
int setInput(const char *type)
Definition NidsPlot.cc:241
int setType(const char *str)
Definition NidsPlot.cc:423
int getDomain(Domain &domain)
Definition NidsPlot.cc:366
int setVariable(const char *str)
Definition NidsPlot.cc:433
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 specifies a list of variables.
Definition VarList.h:11
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores NIDS data.
Definition NidsData.h:14
This struct stores NIDS header data.
Definition NidsInfo.h:12
This struct stores storm attribute data from NIDS data.
Definition StormAttr.h:7