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 () |
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 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::Domain::get(), WXP::String::get(), WXP::Points::get(), WXP::Plot::getColorMap(), WXP::Lev2Info::getDate(), WXP::Domain::getDx(), WXP::Lev2Info::getId(), WXP::Lev2Info::getLat(), WXP::Lev2Info::getLon(), WXP::Filename::getName(), 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::Filename::setFile(), WXP::Plot::setFill(), WXP::ColorFill::setFill(), WXP::Lev2File::SPECT, WXP::Domain::tran(), WXP::String::valid(), WXP::Lev2File::VEL, WXP::Point::x, and WXP::Point::y.
Referenced by WXP::RadPlot::draw().
|
virtual |
Gets the date information from the input file
date | Date values |
Implements WXP::Drawing.
References WXP::Filename::getDate().
Referenced by WXP::RadPlot::getDate(), and WXP::RadPlot::getInitDate().
|
virtual |
Gets the offset time between frames in loop
date | Date information |
Implements WXP::Drawing.
Referenced by WXP::RadPlot::getDateOffset().
|
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::Filename::getName(), WXP::Lev2File::isOpen(), WXP::Lev2File::open(), WXP::Lev2File::RAW, and WXP::EarthPoint::set().
|
virtual |
Gets the initial date for a loop
date | Date information |
Implements WXP::Drawing.
References WXP::Filename::getDate(), and WXP::Filename::setFile().
|
virtual |
Gets the available loop types
Implements WXP::Drawing.
References WXP::Drawing::LOOP_DATE.
|
virtual |
Gets the possible number of frames in a loop
Implements WXP::Drawing.
References WXP::Filename::getNumFiles().
Referenced by WXP::RadPlot::getNumFrames().
|
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 | ) |
Sets the color fill parameters
str | Color fill string |
References WXP::String::set().
Referenced by WXP::RadPlot::setColorFill(), and setParam().
int Lev2Plot::setColorTable | ( | const char * | str | ) |
Sets the color table parameters
str | Color table parameter |
References WXP::String::set().
Referenced by WXP::RadPlot::setColorTable(), and setParam().
|
virtual |
Sets the file parameters such as input file type
Implements WXP::Drawing.
References setInput(), setNameConv(), and WXP::Filename::setNumFiles().
Referenced by init().
|
virtual |
Sets the filename to be used. Prompts the user for the filename
Implements WXP::Drawing.
References WXP::Filename::setFile().
Referenced by WXP::RadPlot::setFilename(), WXP::RadPlot::setFilename(), WXP::RadPlot::setFilename(), and setParam().
|
virtual |
Sets the filename to be used.
str | The filename to use |
Implements WXP::Drawing.
References WXP::Filename::setFile().
|
virtual |
Sets the filename from a Date class.
date | Date values to use in setting up filename |
Implements WXP::Drawing.
References WXP::Filename::setFile().
|
virtual |
Sets the filename from a Date class.
date | Date values to use in setting up filename |
Implements WXP::Drawing.
References WXP::Filename::setFile().
|
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 WXP::Filename::getType(), setInput(), WXP::Filename::setNameConv(), WXP::Filename::setNumFiles(), and WXP::StrLib::valid().
Referenced by init(), setFile(), WXP::RadPlot::setInput(), WXP::RadPlot::setNameConv(), 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(), WXP::Timezone::set(), setColorFill(), setColorTable(), setFilename(), setId(), setInput(), and setNameConv().
Referenced by init(), and WXP::RadPlot::setParam().