WXP C++ Library Version 6.74.9
|
This class defines mid-level graphics commands. Calls the Graph object for actual graphics output. More...
#include "../include/Plot.h"
Public Member Functions | |
Plot () | |
Plot (const char *param) | |
~Plot () | |
int | init () |
int | open (const char *param) |
int | open () |
int | close () |
int | setParam (const char *param) |
int | setLogo (const char *rlogo) |
int | setFixed (bool val) |
int | getDevice (String &str) |
void | callback (const char *ev_str, const char *ev_data, const void *data) |
int | permitCallbacks (int val) |
int | initPanel () |
int | setDefaultPanel (const char *str) |
int | setPanel (Rect &offset, float aspect, int halign, int valign) |
int | setPanel (Rect &offset, float aspect) |
int | setPanel (Rect &offset, Domain &ndomain) |
int | setPanel (Domain &domain) |
int | setPanel (Rect &offset) |
int | setPanel () |
int | setPanel (int ind) |
int | setPanelDomain (int ind, Domain &dom) |
int | getPanelDomain (int ind, Domain &dom) |
int | setDomain (Rect &offset, float aspect, int halign, int valign) |
int | setDomain (Rect &offset, float aspect) |
int | setDomain (Rect &offset, Domain &ndomain) |
int | setDomain (Domain &domain) |
int | setDomain (DomainVal &dv) |
int | setDomain (Rect &offset) |
int | setDomain () |
DomainVal | getDomainVal () |
Domain | getDomain () |
int | getProj () |
float | getPLat () |
float | getPLon () |
float | getDomVert () |
float | getDomAspect () |
float | getDomCLat () |
float | getDomCLon () |
int | getDomNx () |
int | getDomNy () |
float | getDomDx () |
float | getDomDy () |
float | getVert () |
bool | withinDomain (Point &pt) |
bool | withinDomain (EarthPoint &ept) |
bool | withinDomainExt (Point &pt, int ext) |
bool | withinDomainExt (EarthPoint &ept, int ext) |
int | whereDomain (Point &pt) |
int | whereDomain (EarthPoint &ept) |
int | newPanel (const char *params) |
int | clear () |
int | clearRect (Rect &rect) |
int | update () |
int | manage () |
bool | isManaged () |
int | end () |
bool | isTimeSync () |
int | setTimeSync (bool val) |
int | setDate (Date &rdate) |
bool | isDateSet () |
int | setForeHour (float val) |
int | setDataSource (const char *str) |
ColorMap | getColorMap () |
int | getColorMap (ColorMap &map) |
int | getNumFill () |
int | allocColor (int ind) |
int | setColorMap (ColorMap &cmap) |
int | getColorRGB (int ind, float &r, float &g, float &b) |
int | getColorValue (const char *name) |
int | cropLine (Point &pt1, Point &pt2) |
int | cropLine (Points &pts) |
int | drawLine (float x1, float y1, float x2, float y2) |
int | drawLine (Point &pt1, Point &pt2) |
int | drawLine (EarthPoint &ept1, EarthPoint &ept2) |
int | drawLine (GridPoint &gpt1, GridPoint &gpt2) |
int | drawLine (Points &pts) |
int | drawLine (EarthPoints &data) |
int | drawSpline (Points &data) |
int | drawSpline (EarthPoints &data) |
int | drawRect (float x1, float y1, float x2, float y2) |
int | drawRect (Rect &rect) |
int | drawCircle (Point &pt, float rad) |
int | drawCircle (EarthPoint &ept, float rad) |
int | setLineColor (const char *name) |
int | setLineColor (int ind) |
int | setLineWidth (float width) |
int | setLineStyle (int style) |
int | setLine () |
int | setLine (PlotAttr &plot) |
int | setLine (const char *str) |
int | drawFill (Points &pts) |
int | drawFill (EarthPoints &data) |
int | drawFill (Rect &data) |
int | drawFillarea (Points &data) |
int | setFillColor (const char *name) |
int | setFillColor (int ind) |
int | setFillStyle (int index) |
int | setFill () |
int | setFill (PlotAttr &plot) |
int | setFill (const char *str) |
int | drawText (float x, float y, const char *text) |
int | drawText (Point &pt, const char *text) |
int | drawText (EarthPoint &ept, const char *text) |
int | drawText (GridPoint &gpt, const char *text) |
int | drawFormText (Point &pt, const char *format,...) |
int | drawFormText (EarthPoint &ept, const char *format,...) |
int | setTextHeight (float height) |
int | setTextWeight (float weight) |
int | setTextAlign (int hor, int vert) |
int | setTextColor (const char *name) |
int | setTextColor (int ind) |
int | setTextExpansion (float expansion) |
int | setTextSpacing (float space) |
int | setTextCharWidth (float width) |
int | setTextDirection (float x, float y) |
int | setFont (const char *str) |
int | setDropShadow (int val) |
int | getDropShadow () |
int | setText () |
int | setText (PlotAttr &plot) |
int | setText (PlotAttr &plot, float scale) |
int | setText (const char *str) |
int | drawMark (float x, float y) |
int | drawMark (Point &pt) |
int | drawMark (EarthPoint &ept) |
int | drawMark (GridPoint &gpt) |
int | setMarkColor (const char *name) |
int | setMarkColor (int ind) |
int | setMarkType (const char *type) |
int | setMarkType (int type) |
int | setMarkSize (float size) |
int | setMarkWeight (float weight) |
int | setMark () |
int | setMark (PlotAttr &plot) |
int | setMark (PlotAttr &plot, float scale) |
int | setMark (const char *str) |
int | setSymbol (const char *symbol) |
int | drawSymbol (Point pt, const char *string, float size) |
int | setImageAlign (int h, int v) |
int | drawImage (Image &image) |
int | drawImage (Image &image, int bgcolor) |
int | drawImage (Image &image, float x, float y) |
int | drawImage (Image &image, int bgcolor, float x, float y) |
int | drawImage (const char *file, float x, float y) |
int | drawImage (const char *file, float x, float y, const char *option) |
int | getTran () |
int | activateTran (int val) |
int | setViewport (int num, Rect rect) |
int | getViewport (Rect &lim) |
int | setWindow (int num, Rect rect) |
int | getWindow (Rect &lim) |
int | tran (EarthPoint &ept, Point &pt) |
int | tran (Point &pt, EarthPoint &ept) |
int | tran (GridPoint &gpt, Point &pt) |
int | tran (Point &pt, GridPoint &gpt) |
int | tran (EarthPoint &ept, GridPoint &gpt) |
int | tran (GridPoint &gpt, EarthPoint &ept) |
int | tran (int val, Point &pt) |
int | tran (int val, GridPoint &gpt) |
int | tran (int val, EarthPoint &ept) |
int | tran (Domain &dom, Point &pt1, Point &pt2) |
int | tranPlotWindow (float x1, float y1, float &x2, float &y2) |
int | tranWindow (int tran1, Point &pt1, int tran2, Point &pt2) |
int | adjustDom (Point &pt) |
int | adjustDom (Points &pts) |
float | adjustDir (float dir, Point &pt) |
int | offsetPoint (Point pt, float dir, float rad, Point &opt) |
int | offsetPoint (EarthPoint pt, float dir, float rad, EarthPoint &opt) |
float | getMapFactor (EarthPoint ept) |
int | getInverse () |
int | addCallback (const char *ev, Listener *list, const void *data) |
int | message (const char *str,...) |
int | getViewDomain (Domain &domain) |
int | drawBorder () |
int | saveImage (const char *file, const char *type) |
int | saveImage (const char *file) |
int | getImage (Image &image) |
int | setLabelColor (const char *str) |
int | setLabelFormat (const char *str) |
int | addLabel (const char *loc, const char *label) |
int | setLabel (const char *loc, const char *label) |
int | getLabelPosIndex (const char *str) |
int | printLabels () |
int | formatLabel (const char *form, char *str, int len) |
int | clearLabels () |
int | drawLabels () |
int | setBarLocate (const char *str) |
int | setBarRange (Range &rrange) |
int | setBar (ColorFill &rfile, Range &rrange) |
int | setBar (ColorFill &rfill) |
int | setBar (Enhance &renh) |
int | drawBar (Range &rrange) |
int | drawEnhBar () |
int | drawBar () |
int | setCursor (int type) |
int | done () |
int | newFrame () |
int | clearFrame () |
int | deleteFrame (int ind) |
int | deleteAllFrames () |
int | setFull (int val) |
int | getFull () |
int | setDrawing (const char *str) |
bool | isDrawing (int ind) |
int | printDrawing () |
int | wrapLine (Points &pts) |
int | offsetLine (Points &pts, int flag) |
int | printTran () |
int | printDomain () |
virtual void | callback (const char *ev_str, const char *ev_data, const void *data)=0 |
Static Public Member Functions | |
static int | decodeGeometryStr (const char *str, GeomBox &geom) |
static int | decodePanelStr (Rect rect, const char *str, GeomBox &geom) |
This class defines mid-level graphics commands. Calls the Graph object for actual graphics output.
Plot::Plot | ( | ) |
Constructor.
Plot::~Plot | ( | ) |
Destructor - closes window
References close().
int Plot::addLabel | ( | const char * | loc, |
const char * | str | ||
) |
Adds a label to the plot for the current layer
loc | The location (ul, uc, ur, ll, lc, lr) |
str | The label |
References WXP::StrLib::copy(), and WXP::PlotLabel::layer.
Referenced by WXP::FrontPlot::draw(), WXP::GridPlot::draw(), WXP::HurPlot::draw(), WXP::Lev2Plot::draw(), WXP::LightPlot::draw(), WXP::MeteoPlot::draw(), WXP::MosPlot::draw(), WXP::ProfPlot::draw(), WXP::RawPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::NidsPlot::drawData(), WXP::ContPlot::drawLabels(), and WXP::VectPlot::drawLabels().
int Plot::allocColor | ( | int | ind | ) |
Allocates a color in the color table. Looks in colormap and gets RGB values and then adds them to the device color table. The return is the hardware color value that is then saved in the colormap.
ind | The index in the colormap to allocate. |
References WXP::Graph::allocColor(), WXP::ColorMap::get(), WXP::ColorMap::getNum(), and WXP::ColorMap::setValue().
Referenced by setFill(), setFillColor(), setFillColor(), setLine(), setLineColor(), setLineColor(), setTextColor(), and setTextColor().
|
virtual |
The event callback
ev_str | String containing description of event |
ev_data | Event specific data |
data | User specific data |
Implements WXP::Listener.
References WXP::Graph::bell(), WXP::Graph::close(), WXP::StrLib::copy(), WXP::Graph::doCallback(), WXP::StrLib::equal(), WXP::Graph::getFrame(), WXP::Graph::getNumFrames(), WXP::Graph::isLooping(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::StrLib::replace(), WXP::Point::set(), WXP::Graph::setFrame(), WXP::Domain::tran(), WXP::Graph::unmanage(), WXP::Point::x, WXP::Domain::XLOGP, and WXP::Point::y.
int Plot::close | ( | ) |
int Plot::drawCircle | ( | EarthPoint & | ept, |
float | rad | ||
) |
Draws a circle relative to the projection
ept | Center of circle |
rad | Radius of circle in km |
References WXP::Points::add(), drawLine(), WXP::ColorMap::isColor(), and WXP::Domain::offsetLatLon().
int Plot::drawCircle | ( | Point & | pt, |
float | rad | ||
) |
Draws a circle
pt | Center of circle |
rad | Radius of circle in projection units |
References WXP::Graph::drawCircle(), and WXP::ColorMap::isColor().
Referenced by WXP::NidsPlot::drawData().
int Plot::drawFill | ( | Points & | pts | ) |
Draws a filled area
pts | Set of data points |
References WXP::Graph::drawFill(), WXP::Graph::getTran(), WXP::ColorMap::isColor(), WXP::Domain::offsetLine(), and WXP::Domain::wrapLine().
Referenced by WXP::Lev2Plot::draw(), WXP::RedbookPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::CloudPlot::draw(), WXP::WindPlot::drawBarb(), WXP::ContPlot::drawBoxFill(), WXP::ContPlot::drawFill(), drawFillarea(), and WXP::MapPlot::drawSegment().
int Plot::drawFill | ( | Rect & | data | ) |
Draws a filled rect
data | Set of data points |
References WXP::Graph::drawFill(), and WXP::ColorMap::isColor().
int Plot::drawFillarea | ( | Points & | data | ) |
int Plot::drawFormText | ( | Point & | pt, |
const char * | format, | ||
... | |||
) |
Draws formatted text
pt | Data point |
format | Text to draw (like printf) |
References WXP::Graph::drawText(), and WXP::ColorMap::isColor().
Referenced by WXP::MdrPlot::draw(), WXP::ProfPlot::draw(), WXP::UpaXSectPlot::draw(), WXP::DatumPlot::draw(), WXP::ContPlot::drawValues(), and WXP::VectPlot::drawVect().
int Plot::drawLine | ( | EarthPoints & | data | ) |
Draws a polyline
data | Set of data points |
References WXP::Points::add(), WXP::Points::clear(), drawLine(), WXP::EarthPoints::get(), WXP::EarthPoints::getNum(), WXP::ColorMap::isColor(), and WXP::Domain::tran().
int Plot::drawLine | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Draws a line
x1 | X coord of first point |
y1 | Y coord of first point |
x2 | X coord of second point |
y2 | Y coord of second point |
References WXP::Graph::drawLine(), and WXP::ColorMap::isColor().
Referenced by WXP::HurPlot::draw(), WXP::MetaPlot::draw(), WXP::ProfPlot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::XSectionPlot::draw(), WXP::DatumPlot::draw(), WXP::CloudPlot::draw(), WXP::WindPlot::drawBarb(), WXP::ContPlot::drawBoxLine(), drawCircle(), WXP::NidsPlot::drawData(), WXP::ContPlot::drawFill(), WXP::MapPlot::drawLatLon(), drawLine(), WXP::MapPlot::drawSegment(), WXP::WindPlot::drawTrack(), and WXP::WindPlot::drawVect().
Draws a line
pt1 | First point |
pt2 | Second point |
References WXP::Graph::drawLine(), WXP::Graph::getTran(), WXP::ColorMap::isColor(), WXP::Domain::offsetLine(), and WXP::Domain::wrapLine().
int Plot::drawLine | ( | Points & | pts | ) |
Draws a line
pts | Set of data points |
References WXP::Points::copy(), WXP::Graph::drawLine(), WXP::Points::getNum(), WXP::Domain::getProj(), WXP::Graph::getTran(), WXP::Points::getX(), WXP::ColorMap::isColor(), WXP::Domain::LATLON, WXP::Domain::MERC, WXP::Const::MISS, WXP::Domain::offsetLine(), and WXP::Domain::wrapLine().
int Plot::drawMark | ( | float | x, |
float | y | ||
) |
Draws a marker
pt | Data point to put marker |
References WXP::Graph::drawMark(), and WXP::ColorMap::isColor().
Referenced by WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::RedbookPlot::draw(), WXP::DatumPlot::draw(), and WXP::NidsPlot::drawData().
int Plot::drawMark | ( | Point & | pt | ) |
Draws a marker
pt | Data point to put marker |
References WXP::Graph::drawMark(), and WXP::ColorMap::isColor().
int Plot::drawRect | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Draws a rectangle
x1 | X coord of first point |
y1 | Y coord of first point |
x2 | X coord of second point |
y2 | Y coord of second point |
References WXP::Graph::drawRect(), and WXP::ColorMap::isColor().
Referenced by WXP::ThermPlot::draw(), and WXP::XSectionPlot::draw().
int Plot::drawRect | ( | Rect & | rect | ) |
Draws a rectangle
rect | Coordinates of rectangle |
References WXP::Graph::drawRect(), and WXP::ColorMap::isColor().
int Plot::drawSpline | ( | Points & | data | ) |
Draws a spline
data | Set of data points |
References WXP::Points::add(), WXP::Points::clear(), WXP::Points::copy(), WXP::Graph::drawLine(), WXP::Points::getNum(), WXP::Domain::getProj(), WXP::Points::getX(), WXP::ColorMap::isColor(), WXP::Domain::LATLON, WXP::Domain::MERC, WXP::Const::MISS, WXP::Domain::offsetLine(), and WXP::Domain::wrapLine().
int Plot::drawText | ( | float | x, |
float | y, | ||
const char * | text | ||
) |
Draws text
x | X location of text |
y | Y location of text |
text | Text to draw |
References drawText(), and WXP::Point::set().
Referenced by WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::RedbookPlot::draw(), WXP::ThermPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::XSectionPlot::draw(), WXP::MapPlot::draw(), WXP::DatumPlot::draw(), WXP::NidsPlot::drawData(), WXP::MapPlot::drawLatLon(), WXP::ContPlot::drawLineLabels(), WXP::ContPlot::drawMaxMin(), drawText(), WXP::ContPlot::drawValues(), and WXP::WindPlot::drawVect().
int Plot::drawText | ( | Point & | pt, |
const char * | text | ||
) |
Draws text
pt | Data point |
text | Text to draw |
References WXP::Graph::drawText(), and WXP::ColorMap::isColor().
int Plot::end | ( | ) |
Ends the plot. Draws border, adds labels and calls manage
References manage().
ColorMap Plot::getColorMap | ( | ) |
Returns the current active colormap
The | colormap class |
Referenced by WXP::Lev2Plot::draw(), WXP::LightPlot::draw(), WXP::DatumPlot::draw(), WXP::VectPlot::draw(), WXP::ContPlot::drawFill(), WXP::ImagePlot::drawImage(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawValues().
int Plot::manage | ( | ) |
Manages the plot. This processes events coming in from the keyboard and mouse.
References WXP::StrLib::equal(), and WXP::Graph::manage().
Referenced by end(), and WXP::Figure::manage().
int Plot::setColorMap | ( | ColorMap & | cmap | ) |
Sets the current active colormap. Future color references will use this colormap rather than anything used prior.
cmap | The colormap to use |
References WXP::ColorMap::add(), WXP::Graph::allocColor(), WXP::ColorMap::getName(), WXP::ColorMap::getNum(), WXP::ColorMap::getRGB(), and WXP::ColorMap::setValue().
Referenced by WXP::HurPlot::draw(), WXP::Lev2Plot::draw(), WXP::LightPlot::draw(), WXP::RcmPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::DatumPlot::draw(), WXP::VectPlot::draw(), WXP::ContPlot::drawFill(), WXP::ImagePlot::drawImage(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawValues().
int Plot::setFill | ( | ) |
Resets fill attributes to default
References WXP::ColorMap::getValue(), WXP::Graph::setFillColor(), and WXP::Graph::setFillStyle().
Referenced by WXP::FrontPlot::draw(), WXP::GridPlot::draw(), WXP::HurPlot::draw(), WXP::Lev2Plot::draw(), WXP::MosPlot::draw(), WXP::ProfPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::VectPlot::draw(), WXP::NidsPlot::drawData(), and WXP::ContPlot::drawFill().
int Plot::setFill | ( | PlotAttr & | attr | ) |
Sets fill attributes
attr | Plot attributes |
References allocColor(), WXP::ColorMap::getInd(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), WXP::Graph::setFillColor(), and WXP::Graph::setFillStyle().
int Plot::setFillColor | ( | const char * | name | ) |
Sets fill color from color name
ind | Color name |
References allocColor(), WXP::ColorMap::getInd(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setFillColor().
Referenced by WXP::RedbookPlot::draw(), WXP::DatumPlot::draw(), and WXP::ContPlot::drawFill().
int Plot::setFillColor | ( | int | ind | ) |
Sets fill color from colormap index
ind | Colormap index |
References allocColor(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setFillColor().
int Plot::setFillStyle | ( | int | index | ) |
Sets fill style
ind | Style index |
References WXP::Graph::setFillStyle().
Referenced by WXP::RedbookPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::CloudPlot::draw(), WXP::WindPlot::drawBarb(), and WXP::ContPlot::drawFill().
int Plot::setLabel | ( | const char * | loc, |
const char * | str | ||
) |
Set a label on the plot for a location (overrides any other labels)
loc | The location (ul, uc, ur, ll, lc, lr) |
str | The label |
References WXP::StrLib::copy(), and WXP::PlotLabel::layer.
int Plot::setLabelColor | ( | const char * | str | ) |
int Plot::setLabelFormat | ( | const char * | str | ) |
Sets the label formatting for all subsequent labels
str | Format string |
References WXP::StrLib::copy().
int Plot::setLine | ( | ) |
Resets line attributes to default
References WXP::ColorMap::getValue(), WXP::Graph::setDropShadow(), WXP::Graph::setLineColor(), WXP::Graph::setLineStyle(), and WXP::Graph::setLineWidth().
Referenced by WXP::FrontPlot::draw(), WXP::GridPlot::draw(), WXP::HurPlot::draw(), WXP::MapPlot::draw(), WXP::MiscPlot::draw(), WXP::MosPlot::draw(), WXP::ProfPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::ThermPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::XSectionPlot::draw(), WXP::VectPlot::draw(), WXP::NidsPlot::drawData(), WXP::ContPlot::drawFill(), WXP::ContPlot::drawLine(), and WXP::VectPlot::drawStreamline().
int Plot::setLine | ( | PlotAttr & | attr | ) |
Sets line attributes
attr | Plot attributes |
References allocColor(), WXP::ColorMap::getInd(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), WXP::Graph::setDropShadow(), WXP::Graph::setLineColor(), WXP::Graph::setLineStyle(), and WXP::Graph::setLineWidth().
int Plot::setLineColor | ( | const char * | name | ) |
Sets line color from color name
ind | Color name |
References allocColor(), WXP::ColorMap::getInd(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setLineColor().
Referenced by WXP::MetaPlot::draw(), WXP::MapPlot::draw(), WXP::DatumPlot::draw(), and WXP::ContPlot::drawFill().
int Plot::setLineColor | ( | int | ind | ) |
Sets line color from color index
ind | Colormap index |
References allocColor(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setLineColor().
int Plot::setLineStyle | ( | int | style | ) |
Sets line style
style | Line style |
References WXP::Graph::setLineStyle().
Referenced by WXP::ContPlot::drawLine().
int Plot::setLineWidth | ( | float | width | ) |
Sets line width
width | Line width |
References WXP::Graph::setLineWidth().
Referenced by WXP::MetaPlot::draw(), WXP::DatumPlot::draw(), and WXP::ContPlot::drawLine().
int Plot::setMark | ( | ) |
Resets marker attributes to default
References WXP::ColorMap::getValue(), WXP::Graph::setMarkColor(), WXP::Graph::setMarkSize(), and WXP::Graph::setMarkWeight().
Referenced by WXP::GridPlot::draw(), WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::MiscPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectPlot::draw(), and WXP::NidsPlot::drawData().
int Plot::setText | ( | ) |
Resets text attributes to default
References WXP::ColorMap::getValue(), WXP::Graph::setFont(), WXP::Graph::setTextAlign(), WXP::Graph::setTextCharWidth(), WXP::Graph::setTextColor(), WXP::Graph::setTextDirection(), WXP::Graph::setTextExpansion(), WXP::Graph::setTextHeight(), and WXP::Graph::setTextWeight().
Referenced by WXP::FrontPlot::draw(), WXP::GridPlot::draw(), WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::MapPlot::draw(), WXP::MiscPlot::draw(), WXP::MosPlot::draw(), WXP::ProfPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::ThermPlot::draw(), WXP::UpaPlot::draw(), WXP::UpaXSectCont::draw(), WXP::UpaXSectPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::XSectionPlot::draw(), WXP::NidsPlot::drawData(), WXP::ContPlot::drawFill(), WXP::ContPlot::drawLineLabels(), WXP::ContPlot::drawMaxMin(), WXP::ContPlot::drawValues(), and WXP::VectPlot::drawVect().
int Plot::setTextColor | ( | const char * | name | ) |
Sets text color from color name
ind | Color name |
References allocColor(), WXP::ColorMap::getInd(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setTextColor().
Referenced by WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::MapPlot::draw(), and WXP::DatumPlot::draw().
int Plot::setTextColor | ( | int | ind | ) |
Sets text color from colormap index
ind | Colormap index |
References allocColor(), WXP::ColorMap::getValue(), WXP::ColorMap::isColor(), and WXP::Graph::setTextColor().
int Plot::setTextDirection | ( | float | x, |
float | y | ||
) |
Sets text direction in terms of an up vector.
x | Vector X value |
y | Vector Y value |
References WXP::Graph::setTextDirection().
int Plot::update | ( | ) |
Updates the plot.
References WXP::Graph::update().