|
WXP C++ Library Version 6.74.9
|
This class plots point data. More...
#include "../include/DatumPlot.h"
Public Member Functions | |
| DatumPlot () | |
| int | init () |
| int | setParam (const char *str) |
| int | setType (const char *str) |
| int | setColorTable (const char *str) |
| int | setColorFill (const char *str) |
| int | setInterval (float val) |
| int | setBase (float val) |
| int | setAttr (const char *str) |
| int | setAttr (PlotAttr &pattr) |
| int | setColor (const char *str) |
| int | setFormat (const char *str) |
| int | setScale (float val) |
| int | setMarker (int type) |
| int | draw (Plot &plot, Datum &data) |
| int | draw (Plot &plot, float rlat, float rlon, int type, const char *data, const char *format) |
| int | draw (Plot &plot, EarthPoint &ept, int type, const char *data, const char *format) |
| int | draw (Plot &plot, float rlat, float rlon, int type, float value, const char *format) |
| int | draw (Plot &plot, EarthPoint &ept, int type, float value, const char *format) |
| int | print () |
This class plots point data.
| DatumPlot::DatumPlot | ( | ) |
Constructor
References init().
Draws a single datum
References WXP::Datum::AVECT, WXP::Datum::CBARB, WXP::Datum::CLOUD, WXP::Datum::DATA, WXP::Datum::DBARB, WXP::CloudPlot::draw(), WXP::WindPlot::drawBarbMap(), WXP::Plot::drawFormText(), WXP::Plot::drawLine(), WXP::Plot::drawMark(), WXP::Plot::drawText(), WXP::WindPlot::drawTrack(), WXP::WindPlot::drawVectMap(), WXP::String::get(), WXP::StrLib::getChar(), WXP::Plot::getColorMap(), WXP::Datum::getData(), WXP::Datum::getLoc(), WXP::DatumAttr::getSymbol(), WXP::StrLib::iequal(), WXP::Convert::KTtoKMH(), WXP::EarthPoint::lat, WXP::Datum::LINE, WXP::Datum::MARK, WXP::Const::MISS, WXP::Convert::NMtoKM(), WXP::Point::offset(), WXP::DatumAttr::parse(), WXP::ColorFile::read(), WXP::Wind::set(), WXP::EarthPoint::set(), WXP::Plot::setColorMap(), WXP::Plot::setFillColor(), WXP::Plot::setLineColor(), WXP::Plot::setLineWidth(), WXP::Plot::setTextColor(), WXP::Datum::SYMB, WXP::Datum::TEXT, WXP::String::valid(), WXP::StrLib::valid(), WXP::Datum::VALUE, WXP::Datum::VECT, WXP::Datum::WBARB, WXP::Datum::WTRACK, WXP::Point::x, and WXP::Point::y.
Referenced by WXP::CityPlot::draw(), WXP::HurPlot::draw(), WXP::MosPlot::draw(), WXP::RawPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), draw(), draw(), draw(), and draw().
| int DatumPlot::draw | ( | Plot & | plot, |
| EarthPoint & | ept, | ||
| int | type, | ||
| const char * | data, | ||
| const char * | format | ||
| ) |
Draws single piece of data
| plot | Plot object |
| ept | EarthPoint location of data |
| type | Type of output |
| data | Data to plot |
| format | Formatting parameters |
References draw(), WXP::EarthPoint::lat, and WXP::EarthPoint::lon.
| int DatumPlot::draw | ( | Plot & | plot, |
| EarthPoint & | ept, | ||
| int | type, | ||
| float | value, | ||
| const char * | format | ||
| ) |
Draw single piece of data specified as a value
| plot | Plot object |
| ept | EarthPoint location of data |
| rlon | Longitude of data |
| type | Type of output |
| value | Value to plot |
| format | Formatting parameters |
References draw(), WXP::EarthPoint::lat, and WXP::EarthPoint::lon.
| int DatumPlot::draw | ( | Plot & | plot, |
| float | rlat, | ||
| float | rlon, | ||
| int | type, | ||
| const char * | data, | ||
| const char * | format | ||
| ) |
Draw single piece of data
| plot | Plot object |
| rlat | Latitude of data |
| rlon | Longitude of data |
| type | Type of output |
| data | Data to plot |
| format | Formatting parameters |
References draw().
| int DatumPlot::draw | ( | Plot & | plot, |
| float | rlat, | ||
| float | rlon, | ||
| int | type, | ||
| float | value, | ||
| const char * | format | ||
| ) |
Draw single piece of data specified as a value
| plot | Plot object |
| rlat | Latitude of data |
| rlon | Longitude of data |
| type | Type of output |
| value | Value to plot |
| format | Formatting parameters |
References draw().
| int DatumPlot::init | ( | ) |
Initializes the object
References WXP::Datum::DATA, WXP::ColorFill::init(), WXP::Const::MISS, setAttr(), setBase(), setColorFill(), setColorTable(), setFormat(), setInterval(), setParam(), and setType().
Referenced by DatumPlot(), WXP::RawPlot::init(), WXP::SfcPlot::init(), and WXP::UpaPlot::init().
| int DatumPlot::print | ( | ) |
Prints object parameters
| int DatumPlot::setAttr | ( | const char * | str | ) |
Sets the plotting attributes
| str | List of attributes |
References WXP::DatumAttr::parse().
Referenced by WXP::CityPlot::draw(), WXP::MosPlot::draw(), init(), WXP::SfcPlot::setColor(), and WXP::UpaPlot::setColor().
| int DatumPlot::setAttr | ( | PlotAttr & | pattr | ) |
Sets the plotting attributes
| pattr | Attribute data |
| int DatumPlot::setBase | ( | float | val | ) |
Sets the fille base value used in color fill and other parameters
| val | Base value |
Referenced by init().
| int DatumPlot::setColor | ( | const char * | str | ) |
| int DatumPlot::setColorFill | ( | const char * | str | ) |
Sets the color fill parameters
| str | Color fill string |
References WXP::String::set().
Referenced by init(), and setParam().
| int DatumPlot::setColorTable | ( | const char * | str | ) |
Sets the color table parameters
| str | Color table parameter |
References WXP::String::set().
Referenced by init(), WXP::SfcPlot::setColorTable(), WXP::UpaPlot::setColorTable(), and setParam().
| int DatumPlot::setFormat | ( | const char * | str | ) |
Sets output text format
| str | Format specification (see printf) |
References WXP::StrLib::copy().
Referenced by init(), and setParam().
| int DatumPlot::setInterval | ( | float | val | ) |
| int DatumPlot::setMarker | ( | int | type | ) |
Sets the marker type
| type | Marker type ( |
Referenced by WXP::CityPlot::draw().
| int DatumPlot::setParam | ( | const char * | str | ) |
Sets the parameters within the class:
| str | String to parse sc=scale - Plot scale factor ct=table - Color table cof=fill - Color fill parameters co=color - Data color fm=format - Data output format (C printf) |
References WXP::Strings::equal(), WXP::Strings::getNum(), WXP::Strings::getStringAfter(), setColor(), setColorFill(), setColorTable(), setFormat(), and setType().
Referenced by init(), WXP::MosPlot::setParam(), WXP::RawPlot::setParam(), WXP::SfcPlot::setParam(), and WXP::UpaPlot::setParam().
|
inline |
Sets the scale factor of plots
Referenced by WXP::MdrPlot::setParam(), and WXP::RcmPlot::setParam().
| int DatumPlot::setType | ( | const char * | str | ) |
Sets the color table parameters
| str | Color table parameter |
References WXP::Datum::DATA, WXP::StrLib::equal(), WXP::Datum::MARK, and WXP::Datum::TEXT.
Referenced by init(), and setParam().