WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
DatumPlot.h
1#ifndef _WINC_DATUMPLOT
2#define _WINC_DATUMPLOT
3
4#include <WXP/ColorFill.h>
5#include <WXP/Datum.h>
6#include <WXP/DatumAttr.h>
7#include <WXP/EarthPoint.h>
8#include <WXP/Plot.h>
9#include <WXP/PlotAttr.h>
10#include <WXP/Point.h>
11
12namespace WXP {
13 class DatumPlot {
14 String color_table;
15 String color_fill;
16 char format[10];
17 int def_type;
18 DatumAttr attr;
19 int use_fill;
20 ColorFill fill;
21 float base;
22 float intrvl;
23 Point ppt;
24 float scale;
25 int post_line;
26 int first;
27
28 public:
29 DatumPlot();
30 int init();
31 int setParam( const char *str );
32 int setType( const char *str );
33 int setColorTable( const char *str );
34 int setColorFill( const char *str );
35 int setInterval( float val );
36 int setBase( float val );
37 int setAttr( const char *str );
38 int setAttr( PlotAttr &pattr );
39 int setColor( const char *str );
40 int setFormat( const char *str );
42 inline int setScale( float val ){ scale = val; return 1; };
43 int setMarker( int type );
44 int draw( Plot &plot, Datum &data );
45 int draw( Plot &plot, float rlat, float rlon, int type,
46 const char *data, const char *format );
47 int draw( Plot &plot, EarthPoint &ept, int type,
48 const char *data, const char *format );
49 int draw( Plot &plot, float rlat, float rlon, int type,
50 float value, const char *format );
51 int draw( Plot &plot, EarthPoint &ept, int type,
52 float value, const char *format );
53 int print();
54 };
55}
56#endif
This class sets up color fill parameters.
Definition: ColorFill.h:8
This class stores point data attributes.
Definition: DatumAttr.h:7
This class plots point data.
Definition: DatumPlot.h:13
int print()
Definition: DatumPlot.cc:567
int setType(const char *str)
Definition: DatumPlot.cc:126
int init()
Definition: DatumPlot.cc:42
int setBase(float val)
Definition: DatumPlot.cc:167
int setColorTable(const char *str)
Definition: DatumPlot.cc:140
int setMarker(int type)
Definition: DatumPlot.cc:203
int setAttr(const char *str)
Definition: DatumPlot.cc:176
int setFormat(const char *str)
Definition: DatumPlot.cc:212
int setColorFill(const char *str)
Definition: DatumPlot.cc:149
int draw(Plot &plot, Datum &data)
Definition: DatumPlot.cc:222
int setParam(const char *str)
Definition: DatumPlot.cc:101
int setInterval(float val)
Definition: DatumPlot.cc:158
int setScale(float val)
Definition: DatumPlot.h:42
int setColor(const char *str)
Definition: DatumPlot.cc:194
DatumPlot()
Definition: DatumPlot.cc:34
This class stores raw point data.
Definition: Datum.h:7
This class stores plot attributes.
Definition: PlotAttr.h:8
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
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct defines earth point values (lat, lon, elev)
Definition: EarthPoint.h:5
This struct sets a 3D point (x, y, z)
Definition: Point.h:5