WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
Datum.h
1
#ifndef _WINC_DATUM
2
#define _WINC_DATUM
3
4
#include <WXP/EarthPoint.h>
5
6
namespace
WXP
{
7
class
Datum
{
8
char
id
[20];
9
EarthPoint
ept;
10
int
type;
/* Type of data */
11
int
index;
/* Index of data */
12
char
format[80];
/* Local Format */
13
char
data[40];
/* String value for a station */
14
float
value[5];
/* Value at station */
15
16
public
:
17
Datum
();
18
int
init
();
19
int
initVals
();
20
int
set(
float
rlat,
float
rlon,
int
type,
const
char
*data,
const
char
*format );
21
int
set(
float
rlat,
float
rlon,
int
type,
float
val,
const
char
*format );
22
int
set(
float
rlat,
float
rlon,
int
type,
float
val1,
float
val2,
const
char
*format );
23
int
set(
EarthPoint
ept,
int
type,
const
char
*data,
const
char
*format );
24
int
set(
EarthPoint
ept,
int
type,
float
val,
const
char
*format );
25
int
set(
EarthPoint
ept,
int
type,
float
val1,
float
val2,
const
char
*format );
26
int
setId(
const
char
*rid );
28
inline
const
char
*
getId
(){
return
id; };
29
int
setLoc(
EarthPoint
ept );
30
int
setLoc(
float
rlat,
float
rlon );
32
inline
EarthPoint
getLoc
(){
return
ept; };
34
inline
float
getLat
(){
return
ept.lat; };
36
inline
float
getLon
(){
return
ept.lon; };
38
inline
int
setIndex
(
int
rindex ){ index = rindex;
return
1; };
40
inline
int
getIndex
(){
return
index; };
41
int
setType(
int
t );
43
inline
int
getType
(){
return
type; };
44
int
setData(
char
str );
45
int
setData(
const
char
*str );
46
int
clearData();
47
int
formatData(
const
char
*format, ... );
49
inline
const
char
*
getData
(){
return
data; };
51
inline
const
char
*
getFormat
(){
return
format; };
52
int
setFormat(
const
char
*str );
53
int
addFormat(
const
char
*str );
54
int
setValue(
int
i,
float
val );
55
int
offsetValue(
int
i,
float
val );
56
int
scaleValue(
int
i,
float
val );
57
int
setValue(
float
val );
58
int
setValue(
float
val1,
float
val2 );
59
float
getValue(
int
i );
60
int
print();
61
62
friend
class
DatumPlot
;
64
enum
Type
{
65
NONE,
66
DATA
,
67
VALUE
,
68
TEXT
,
69
MARK
,
70
INT
,
71
CLOUD
,
72
WBARB
,
73
CBARB
,
74
DBARB
,
75
VECT
,
76
AVECT
,
77
WTRACK
,
78
SYMB
,
79
LINE
,
80
CONST
81
};
82
};
83
}
84
#endif
WXP::DatumPlot
This class plots point data.
Definition
DatumPlot.h:13
WXP::Datum::initVals
int initVals()
Definition
Datum.cc:45
WXP::Datum::setIndex
int setIndex(int rindex)
Definition
Datum.h:38
WXP::Datum::getId
const char * getId()
Definition
Datum.h:28
WXP::Datum::getLat
float getLat()
Definition
Datum.h:34
WXP::Datum::Type
Type
Definition
Datum.h:64
WXP::Datum::VALUE
@ VALUE
Definition
Datum.h:67
WXP::Datum::AVECT
@ AVECT
Definition
Datum.h:76
WXP::Datum::CLOUD
@ CLOUD
Definition
Datum.h:71
WXP::Datum::WTRACK
@ WTRACK
Definition
Datum.h:77
WXP::Datum::DBARB
@ DBARB
Definition
Datum.h:74
WXP::Datum::SYMB
@ SYMB
Definition
Datum.h:78
WXP::Datum::MARK
@ MARK
Definition
Datum.h:69
WXP::Datum::VECT
@ VECT
Definition
Datum.h:75
WXP::Datum::TEXT
@ TEXT
Definition
Datum.h:68
WXP::Datum::WBARB
@ WBARB
Definition
Datum.h:72
WXP::Datum::DATA
@ DATA
Definition
Datum.h:66
WXP::Datum::LINE
@ LINE
Definition
Datum.h:79
WXP::Datum::CBARB
@ CBARB
Definition
Datum.h:73
WXP::Datum::INT
@ INT
Definition
Datum.h:70
WXP::Datum::getLon
float getLon()
Definition
Datum.h:36
WXP::Datum::getData
const char * getData()
Definition
Datum.h:49
WXP::Datum::getType
int getType()
Definition
Datum.h:43
WXP::Datum::getLoc
EarthPoint getLoc()
Definition
Datum.h:32
WXP::Datum::getIndex
int getIndex()
Definition
Datum.h:40
WXP::Datum::Datum
Datum()
Definition
Datum.cc:20
WXP::Datum::init
int init()
Definition
Datum.cc:27
WXP::Datum::getFormat
const char * getFormat()
Definition
Datum.h:51
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::EarthPoint
This struct defines earth point values (lat, lon, elev).
Definition
EarthPoint.h:5
Generated on
for WXP C++ Library by
1.16.1