WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
DatumAttr.h
1#ifndef _WINC_DATUMATTR
2#define _WINC_DATUMATTR
3
4#include <WXP/PlotAttr.h>
5
6namespace WXP {
7 class DatumAttr {
8 int type;
9 float scale;
10 float dx, dy;
11 int halign, valign;
12 float weight;
13 float height;
14 float width;
15 float expan;
16 int shadow;
17 int marker;
18 float min, max;
19 int skip;
20 char form[10];
21 char color[20];
22 char font[120];
23 char symbol[40];
24 char resrc[20];
25
26 public:
27 DatumAttr();
28 int init();
29 int set( PlotAttr &pattr );
30 int set( const char *str );
31 int setType( int rtype );
32 int setColor( const char *col );
33 int setFont( const char *fnt );
34 int setSymbol( const char *symb );
35 int setMarker( int rmarker );
36 int setFormat( const char *str );
37 int setResrc( const char *res );
38 int parse( const char *str );
39 int print();
40
42 inline int getType(){ return type; };
44 inline float getScale(){ return scale; };
46 inline float getDx(){ return dx; };
48 inline float getDy(){ return dy; };
50 inline float getHeight(){ return height; };
52 inline float getWidth(){ return width; };
54 inline int getHalign(){ return halign; };
56 inline int getValign(){ return valign; };
58 inline int getMarker(){ return marker; };
60 inline const char *getForm(){ return form; };
62 inline const char *getColor(){ return color; };
64 inline const char *getSymbol(){ return symbol; };
66 inline const char *getFont(){ return font; };
67
68 friend class DatumPlot;
69 };
70}
71#endif
This class stores point data attributes.
Definition DatumAttr.h:7
float getWidth()
Definition DatumAttr.h:52
int parse(const char *str)
Definition DatumAttr.cc:108
const char * getForm()
Definition DatumAttr.h:60
float getHeight()
Definition DatumAttr.h:50
float getDx()
Definition DatumAttr.h:46
int getHalign()
Definition DatumAttr.h:54
const char * getColor()
Definition DatumAttr.h:62
float getScale()
Definition DatumAttr.h:44
int getMarker()
Definition DatumAttr.h:58
float getDy()
Definition DatumAttr.h:48
int getValign()
Definition DatumAttr.h:56
const char * getSymbol()
Definition DatumAttr.h:64
const char * getFont()
Definition DatumAttr.h:66
int getType()
Definition DatumAttr.h:42
This class plots point data.
Definition DatumPlot.h:13
This class stores plot attributes.
Definition PlotAttr.h:8
All WXP classes fall under the WXP namespace.
Definition Angle.h:4