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

This class plots cross section grid. More...

#include "../include/XSectionPlot.h"

Inheritance diagram for WXP::XSectionPlot:
WXP::Drawing

Public Member Functions

 XSectionPlot (const char *str)
int init ()
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 setVertAxis (float rmin, float rmax, float rinc)
int setHorAxis (float rmin, float rmax)
int setLabels (Strings &labs)
int setHorDist (int i, float val)
float pcoord (float p)
float getX (float x)
float getX (int ind)
float getY (float y)
int draw (Plot &plot)
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 cross section grid.

Author
Dan Vietor

Member Function Documentation

◆ draw()

int XSectionPlot::draw ( Plot & plot)
virtual

Method for plotting the actual data

Parameters
plotThe plot class specifying window and parameters for plotting

Implements WXP::Drawing.

References WXP::Plot::drawLine(), WXP::Plot::drawRect(), WXP::Plot::drawText(), WXP::Plot::setLine(), WXP::Plot::setText(), WXP::Point::x, and WXP::Point::y.

Referenced by WXP::ProfPlot::draw(), WXP::UpaXSectCont::draw(), and WXP::UpaXSectPlot::draw().

◆ getDate()

int XSectionPlot::getDate ( Date & date)
virtual

Gets the file date (unused)

  • Return values
    dateThe file date

Implements WXP::Drawing.

◆ getDateOffset()

int XSectionPlot::getDateOffset ( )
virtual

Returns the date offset (unused)

Implements WXP::Drawing.

◆ getDomain()

int XSectionPlot::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 WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Domain::print(), WXP::DomainVal::proj, WXP::Domain::set(), and WXP::Domain::XLOGP.

◆ getInitDate()

int XSectionPlot::getInitDate ( Date & date)
virtual

Gets the initial date (unused)

  • Return values
    dateThe date

Implements WXP::Drawing.

References WXP::Date::init().

◆ getLoopType()

int XSectionPlot::getLoopType ( )
virtual

Returns the loop type (none)

Implements WXP::Drawing.

References WXP::Drawing::LOOP_NONE.

◆ getNumFrames()

int XSectionPlot::getNumFrames ( )
virtual

Gets the number of frames (unused)

Implements WXP::Drawing.

◆ getSync()

int WXP::XSectionPlot::getSync ( )
inlinevirtual

Returns whether object is time sync (unused)

Implements WXP::Drawing.

◆ init()

int XSectionPlot::init ( )
virtual

Initializes object

Implements WXP::Drawing.

References WXP::Const::MISS.

◆ print()

int XSectionPlot::print ( )
virtual

Method for printing class info

Implements WXP::Drawing.

◆ setFile()

int XSectionPlot::setFile ( )
virtual

Sets the file name (unused)

Implements WXP::Drawing.

◆ setFilename() [1/4]

int XSectionPlot::setFilename ( )
virtual

Sets the file name (unused)

Implements WXP::Drawing.

◆ setFilename() [2/4]

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

Sets the file name (unused)

  • Parameters
    nameThe file name

Implements WXP::Drawing.

◆ setFilename() [3/4]

int XSectionPlot::setFilename ( Date & date)
virtual

Sets the file name (unused)

  • Parameters
    dateThe file date

Implements WXP::Drawing.

◆ setFilename() [4/4]

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

Sets the file name (unused)

  • Parameters
    dateThe date
    paramThe parameters

Implements WXP::Drawing.

◆ setForeTime()

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

Sets forecast time (ignored)

Implements WXP::Drawing.

◆ setInput()

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

A method for setting input file type

Parameters
nameName convention to use

Implements WXP::Drawing.

◆ setNameConv()

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

Sets the file name (unused)

  • Parameters
    nameName convention

Implements WXP::Drawing.

◆ setParam()

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

Sets specific parameters for the plot given a string

Parameters
strString specifying parameters

Implements WXP::Drawing.

References WXP::Strings::getNum().


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