WXP C++ Library Version 6.74.6
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/Plot.h>
12#include <WXP/String.h>
13#include <WXP/Timezone.h>
14
15namespace WXP {
16 class ImagePlot : public Drawing, public Listener {
17 int map;
18 int over;
19 int fill;
20 float zoom;
21 char type[15];
22 String color_table;
23 String color_fill;
24 int tran_sat;
25 int remap_inc;
26 int pix_off;
27 int pix_ave;
28 char cutoff[20];
29 float min_lon, max_lon;
30 Filename filename;
31 Timezone tz;
32 Image image;
33 int bar;
34 int sync;
35
36 public:
37 ImagePlot();
38 ImagePlot( const char *param );
39 int init();
40 int setParam( const char *str );
41 int setPath( const char *path );
42 int setFile();
43 int setInput( const char *type );
44 int setNameConv( const char *type );
45 int setType( const char *type );
46 int setFilename();
47 int setFilename( const char *file );
48 int setFilename( Date &date );
49 int setFilename( Date &date, const char *param );
50 inline int setForeTime( const char *fore ){ return 1; };
51 int getDate( Date &date );
52 int getNumFrames();
53 int getInitDate( Date &date );
54 int getDateOffset();
55 int getLoopType();
56 int getDomain( Domain &domain );
57 int setColorTable( const char *str );
58 int setColorFill( const char *str );
59 inline int setMap( bool val ){ map = val; return 1; };
60 inline int getSync(){ return sync; };
61 int drawImage( Plot &plot, Image &rimage );
62 int draw( Plot &plot );
63 int draw( Plot &plot, const char *filename );
64 int draw( Plot &plot, Image &rimage );
65 void callback( const char *ev_str, const char *ev_data, const void *data );
66 int print();
67
68 enum Type {
69 UNK,
70 IMAGE,
71 GRIB,
72 GRID
73 };
74 };
75}
76#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:16
int init()
Definition: ImagePlot.cc:54
int setNameConv(const char *type)
Definition: ImagePlot.cc:189
int setType(const char *type)
Definition: ImagePlot.cc:198
int setInput(const char *type)
Definition: ImagePlot.cc:180
int drawImage(Plot &plot, Image &rimage)
Definition: ImagePlot.cc:266
int setParam(const char *str)
Definition: ImagePlot.cc:107
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition: ImagePlot.cc:473
int getDate(Date &date)
Definition: ImagePlot.cc:231
int setForeTime(const char *fore)
Definition: ImagePlot.h:50
int getDateOffset()
Definition: ImagePlot.cc:243
int setFile()
Definition: ImagePlot.cc:157
int getLoopType()
Definition: ImagePlot.cc:247
int getDomain(Domain &domain)
Definition: ImagePlot.cc:76
int getInitDate(Date &date)
Definition: ImagePlot.cc:236
int print()
Definition: ImagePlot.cc:495
int setColorTable(const char *str)
Definition: ImagePlot.cc:459
int draw(Plot &plot)
Definition: ImagePlot.cc:316
int setColorFill(const char *str)
Definition: ImagePlot.cc:468
int getNumFrames()
Definition: ImagePlot.cc:257
int setFilename()
Definition: ImagePlot.cc:204
int getSync()
Definition: ImagePlot.h:60
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 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