This class has tools to manipulate domains. More...
#include "../include/DomainTool.h"
Static Public Member Functions | |
| static int | proj (const char *proj) |
| static int | decode (DomainVal &val, const char *str) |
| static int | decode (Domain &domain, const char *str) |
| static int | set (Domain &domain, const char *def) |
| static int | set (Domain &domain) |
This class has tools to manipulate domains.
| int DomainTool::decode | ( | Domain & | domain, | |
| const char * | str | |||
| ) | [static] |
Sets the domain parameters given a string.
| domain | Output domain class. |
| str | String containing projection information. |
References decode(), and WXP::Domain::set().
| int DomainTool::decode | ( | DomainVal & | val, | |
| const char * | str | |||
| ) | [static] |
Decodes a domain string and puts appropriate information into the DomainVal structure.
| val | DomainVal structure with output values |
| str | String to decode |
References WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::Strings::equal(), WXP::String::get(), WXP::Region::get(), WXP::Strings::getString(), WXP::StrLib::iequal(), WXP::Strings::index(), WXP::Const::MISS, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Wxp::outWarning(), WXP::DomainVal::proj, WXP::Domain::PSTEREO, WXP::Domain::SIZE, and WXP::Domain::ZOOM.
Referenced by decode(), WXP::RedbookPlot::draw(), WXP::WatchPlot::getDomain(), WXP::RedbookPlot::getDomain(), WXP::FrontPlot::getDomain(), WXP::SfcPlot::init(), WXP::GifFile::read(), WXP::SatUniFile::readHeader(), WXP::ImgWxpFile::readHeader(), and set().
| int DomainTool::proj | ( | const char * | proj | ) | [static] |
Returns the projection type given a descriptive string
| proj | Projection string |
References WXP::Domain::CAT, WXP::Domain::EMA, WXP::Domain::GNOM, WXP::StrLib::iequal(), WXP::Domain::LAMB, WXP::Domain::LAMBAZ, WXP::Domain::LATLON, WXP::Domain::MERC, WXP::Const::MISS, WXP::Domain::MOLL, WXP::Domain::ORTHO, WXP::Domain::PIXEL, WXP::Domain::POLAR, WXP::Domain::PSTEREO, WXP::Domain::RTEPH, WXP::Domain::SAT, WXP::Domain::SIZE, WXP::Domain::SKEWT, WXP::Domain::STUVE, WXP::Domain::TEPH, WXP::Domain::XLOGP, WXP::Domain::XP, WXP::Domain::XY, and WXP::Domain::ZOOM.
| int DomainTool::set | ( | Domain & | domain | ) | [static] |
Sets the domain parameters from resource values.
| domain | Output domain class. |
| def | Default domain string. |
References decode().
| int DomainTool::set | ( | Domain & | domain, | |
| const char * | def | |||
| ) | [static] |
Sets the domain parameters from resource values. It first checks "plot_domain" resource and then sets to default value.
| domain | Output domain class. |
| def | Default domain string. |
References decode().
Referenced by WXP::UpaPlot::getDomain(), WXP::SfcPlot::getDomain(), WXP::RcmPlot::getDomain(), WXP::RawPlot::getDomain(), WXP::RadPlot::getDomain(), WXP::MosPlot::getDomain(), and WXP::MdrPlot::getDomain().
1.6.1