|
WXP C++ Library Version 6.74.9
|
This class plots severe weather warn boxes. More...
#include "../include/HurPlot.h"
Public Member Functions | |
| HurPlot () | |
| HurPlot (const char *param) | |
| int | init () |
| int | setParam (const char *str) |
| int | setFile () |
| int | setInput (const char *type) |
| int | setHour (const char *str) |
| int | setNameConv (const char *type) |
| int | setFilename () |
| int | setFilename (const char *str) |
| 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 (Domain &domain) |
| int | setScale (float val) |
| int | setTimezone (const char *str) |
| int | setShadow (int val) |
| int | setValidDate (const char *str) |
| int | setValidDate (Date &date) |
| int | setColorTable (const char *str) |
| int | setColor (const char *str) |
| int | setMap (bool val) |
| int | getSync () |
| int | readFile (const char *filename) |
| 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 severe weather warn boxes.
| HurPlot::HurPlot | ( | ) |
Constructor
References init().
| HurPlot::HurPlot | ( | const char * | param | ) |
|
virtual |
Sets the callback for processing data from display
| ev_str | The event type |
| ev_data | The event data such as cursor location |
| data | The user defined data attached to event |
Implements WXP::Listener.
|
virtual |
Plots the warn data
| plot | Plot object |
Implements WXP::Drawing.
References WXP::Plot::addLabel(), WXP::Wxp::checkMessage(), WXP::DateTool::createLabel(), WXP::MapPlot::draw(), WXP::DatumPlot::draw(), WXP::Plot::drawLine(), WXP::Plot::drawMark(), WXP::Plot::drawText(), WXP::String::get(), WXP::HurStorms::get(), WXP::Filename::getDate(), WXP::Filename::getDateval(), WXP::Filename::getName(), WXP::Strings::getString(), WXP::HurStorms::init(), WXP::Date::isSet(), WXP::Point::offset(), WXP::Wxp::outMessage(), WXP::Date::print(), WXP::ColorFile::read(), readFile(), WXP::Plot::setColorMap(), WXP::Filename::setFile(), WXP::Plot::setFill(), WXP::Plot::setLine(), WXP::Plot::setMark(), WXP::Filename::setNumFiles(), WXP::Plot::setText(), WXP::Datum::SYMB, and WXP::String::valid().
|
virtual |
Gets the date information from the input file
| date | The file date |
Implements WXP::Drawing.
References WXP::Filename::getDate().
|
virtual |
Gets the date offset from name convention for loops
Implements WXP::Drawing.
|
virtual |
Gets the default domain
| domain | The domain |
Implements WXP::Drawing.
References WXP::DomainTool::set().
|
virtual |
Gets the date of the initial file (in loops)
| date | The file date |
Implements WXP::Drawing.
References WXP::Filename::getDate(), and WXP::Filename::setFile().
|
virtual |
Returns the default loop type
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().
|
inlinevirtual |
Specifies whether object is a time sync
Implements WXP::Drawing.
|
virtual |
Initializes the object
Implements WXP::Drawing.
References WXP::Date::init(), setColor(), setFile(), setNameConv(), setParam(), setScale(), and setTimezone().
|
virtual |
| int HurPlot::readFile | ( | const char * | filename | ) |
Reads the warn file and saves warn data
| filename | Filename to decode |
References WXP::Wxp::isDebug().
Referenced by draw().
| int HurPlot::setColor | ( | const char * | str | ) |
Sets the color for line contours
| str | Color string |
References WXP::String::set().
Referenced by init(), and setParam().
| int HurPlot::setColorTable | ( | const char * | str | ) |
Sets the color table parameters
| str | Color table parameter |
References WXP::String::set().
Referenced by setParam().
|
virtual |
Sets up the file parameters
Implements WXP::Drawing.
References setHour(), setInput(), setNameConv(), and WXP::Filename::setNumFiles().
Referenced by init().
|
virtual |
|
virtual |
Sets a specific file name
| str | The filename to use |
Implements WXP::Drawing.
References WXP::Filename::setFile().
|
virtual |
Sets the input file date. The file name is derived using name convention
| date | The file date |
Implements WXP::Drawing.
References WXP::Date::isSet(), and WXP::Filename::setFile().
|
virtual |
Sets the input file date with parameters. This is passed to the name convention to set file name
| date | The file date |
| param | The name convention parameters |
Implements WXP::Drawing.
References WXP::Filename::setFile().
|
inlinevirtual |
Sets the forecast time (ignored)
Implements WXP::Drawing.
| int HurPlot::setHour | ( | const char * | str | ) |
Sets the specific file time
| str | The file time (hour) |
References WXP::Filename::setFixDate().
Referenced by setFile().
|
virtual |
Sets the input file type
| str | The file type |
Implements WXP::Drawing.
Referenced by setFile().
|
inline |
Sets whether object is to draw map or not
|
virtual |
Sets the file name convention
| name | The name convention |
Implements WXP::Drawing.
References WXP::Filename::setNameConv(), and WXP::Filename::setNumFiles().
|
virtual |
Sets the class parameters
| str | The parameters ct=file - Color table file co=cs,ct,cl - Colors for severe, tornado and text labeling nolabel - Don't label warn boxes slabel - Simple warn labels sh=## - Drop shadow width vdate=date - Valid date tz=zone - Time zone for labels sc=scale - Scale factor for text fill=pat - Fill pattern |
Implements WXP::Drawing.
References WXP::Strings::equal(), WXP::Strings::getFloat(), WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::Strings::getStringAfter(), setColor(), setColorTable(), setScale(), setShadow(), setTimezone(), and setValidDate().
| int HurPlot::setScale | ( | float | val | ) |
| int HurPlot::setShadow | ( | int | val | ) |
| int HurPlot::setTimezone | ( | const char * | str | ) |
Sets the timezone for date labels
| str | Timezone |
References WXP::Timezone::set().
Referenced by init(), and setParam().
| int HurPlot::setValidDate | ( | const char * | str | ) |
Sets the valid date for which warning will be displayed
| str | Date (yyyymmddhhnn) |
References WXP::Date::set().
Referenced by setParam().
| int HurPlot::setValidDate | ( | Date & | rdate | ) |
Sets the valid date for which warning will be displayed
| rdate | Date |