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

This class plots thermodynamic diagrams (no soundings). More...

#include "../include/ThermPlot.h"

Inheritance diagram for WXP::ThermPlot:
WXP::Drawing

Public Types

enum  Type {
  SKEWT , STUVE , EMA , TEPH ,
  RTEPH , HODO
}

Public Member Functions

 ThermPlot (const char *str)
int init ()
int setType (int rtype)
int setType (const char *str)
int getType ()
int getDomain (Domain &domain)
int setParam (const char *str)
int setFile ()
int setInput (const char *str)
int setNameConv (const char *name)
int setFilename ()
int setFilename (const char *name)
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 getSync ()
int setGridColor (const char *str)
int setLabelColor (const char *str)
int setVertAxis (float rmin, float rmax, float rinc)
int setHorAxis (float rmin, float rmax, float rinc)
int draw (Plot &plot)
int print ()

Static Public Member Functions

static DomainVal getDomain (int type)
static int getType (const char *str)

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 thermodynamic diagrams (no soundings).

Author
Dan Vietor

Member Function Documentation

◆ draw()

◆ getDate()

int ThermPlot::getDate ( Date & date)
virtual

Gets the file date (unused)

Return values
dateThe file date

Implements WXP::Drawing.

◆ getDateOffset()

int ThermPlot::getDateOffset ( )
virtual

Returns the date offset (unused)

Implements WXP::Drawing.

◆ getDomain()

int ThermPlot::getDomain ( Domain & domain)
virtual

A method for getting a default domain from the data. This is handy for data types that are for a specific domain like NIDS data.

Return values
domainDefault domain

Implements WXP::Drawing.

References getDomain(), and WXP::Domain::set().

Referenced by WXP::SoundPlot::getDomain(), and getDomain().

◆ getInitDate()

int ThermPlot::getInitDate ( Date & date)
virtual

Gets the initial date (unused)

Return values
dateThe date

Implements WXP::Drawing.

References WXP::Date::init().

◆ getLoopType()

int ThermPlot::getLoopType ( )
virtual

Returns the loop type (none)

Implements WXP::Drawing.

References WXP::Drawing::LOOP_NONE.

◆ getNumFrames()

int ThermPlot::getNumFrames ( )
virtual

Gets the number of frames (unused)

Implements WXP::Drawing.

◆ getSync()

int WXP::ThermPlot::getSync ( )
inlinevirtual

Returns whether object is time sync (unused)

Implements WXP::Drawing.

◆ init()

int ThermPlot::init ( )
virtual

Initializes object

Implements WXP::Drawing.

◆ print()

int ThermPlot::print ( )
virtual

Method for printing class info

Implements WXP::Drawing.

◆ setFile()

int ThermPlot::setFile ( )
virtual

Sets the file name (unused)

Implements WXP::Drawing.

◆ setFilename() [1/4]

int ThermPlot::setFilename ( )
virtual

Sets the file name (unused)

Implements WXP::Drawing.

◆ setFilename() [2/4]

int ThermPlot::setFilename ( const char * name)
virtual

Sets the file name (unused)

Parameters
nameThe file name

Implements WXP::Drawing.

◆ setFilename() [3/4]

int ThermPlot::setFilename ( Date & date)
virtual

Sets the file name (unused)

Parameters
dateThe file date

Implements WXP::Drawing.

◆ setFilename() [4/4]

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

Sets the file name (unused)

Parameters
dateThe date
paramThe parameters

Implements WXP::Drawing.

◆ setForeTime()

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

Sets forecast time (ignored)

Implements WXP::Drawing.

◆ setInput()

int ThermPlot::setInput ( const char * type)
virtual

A method for setting input file type

Parameters
nameName convention to use

Implements WXP::Drawing.

◆ setNameConv()

int ThermPlot::setNameConv ( const char * name)
virtual

Sets the file name (unused)

Parameters
nameName convention

Implements WXP::Drawing.

◆ setParam()

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

Sets specific parameters for the plot given a string

Parameters
strString specifying parameters

Implements WXP::Drawing.

References WXP::Strings::equal(), WXP::Strings::getNum(), and WXP::Strings::getStringAfter().


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