WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
WXP::Datum Class Reference

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
 

Detailed Description

This class stores raw point data.

Author
Dan Vietor

Member Enumeration Documentation

◆ 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

Constructor & Destructor Documentation

◆ Datum()

Datum::Datum ( )

Constructor

References init().

Member Function Documentation

◆ getData()

const char * WXP::Datum::getData ( )
inline

◆ getFormat()

const char * WXP::Datum::getFormat ( )
inline

Returns the format

◆ getId()

const char * WXP::Datum::getId ( )
inline

Return station identifier

◆ getIndex()

int WXP::Datum::getIndex ( )
inline

Gets the index value

◆ getLat()

float WXP::Datum::getLat ( )
inline

Gets the latitude

References WXP::EarthPoint::lat.

◆ getLoc()

EarthPoint WXP::Datum::getLoc ( )
inline

◆ getLon()

float WXP::Datum::getLon ( )
inline

Gets the longitude

References WXP::EarthPoint::lon.

◆ getType()

int WXP::Datum::getType ( )
inline

Gets the plot type

◆ init()

int Datum::init ( )

◆ initVals()

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().

◆ setIndex()

int WXP::Datum::setIndex ( int  rindex)
inline

Sets an index value


The documentation for this class was generated from the following files: