WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::RedbookPlot Class Reference

This class plots redbook graphics files. More...

#include "../include/RedbookPlot.h"

Inheritance diagram for WXP::RedbookPlot:
WXP::Drawing WXP::Listener

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 ()

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

Detailed Description

This class plots redbook graphics files.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ RedbookPlot()

RedbookPlot::RedbookPlot ( )

Constructor. Initializes class

References init(), and setFile().

Member Function Documentation

◆ callback()

void RedbookPlot::callback ( const char * ev_str,
const char * ev_data,
const void * data )
virtual

Sets the callback for processing data from display

Parameters
ev_strThe event type
ev_dataThe event data such as cursor location
dataThe user defined data attached to event

Implements WXP::Listener.

◆ draw()

◆ getDate()

int RedbookPlot::getDate ( Date & date)
virtual

Gets the date information from the input file

Return values
dateThe file date

Implements WXP::Drawing.

◆ getDateOffset()

int RedbookPlot::getDateOffset ( )
virtual

Gets the date offset from name convention for loops

Returns
The offset in seconds

Implements WXP::Drawing.

◆ getDomain()

int RedbookPlot::getDomain ( Domain & rdomain)
virtual

◆ getInitDate()

int RedbookPlot::getInitDate ( Date & date)
virtual

Gets the date of the initial file (in loops)

Parameters
dateThe file date

Implements WXP::Drawing.

◆ getLoopType()

int RedbookPlot::getLoopType ( )
virtual

Returns the default loop type

Returns
The loop type (date)

Implements WXP::Drawing.

References WXP::Drawing::LOOP_DATE.

◆ getNumFrames()

int RedbookPlot::getNumFrames ( )
virtual

Gets the possible number of frames in a loop

Returns
Number of frames

Implements WXP::Drawing.

◆ getSync()

int WXP::RedbookPlot::getSync ( )
inlinevirtual

Returns whether object is a time sync

Implements WXP::Drawing.

◆ init()

int RedbookPlot::init ( )
virtual

Intializes the class

Implements WXP::Drawing.

References setColor(), setColorTable(), setDomain(), setFile(), setNameConv(), setParam(), and setTimezone().

Referenced by RedbookPlot().

◆ print()

int RedbookPlot::print ( )
virtual

Prints class information

Implements WXP::Drawing.

◆ setColor()

int RedbookPlot::setColor ( const char * str)

Sets the color parameters

Parameters
strColor string

Referenced by init(), and setParam().

◆ setColorTable()

int RedbookPlot::setColorTable ( const char * str)

Sets the color table parameters

Parameters
strColor table parameter

Referenced by init(), and setParam().

◆ setDomain() [1/2]

int RedbookPlot::setDomain ( const char * str)

Sets the domain for interpreting XY coordinates

Parameters
domainCoordinate domain

References WXP::DomainTool::decode().

Referenced by init().

◆ setDomain() [2/2]

int RedbookPlot::setDomain ( Domain & rdomain)

Sets the domain for interpreting XY coordinates

Parameters
domainCoordinate domain

◆ setFile()

int RedbookPlot::setFile ( )
virtual

Sets up the file parameters

Implements WXP::Drawing.

References setHour(), setInput(), and setNameConv().

Referenced by init(), and RedbookPlot().

◆ setFilename() [1/4]

int RedbookPlot::setFilename ( )
virtual

Sets the input file name

Implements WXP::Drawing.

◆ setFilename() [2/4]

int RedbookPlot::setFilename ( const char * file)
virtual

Sets a specific file name

Parameters
strThe filename to use

Implements WXP::Drawing.

◆ setFilename() [3/4]

int RedbookPlot::setFilename ( Date & date)
virtual

Sets the input file date. The file name is derived using name convention

Parameters
dateThe file date

Implements WXP::Drawing.

◆ setFilename() [4/4]

int RedbookPlot::setFilename ( Date & date,
const char * param )
virtual

Sets the input file date with parameters. This is passed to the name convention to set file name

Parameters
dateThe file date
paramThe name convention parameters

Implements WXP::Drawing.

◆ setForeTime()

int WXP::RedbookPlot::setForeTime ( const char * fore)
inlinevirtual

Sets the forecast time (ignored)

Implements WXP::Drawing.

◆ setHour()

int RedbookPlot::setHour ( const char * str)

Sets the specific file time

Parameters
strThe file time (hour)

Referenced by setFile().

◆ setInput()

int RedbookPlot::setInput ( const char * str)
virtual

Sets the input file type

Parameters
strThe file type

Implements WXP::Drawing.

Referenced by setFile().

◆ setMap()

int WXP::RedbookPlot::setMap ( bool val)
inline

Sets whether object is to draw map or not

Referenced by setParam().

◆ setNameConv()

int RedbookPlot::setNameConv ( const char * file)
virtual

Sets the file name convention

Parameters
nameThe name convention

Implements WXP::Drawing.

Referenced by init(), and setFile().

◆ setParam()

int RedbookPlot::setParam ( const char * str)
virtual

Sets the parameters within the class:

Parameters
strString 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().

◆ setPath()

int RedbookPlot::setPath ( const char * path)

Sets the input file path

Parameters
pathThe file path

◆ setTimezone()

int RedbookPlot::setTimezone ( const char * str)

Sets the timezone for dates

Parameters
strZone

Referenced by init().


The documentation for this class was generated from the following files: