|
WXP C++ Library Version 6.74.9
|
This class stores raw point data. More...
#include "../include/Datum.h"
Public Types | |
| enum | Type { NONE , DATA , VALUE , TEXT , MARK , INT , CLOUD , WBARB , CBARB , DBARB , VECT , AVECT , WTRACK , SYMB , LINE , CONST } |
Public Member Functions | |
| Datum () | |
| int | init () |
| int | initVals () |
| int | set (float rlat, float rlon, int type, const char *data, const char *format) |
| int | set (float rlat, float rlon, int type, float val, const char *format) |
| int | set (float rlat, float rlon, int type, float val1, float val2, const char *format) |
| int | set (EarthPoint ept, int type, const char *data, const char *format) |
| int | set (EarthPoint ept, int type, float val, const char *format) |
| int | set (EarthPoint ept, int type, float val1, float val2, const char *format) |
| int | setId (const char *rid) |
| const char * | getId () |
| int | setLoc (EarthPoint ept) |
| int | setLoc (float rlat, float rlon) |
| EarthPoint | getLoc () |
| float | getLat () |
| float | getLon () |
| int | setIndex (int rindex) |
| int | getIndex () |
| int | setType (int t) |
| int | getType () |
| int | setData (char str) |
| int | setData (const char *str) |
| int | clearData () |
| int | formatData (const char *format,...) |
| const char * | getData () |
| const char * | getFormat () |
| int | setFormat (const char *str) |
| int | addFormat (const char *str) |
| int | setValue (int i, float val) |
| int | offsetValue (int i, float val) |
| int | scaleValue (int i, float val) |
| int | setValue (float val) |
| int | setValue (float val1, float val2) |
| float | getValue (int i) |
| int | print () |
Friends | |
| class | DatumPlot |
This class stores raw point data.
| enum WXP::Datum::Type |
Plot types
| Enumerator | |
|---|---|
| DATA | Data, either formatted value or text |
| VALUE | A floating point value |
| TEXT | Text string |
| MARK | Marker, text is type |
| INT | Integer value |
| CLOUD | Cloud symbol, text is type |
| WBARB | Wind barb, value[0] = dir, value[1] = spd |
| CBARB | Wind barb, offset for cloud symbol, value[0] = dir, value[1] = spd |
| DBARB | Wind barb, offset for dot, value[0] = dir, value[1] = spd |
| VECT | Wind vector, value[0] = dir, value[1] = spd |
| AVECT | Wind vector, dot for no wind, value[0] = dir, value[1] = spd |
| WTRACK | Wind track, value[0] = dir, value[1] = spd |
| SYMB | Data symbol, text is type |
| LINE | Draws a line with either previous or next Datum |
| Datum::Datum | ( | ) |
Constructor
References init().
|
inline |
Returns the data
Referenced by WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), WXP::SfcDataTool::compute(), WXP::RawPlot::draw(), and WXP::DatumPlot::draw().
|
inline |
Returns the format
|
inline |
Return station identifier
|
inline |
Gets the index value
|
inline |
Gets the latitude
References WXP::EarthPoint::lat.
|
inline |
Gets the location
Referenced by WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), WXP::RawPlot::draw(), and WXP::DatumPlot::draw().
|
inline |
Gets the longitude
References WXP::EarthPoint::lon.
|
inline |
Gets the plot type
| int Datum::init | ( | ) |
Initializes the object
References WXP::EarthPoint::init(), and WXP::Const::MISS.
Referenced by WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), Datum(), WXP::CityPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), and WXP::UpaPlot::draw().
| int Datum::initVals | ( | ) |
Initializes just the data values, not the parameters
References WXP::Const::MISS.
Referenced by WXP::MosDataTool::compute(), WXP::SfcDataTool::compute(), and WXP::UpaDataTool::compute().
|
inline |
Sets an index value