WXP C++ Library Version 6.74.9
|
This class coordinates the drawing of full plots. More...
#include "../include/Figure.h"
Public Member Functions | |
Figure () | |
Figure (const char *param) | |
~Figure () | |
int | init () |
int | setParam (const char *param) |
int | open (const char *param) |
int | open () |
int | close () |
int | setForeTime (const char *fore) |
int | setDomain (Domain &rdomain) |
int | setLoopType (int rtype) |
int | setRefresh (int val) |
int | setDate (Date &date) |
int | setDate (Date &date, int inc, int num) |
int | draw () |
int | startPlot () |
int | startPlot (Domain &rdomain) |
int | startPlot (Rect &offset, float aspect) |
int | startPlot (Rect &offset, Domain &rdomain) |
int | startPlot (Rect &offset) |
int | clearQueue () |
int | addDrawing (Drawing &draw) |
int | addPanel (const char *param) |
int | draw (Drawing &draw) |
int | drawFrame (Date &date) |
int | drawFrame (const char *fore) |
int | endPlot () |
int | drawPlot () |
int | updateLoop (Date &date) |
int | manage () |
int | setDrawing (const char *str) |
bool | isDrawing (int ind) |
void | callback (const char *ev_str, const char *ev_data, const void *data) |
virtual void | callback (const char *ev_str, const char *ev_data, const void *data)=0 |
This class coordinates the drawing of full plots.
Figure::Figure | ( | ) |
Constructor. Initializes drawing and setups callback.
References init().
Figure::Figure | ( | const char * | param | ) |
Constructor. Initializes drawing and opens plot.
References init(), open(), and setParam().
Figure::~Figure | ( | ) |
Destructor. Clears plot queue.
References close().
int Figure::addDrawing | ( | Drawing & | draw | ) |
Adds a Drawing object to the plot queue.
draw | Drawing object to add. |
References WXP::PlotItem::data, WXP::PlotItem::drawing, WXP::PlotItem::next, and WXP::PlotItem::type.
|
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::Wxp::checkMessage(), WXP::PlotItem::drawing, WXP::StrLib::equal(), WXP::Drawing::getDate(), WXP::Drawing::getLoopType(), WXP::Date::getSeconds(), WXP::Drawing::LOOP_DATE, WXP::Drawing::LOOP_NONE, WXP::PlotItem::next, WXP::Wxp::outDebug(), WXP::Domain::pan(), WXP::Domain::print(), WXP::Date::set(), WXP::Point::set(), WXP::Drawing::setFilename(), and WXP::Domain::zoom().
int Figure::close | ( | ) |
int Figure::endPlot | ( | ) |
Specifies to plot the data.
References WXP::Date::addDays(), WXP::Date::addHours(), WXP::Date::addMinutes(), WXP::StrLib::contains(), WXP::PlotItem::drawing, WXP::String::get(), WXP::Drawing::getDateOffset(), WXP::Drawing::getInitDate(), WXP::Drawing::getLoopType(), WXP::Drawing::getNumFrames(), WXP::Drawing::getSync(), WXP::Wxp::isDebug(), WXP::Date::isSet(), WXP::Drawing::LOOP_FORE, WXP::Drawing::LOOP_NONE, WXP::PlotItem::next, WXP::String::occurs(), WXP::Drawing::print(), WXP::Date::set(), WXP::Drawing::setFilename(), WXP::PlotItem::type, and WXP::String::valid().
int Figure::init | ( | ) |
Initializes the object
References WXP::Date::init(), WXP::String::init(), WXP::Drawing::LOOP_DATE, and setParam().
int Figure::manage | ( | ) |
Turns the program over to the event manager.
References WXP::Plot::manage().
int Figure::open | ( | ) |
int Figure::open | ( | const char * | param | ) |
Opens the plot and initializes.
References setParam().
int Figure::setDomain | ( | Domain & | rdomain | ) |
Sets the domain of the plot.
rdomain | Domain of plot |
int Figure::setParam | ( | const char * | str | ) |
Sets the object parameters
str | String to parse for data |
References WXP::Strings::equal(), WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::getStringAfter(), WXP::Strings::index(), and WXP::String::set().
|
inline |
Sets whether Figure should automatically refresh plot
int Figure::startPlot | ( | Domain & | rdomain | ) |
Sets up the plotting.
domain | Domain to use with plot |