WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ImagePlot.h
1#ifndef _WINC_IMAGEPLOT
2#define _WINC_IMAGEPLOT
3
4#include <WXP/ColorBar.h>
5#include <WXP/Date.h>
6#include <WXP/Domain.h>
7#include <WXP/Drawing.h>
8#include <WXP/Filename.h>
9#include <WXP/Image.h>
10#include <WXP/Listener.h>
11#include <WXP/ModelSpec.h>
12#include <WXP/Plot.h>
13#include <WXP/String.h>
14#include <WXP/Timezone.h>
15
16namespace WXP {
17 class ImagePlot : public Drawing, public Listener {
18 int map;
19 int over;
20 int fill;
21 float zoom;
22 char type[15];
23 String color_table;
24 String color_fill;
25 int tran_sat;
26 int remap_inc;
27 int pix_off;
28 int pix_ave;
29 char cutoff[20];
30 float min_lon, max_lon;
31 Filename filename;
32 ModelSpec model_spec;
33 char model[20];
34 String grid_spec;
35 String time;
36 Timezone tz;
37 Image image;
38 int bar;
39 int sync;
40
41 public:
42 ImagePlot();
43 ImagePlot( const char *param );
44 int init();
45 int setParam( const char *str );
46 int setPath( const char *path );
47 int setFile();
48 int setInput( const char *type );
49 int setNameConv( const char *type );
50 int setType( const char *type );
51 int setFilename();
52 int setFilename( const char *file );
53 int setFilename( Date &date );
54 int setFilename( Date &date, const char *param );
55 int setModel( const char *str );
56 int setForeTime( const char *fore );
57 int getDate( Date &date );
58 int getNumFrames();
59 int getInitDate( Date &date );
60 int getDateOffset();
61 int getLoopType();
62 int getDomain( Domain &domain );
63 int setColorTable( const char *str );
64 int setColorFill( const char *str );
65 inline int setMap( bool val ){ map = val; return 1; };
66 inline int getSync(){ return sync; };
67 int drawImage( Plot &plot, Image &rimage );
68 int draw( Plot &plot );
69 int draw( Plot &plot, const char *filename );
70 int draw( Plot &plot, Image &rimage );
71 void callback( const char *ev_str, const char *ev_data, const void *data );
72 int print();
73
74 enum Type {
75 UNK,
76 IMAGE,
77 GRIB,
78 GRID
79 };
80 };
81}
82#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 class plot satellite imagery.
Definition ImagePlot.h:17
int init()
Definition ImagePlot.cc:59
int setNameConv(const char *type)
Definition ImagePlot.cc:224
int setType(const char *type)
Definition ImagePlot.cc:236
int setInput(const char *type)
Definition ImagePlot.cc:215
int setModel(const char *str)
Definition ImagePlot.cc:294
int drawImage(Plot &plot, Image &rimage)
Definition ImagePlot.cc:338
int setParam(const char *str)
Definition ImagePlot.cc:128
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition ImagePlot.cc:567
int getDate(Date &date)
Definition ImagePlot.cc:301
int getDateOffset()
Definition ImagePlot.cc:313
int setFile()
Definition ImagePlot.cc:190
int getLoopType()
Definition ImagePlot.cc:317
int getDomain(Domain &domain)
Definition ImagePlot.cc:89
int getInitDate(Date &date)
Definition ImagePlot.cc:306
int print()
Definition ImagePlot.cc:589
int setColorTable(const char *str)
Definition ImagePlot.cc:553
int setForeTime(const char *fore)
Definition ImagePlot.cc:246
int draw(Plot &plot)
Definition ImagePlot.cc:384
int setColorFill(const char *str)
Definition ImagePlot.cc:562
int getNumFrames()
Definition ImagePlot.cc:329
int setFilename()
Definition ImagePlot.cc:263
int getSync()
Definition ImagePlot.h:66
This class defines an image.
Definition Image.h:19
This virtual class defines the callback method for use with plotting.
Definition Listener.h:11
This class retrieves forecast model file parameters. This is a mapping between a model type and the f...
Definition ModelSpec.h:7
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