|
WXP C++ Library Version 6.74.9
|
This class plots NIDS data. More...
#include "../include/Lev2Plot.h"
Public Types | |
| enum | Type { RAW , COMP } |
Public Member Functions | |
| Lev2Plot () | |
| Lev2Plot (const char *str) | |
| int | init () |
| int | setParam (const char *str) |
| int | setFile () |
| int | setInput (const char *type) |
| int | setId (const char *str) |
| int | setNameConv (const char *name) |
| int | setHour (const char *str) |
| 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 | getInitDate (Date &date) |
| int | getDateOffset () |
| int | getLoopType () |
| int | getNumFrames () |
| int | getDomain (EarthPoint ept, Domain &domain) |
| int | getDomain (Domain &domain) |
| int | setVariable (const char *variable) |
| int | setColorTable (const char *str) |
| int | setColorFill (const char *str) |
| int | setMap (bool val) |
| int | getSync () |
| int | draw (Plot &plot) |
| void | callback (const char *ev_str, const char *ev_data, const void *data) |
| int | print () |
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 NIDS data.
| Lev2Plot::Lev2Plot | ( | ) |
Constructor. Initializes class data
References init().
|
virtual |
Event callback
Implements WXP::Listener.
|
virtual |
Draws the NIDS plot
| plot | The plot class to draw to |
Implements WXP::Drawing.
References WXP::Points::add(), WXP::Plot::addLabel(), WXP::Domain::adjustDir(), WXP::Points::clear(), WXP::Lev2File::COMP, WXP::DomainVal::compareProj(), WXP::DateTool::createLabel(), WXP::MapPlot::draw(), WXP::Plot::drawFill(), WXP::Const::DRC, WXP::ColorMap::get(), WXP::Domain::get(), WXP::Points::get(), WXP::String::get(), WXP::Plot::getColorMap(), WXP::Lev2Info::getDate(), WXP::Domain::getDx(), WXP::Lev2Info::getId(), WXP::Lev2Info::getLat(), WXP::Lev2Info::getLon(), WXP::Wxp::isDebug(), WXP::Lev2File::isOpen(), WXP::Const::MISS, WXP::Points::offset(), WXP::Lev2File::open(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::Lev2Data::print(), WXP::Lev2File::RAW, WXP::ColorFile::read(), WXP::Lev2File::REF, WXP::EarthPoint::set(), WXP::Plot::setColorMap(), WXP::ColorFill::setFill(), WXP::Plot::setFill(), WXP::Lev2File::SPECT, WXP::Domain::tran(), WXP::Lev2File::VEL, WXP::Point::x, and WXP::Point::y.
|
virtual |
Gets the date information from the input file
| date | Date values |
Implements WXP::Drawing.
|
virtual |
Gets the offset time between frames in loop
| date | Date information |
Implements WXP::Drawing.
|
virtual |
Gets the default domain from the data file
| domain | Output domain |
Implements WXP::Drawing.
References WXP::Lev2File::COMP, WXP::Lev2Info::getLat(), WXP::Lev2Info::getLon(), WXP::Lev2File::isOpen(), WXP::Lev2File::open(), WXP::Lev2File::RAW, and WXP::EarthPoint::set().
|
virtual |
|
virtual |
Gets the available loop types
Implements WXP::Drawing.
References WXP::Drawing::LOOP_DATE.
|
virtual |
|
inlinevirtual |
Tells whether an object should be used to sync other to it
Implements WXP::Drawing.
|
virtual |
Initializes object
Implements WXP::Drawing.
References WXP::Lev2File::REF, setFile(), setId(), setNameConv(), and setParam().
Referenced by Lev2Plot().
|
virtual |
Method for printing class info
Implements WXP::Drawing.
| int Lev2Plot::setColorFill | ( | const char * | str | ) |
| int Lev2Plot::setColorTable | ( | const char * | str | ) |
|
virtual |
Sets the file parameters such as input file type
Implements WXP::Drawing.
References setInput(), and setNameConv().
Referenced by init().
|
virtual |
Sets the filename to be used. Prompts the user for the filename
Implements WXP::Drawing.
Referenced by setParam().
|
virtual |
|
virtual |
Sets the filename from a Date class.
| date | Date values to use in setting up filename |
Implements WXP::Drawing.
|
virtual |
Sets the filename from a Date class.
| date | Date values to use in setting up filename |
Implements WXP::Drawing.
|
inlinevirtual |
| int Lev2Plot::setId | ( | const char * | str | ) |
Sets the station ID
| str | Station ID |
References WXP::StrLib::copy().
Referenced by init(), and setParam().
|
virtual |
Sets the input file type
| type | The file type |
Implements WXP::Drawing.
References WXP::StrLib::equal().
Referenced by setFile(), setNameConv(), and setParam().
|
virtual |
Sets the file name convention
| name | The name convention |
Implements WXP::Drawing.
References setInput(), and WXP::StrLib::valid().
Referenced by init(), setFile(), and setParam().
|
virtual |
Sets basic parameters given a string of options
| str | String containing parameters site - plots site |
Implements WXP::Drawing.
References WXP::Strings::equal(), WXP::Strings::getInt(), WXP::Strings::getLength(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::Strings::getStringAfter(), WXP::Strings::iequal(), WXP::Strings::scanf(), setColorFill(), setColorTable(), setFilename(), setId(), setInput(), and setNameConv().
Referenced by init().