WXP C++ Library Version 6.74.9
|
This class plots city database data on a map. More...
#include "../include/CityPlot.h"
Public Member Functions | |
CityPlot () | |
int | init () |
int | setParam (const char *str) |
int | setFile () |
int | setInput (const char *type) |
int | setNameConv (const char *name) |
int | setFilename () |
int | setFilename (const char *file) |
int | setFilename (Date &date) |
int | setFilename (Date &date, const char *param) |
int | setForeTime (const char *fore) |
int | getDate (Date &date) |
int | getDomain (Domain &domain) |
int | getInitDate (Date &date) |
int | getDateOffset () |
int | getLoopType () |
int | getNumFrames () |
int | getSync () |
int | draw (Plot &plot) |
void | callback (const char *ev_str, const char *ev_data, const void *data) |
int | print () |
virtual int | init ()=0 |
virtual int | getDomain (Domain &domain)=0 |
virtual int | setFile ()=0 |
virtual int | setInput (const char *type)=0 |
virtual int | setNameConv (const char *name)=0 |
virtual int | setFilename ()=0 |
virtual int | setFilename (const char *file)=0 |
virtual int | setFilename (Date &date)=0 |
virtual int | setFilename (Date &date, const char *param)=0 |
virtual int | setForeTime (const char *fore)=0 |
virtual int | setParam (const char *str)=0 |
virtual int | getDate (Date &date)=0 |
virtual int | getLoopType ()=0 |
virtual int | getInitDate (Date &date)=0 |
virtual int | getDateOffset ()=0 |
virtual int | getNumFrames ()=0 |
virtual int | getSync ()=0 |
virtual int | draw (Plot &plot)=0 |
virtual int | print ()=0 |
virtual void | callback (const char *ev_str, const char *ev_data, const void *data)=0 |
Additional Inherited Members | |
Static Public Attributes inherited from WXP::Drawing | |
static const int | LOOP_NONE = 0 |
static const int | LOOP_DATE = 1 |
static const int | LOOP_FORE = 2 |
This class plots city database data on a map.
CityPlot::CityPlot | ( | ) |
Constructor. Initializes class data
References init().
|
virtual |
Event callback
Implements WXP::Listener.
|
virtual |
Plots the city database information on a map
plot | The plot to draw to |
Implements WXP::Drawing.
References WXP::StatPrior::check(), WXP::CityFile::close(), WXP::CityTool::compareData(), WXP::Datum::DATA, WXP::DatumPlot::draw(), WXP::String::get(), WXP::CityData::getId(), WXP::CityData::getLat(), WXP::CityData::getLon(), WXP::CityData::getNum(), WXP::Strings::getNum(), WXP::CityData::getPrior(), WXP::CityData::getRegion(), WXP::CityData::getState(), WXP::CityData::getWmo(), WXP::Datum::init(), WXP::CityFile::isOpen(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::CityFile::read(), WXP::StrLib::replace(), WXP::Strings::scanf(), WXP::DatumPlot::setAttr(), WXP::DatumPlot::setMarker(), and WXP::Datum::TEXT.
|
virtual |
Gets the date of the datafile (not used)
date | Date class with date/time information |
Implements WXP::Drawing.
References WXP::Date::init().
|
virtual |
Gets the offset time between frames in loop
date | Date information |
Implements WXP::Drawing.
|
virtual |
Gets the default domain information for data
domain | The Domain class to return the domain information |
Implements WXP::Drawing.
|
virtual |
Gets the initial date for a loop
date | Date information |
Implements WXP::Drawing.
References WXP::Date::init().
|
virtual |
Gets the available loop types
Implements WXP::Drawing.
References WXP::Drawing::LOOP_NONE.
|
virtual |
|
inlinevirtual |
Tells whether an object should be used to sync other to it
Implements WXP::Drawing.
|
virtual |
|
virtual |
Method for printing class info
Implements WXP::Drawing.
|
virtual |
Sets the file types
Implements WXP::Drawing.
|
virtual |
Sets the filenames
Implements WXP::Drawing.
References WXP::FileTool::addPath(), WXP::Wxp::getDatabasePath(), and WXP::String::set().
Referenced by setFilename(), and setFilename().
|
virtual |
Sets the city database filename
file | Filename to use |
Implements WXP::Drawing.
References WXP::FileTool::addPath(), WXP::Wxp::getDatabasePath(), and WXP::String::set().
|
virtual |
Sets the filename to use based on a specific date
date | Date to use |
Implements WXP::Drawing.
References setFilename().
|
virtual |
Sets the filename to use based on a specific date and parameters
date | Date to use |
param | Parameters to use for offset to date |
Implements WXP::Drawing.
References setFilename().
|
inlinevirtual |
Sets forecast time (ignored)
Implements WXP::Drawing.
|
virtual |
|
virtual |
A method for setting input file name convention
name | Name convention to use |
Implements WXP::Drawing.
|
virtual |
Sets the class parameters from string
str | String to parse for parameters |
Implements WXP::Drawing.
References WXP::Strings::getInt(), WXP::Strings::getLength(), WXP::Strings::getNum(), WXP::Strings::getString(), and WXP::Strings::iequal().
Referenced by init().