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 | 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) |
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 | ) |
| void Figure::callback | ( | const char * | ev_str, | |
| const char * | ev_data, | |||
| const void * | data | |||
| ) | [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::StrLib::equal(), WXP::Drawing::getDate(), WXP::Drawing::getLoopType(), WXP::Date::getSeconds(), 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::addHours(), WXP::Date::addMinutes(), WXP::StrLib::contains(), 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::String::occurs(), WXP::Drawing::print(), WXP::Date::print(), WXP::Date::set(), WXP::Drawing::setFilename(), and WXP::String::valid().
| int Figure::init | ( | ) |
Initializes the object
References WXP::Date::init(), WXP::String::init(), and setParam().
Referenced by Figure().
| int Figure::manage | ( | ) |
Turns the program over to the event manager.
References WXP::Plot::manage().
| int Figure::open | ( | ) |
Opens the plot and initializes.
Referenced by Figure().
| 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().
| int Figure::startPlot | ( | Domain & | rdomain | ) |
Sets up the plotting.
| domain | Domain to use with plot |
1.6.1