WXP C++ Library Version 6.74.9
|
This class plots redbook graphics files. More...
#include "../include/RedbookPlot.h"
Public Member Functions | |
RedbookPlot () | |
int | init () |
int | setParam (const char *str) |
int | setPath (const char *path) |
int | setFile () |
int | setInput (const char *file) |
int | setNameConv (const char *file) |
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 | setDomain (const char *str) |
int | setDomain (Domain &rdomain) |
int | getDomain (Domain &rdomain) |
int | setColorTable (const char *str) |
int | setColor (const char *str) |
int | setTimezone (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 redbook graphics files.
|
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 redbook graphics data
plot | The plot object to draw to |
Implements WXP::Drawing.
References WXP::Points::add(), WXP::Plot::addLabel(), WXP::FileTool::addPath(), WXP::Wxp::checkMessage(), WXP::Points::clear(), WXP::File::close(), WXP::StrLib::copy(), WXP::DateTool::createLabel(), WXP::DomainTool::decode(), WXP::MapPlot::draw(), WXP::CloudPlot::draw(), WXP::Plot::drawFill(), WXP::Plot::drawLine(), WXP::Plot::drawMark(), WXP::Plot::drawText(), WXP::StrLib::equal(), WXP::RedbookVector::flag, WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::Domain::getDy(), WXP::File::getLine(), WXP::Filename::getName(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::Points::getX(), WXP::Points::getY(), WXP::Point::init(), WXP::RedbookFile::isOpen(), WXP::Domain::isSet(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::RedbookVector::num, WXP::Point::offset(), WXP::File::open(), WXP::Wxp::outDebug(), WXP::Wxp::outMessage(), WXP::RedbookFile::plotParam(), WXP::Domain::print(), WXP::RedbookFile::procPacket(), WXP::RedbookVector::pts, WXP::RedbookFile::readHeader(), WXP::RedbookFile::readPacket(), WXP::GridPoint::set(), WXP::Filename::setFile(), WXP::Plot::setFillColor(), WXP::Plot::setFillStyle(), WXP::Plot::setLine(), WXP::Plot::setText(), WXP::RedbookFile::text(), WXP::Domain::tran(), WXP::StrLib::valid(), WXP::RedbookFile::vector(), WXP::Point::x, and WXP::Point::y.
|
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
rdomain | The default domain |
Implements WXP::Drawing.
References WXP::DomainTool::decode(), WXP::Filename::getName(), WXP::RedbookFile::getPi(), WXP::Domain::init(), WXP::RedbookFile::isOpen(), WXP::Domain::isSet(), WXP::Wxp::outMessage(), and WXP::RedbookFile::readHeader().
|
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 |
|
inlinevirtual |
Returns whether object is a time sync
Implements WXP::Drawing.
|
virtual |
Intializes the class
Implements WXP::Drawing.
References WXP::Domain::init(), setColor(), setColorTable(), setDomain(), setFile(), setNameConv(), setParam(), and setTimezone().
Referenced by RedbookPlot().
|
virtual |
Prints class information
Implements WXP::Drawing.
int RedbookPlot::setColor | ( | const char * | str | ) |
Sets the color parameters
str | Color string |
References WXP::String::set().
Referenced by init(), and setParam().
int RedbookPlot::setColorTable | ( | const char * | str | ) |
Sets the color table parameters
str | Color table parameter |
References WXP::String::set().
Referenced by init(), and setParam().
int RedbookPlot::setDomain | ( | const char * | str | ) |
Sets the domain for interpreting XY coordinates
domain | Coordinate domain |
References WXP::DomainTool::decode().
Referenced by init().
int RedbookPlot::setDomain | ( | Domain & | rdomain | ) |
Sets the domain for interpreting XY coordinates
domain | Coordinate domain |
|
virtual |
Sets up the file parameters
Implements WXP::Drawing.
References setHour(), setInput(), setNameConv(), and WXP::Filename::setNumFiles().
Referenced by init(), and RedbookPlot().
|
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::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 RedbookPlot::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
Referenced by setParam().
|
virtual |
Sets the file name convention
name | The name convention |
Implements WXP::Drawing.
References WXP::Filename::setNameConv(), and WXP::Filename::setNumFiles().
|
virtual |
Sets the parameters within the class:
str | String to parse ct=file - Color table file co=color - Plotting color fill=pat - Fill pattern for polygons proj=# - Sets projection flag (1,2) type=str - Type of plot, lookup in redbook.lup to find label map - Plots a map sync - Specifes object as time sync |
Implements WXP::Drawing.
References WXP::StrLib::copy(), WXP::Strings::equal(), WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::getString(), WXP::Strings::getStringAfter(), WXP::Strings::iequal(), setColor(), setColorTable(), and setMap().
Referenced by init().
int RedbookPlot::setPath | ( | const char * | path | ) |
int RedbookPlot::setTimezone | ( | const char * | str | ) |
Sets the timezone for dates
str | Zone |
References WXP::Timezone::set().
Referenced by init().