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

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)
 

Detailed Description

This class has tools to manipulate domains.

Author
Dan Vietor

Member Function Documentation

◆ decode() [1/2]

int DomainTool::decode ( Domain domain,
const char *  str 
)
static

Sets the domain parameters given a string.

Return values
domainOutput domain class.
Parameters
strString containing projection information.

References decode(), and WXP::Domain::set().

◆ decode() [2/2]

int DomainTool::decode ( DomainVal val,
const char *  str 
)
static

◆ proj()

int DomainTool::proj ( const char *  proj)
static

Returns the projection type given a descriptive string

Parameters
projProjection string
ll = Lat/Lon
lat = Lat/Lon
polar = Polar Stereographic
ps = Polar Stereographic
sat = Satellite
lamb = Lambert Conformal
lc = Lambert Conformal
la = Lambert Azimuthal
az = Lambert Azimuthal
gn = Gnomic
or = Orthographic
mo = Mollweide
me = Mercator
pix = Pixel
xy = X/Y
xlogy = X/Log Y
xlogp = X/Log P
cat = Category/Y
skewt = SkewT
ema = Emagram
teph = Tephigram
rteph = Rotated Tephigram
therm = SkewT
stuve = Stuve
hodo = Hodogram
vert = X/Log P
xp = X/P
polar = Polar plot
zoom = Zoom of unknown domain
size = Size
miss = Missing
Returns
Projection type code
See also
DomainVal

References WXP::Domain::getProj(), and proj().

Referenced by proj().

◆ set() [1/2]

int DomainTool::set ( Domain domain)
static

Sets the domain parameters from resource values.

Return values
domainOutput domain class.
Parameters
defDefault domain string.

References decode().

◆ set() [2/2]

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.

Return values
domainOutput domain class.
Parameters
defDefault domain string.

References decode().

Referenced by WXP::HurPlot::getDomain(), WXP::LightPlot::getDomain(), WXP::MdrPlot::getDomain(), WXP::MosPlot::getDomain(), WXP::RadPlot::getDomain(), WXP::RawPlot::getDomain(), WXP::RcmPlot::getDomain(), WXP::SfcPlot::getDomain(), WXP::UpaPlot::getDomain(), WXP::WarnPlot::getDomain(), and WXP::WatchPlot::getDomain().


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