WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::DatumPlot Class Reference

This class plots point data. More...

#include "../include/DatumPlot.h"

Public Member Functions

 DatumPlot ()
 
int init ()
 
int setParam (const char *str)
 
int setType (const char *str)
 
int setColorTable (const char *str)
 
int setColorFill (const char *str)
 
int setInterval (float val)
 
int setBase (float val)
 
int setAttr (const char *str)
 
int setAttr (PlotAttr &pattr)
 
int setColor (const char *str)
 
int setFormat (const char *str)
 
int setScale (float val)
 
int setMarker (int type)
 
int draw (Plot &plot, Datum &data)
 
int draw (Plot &plot, float rlat, float rlon, int type, const char *data, const char *format)
 
int draw (Plot &plot, EarthPoint &ept, int type, const char *data, const char *format)
 
int draw (Plot &plot, float rlat, float rlon, int type, float value, const char *format)
 
int draw (Plot &plot, EarthPoint &ept, int type, float value, const char *format)
 
int print ()
 

Detailed Description

This class plots point data.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ DatumPlot()

DatumPlot::DatumPlot ( )

Constructor

References init().

Member Function Documentation

◆ draw() [1/5]

int DatumPlot::draw ( Plot plot,
Datum datum 
)

◆ draw() [2/5]

int DatumPlot::draw ( Plot plot,
EarthPoint ept,
int  type,
const char *  data,
const char *  format 
)

Draws single piece of data

Parameters
plotPlot object
eptEarthPoint location of data
typeType of output
See also
Datum::Type
Parameters
dataData to plot
formatFormatting parameters

References draw(), WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

◆ draw() [3/5]

int DatumPlot::draw ( Plot plot,
EarthPoint ept,
int  type,
float  value,
const char *  format 
)

Draw single piece of data specified as a value

Parameters
plotPlot object
eptEarthPoint location of data
rlonLongitude of data
typeType of output
See also
Datum::Type
Parameters
valueValue to plot
formatFormatting parameters

References draw(), WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

◆ draw() [4/5]

int DatumPlot::draw ( Plot plot,
float  rlat,
float  rlon,
int  type,
const char *  data,
const char *  format 
)

Draw single piece of data

Parameters
plotPlot object
rlatLatitude of data
rlonLongitude of data
typeType of output
See also
Datum::Type
Parameters
dataData to plot
formatFormatting parameters

References draw().

◆ draw() [5/5]

int DatumPlot::draw ( Plot plot,
float  rlat,
float  rlon,
int  type,
float  value,
const char *  format 
)

Draw single piece of data specified as a value

Parameters
plotPlot object
rlatLatitude of data
rlonLongitude of data
typeType of output
See also
Datum::Type
Parameters
valueValue to plot
formatFormatting parameters

References draw().

◆ init()

int DatumPlot::init ( )

◆ print()

int DatumPlot::print ( )

Prints object parameters

◆ setAttr() [1/2]

int DatumPlot::setAttr ( const char *  str)

Sets the plotting attributes

Parameters
strList of attributes

References WXP::DatumAttr::parse().

Referenced by WXP::CityPlot::draw(), WXP::MosPlot::draw(), init(), WXP::SfcPlot::setColor(), and WXP::UpaPlot::setColor().

◆ setAttr() [2/2]

int DatumPlot::setAttr ( PlotAttr pattr)

Sets the plotting attributes

Parameters
pattrAttribute data

◆ setBase()

int DatumPlot::setBase ( float  val)

Sets the fille base value used in color fill and other parameters

Parameters
valBase value

Referenced by init().

◆ setColor()

int DatumPlot::setColor ( const char *  str)

Sets the plotting color

Parameters
strPlot color

Referenced by setParam().

◆ setColorFill()

int DatumPlot::setColorFill ( const char *  str)

Sets the color fill parameters

Parameters
strColor fill string

References WXP::String::set().

Referenced by init(), and setParam().

◆ setColorTable()

int DatumPlot::setColorTable ( const char *  str)

Sets the color table parameters

Parameters
strColor table parameter

References WXP::String::set().

Referenced by init(), WXP::SfcPlot::setColorTable(), WXP::UpaPlot::setColorTable(), and setParam().

◆ setFormat()

int DatumPlot::setFormat ( const char *  str)

Sets output text format

Parameters
strFormat specification (see printf)

References WXP::StrLib::copy().

Referenced by init(), and setParam().

◆ setInterval()

int DatumPlot::setInterval ( float  val)

Sets the color fill interval

Parameters
valFill interval

Referenced by init().

◆ setMarker()

int DatumPlot::setMarker ( int  type)

Sets the marker type

Parameters
typeMarker type (
See also
GraphAttr)

Referenced by WXP::CityPlot::draw().

◆ setParam()

int DatumPlot::setParam ( const char *  str)

Sets the parameters within the class:

Parameters
strString to parse
sc=scale - Plot scale factor
ct=table - Color table
cof=fill - Color fill parameters
co=color - Data color
fm=format - Data output format (C printf)

References WXP::Strings::equal(), WXP::Strings::getNum(), WXP::Strings::getStringAfter(), setColor(), setColorFill(), setColorTable(), setFormat(), and setType().

Referenced by init(), WXP::MosPlot::setParam(), WXP::RawPlot::setParam(), WXP::SfcPlot::setParam(), and WXP::UpaPlot::setParam().

◆ setScale()

int WXP::DatumPlot::setScale ( float  val)
inline

Sets the scale factor of plots

Referenced by WXP::MdrPlot::setParam(), and WXP::RcmPlot::setParam().

◆ setType()

int DatumPlot::setType ( const char *  str)

Sets the color table parameters

Parameters
strColor table parameter

References WXP::Datum::DATA, WXP::StrLib::equal(), WXP::Datum::MARK, and WXP::Datum::TEXT.

Referenced by init(), and setParam().


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