WXP::Figure Class Reference
[Plotting objects]

This class coordinates the drawing of full plots. More...

#include "../include/Figure.h"

Inheritance diagram for WXP::Figure:
WXP::Listener

List of all members.

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)

Detailed Description

This class coordinates the drawing of full plots.

Author:
Dan Vietor

Constructor & Destructor Documentation

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().


Member Function Documentation

int Figure::addDrawing ( Drawing draw  ) 

Adds a Drawing object to the plot queue.

Parameters:
draw Drawing object to add.
void Figure::callback ( const char *  ev_str,
const char *  ev_data,
const void *  data 
) [virtual]

The event callback

Parameters:
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 (  ) 

Closes the plot

References WXP::Plot::close().

Referenced by ~Figure().

int Figure::endPlot (  ) 
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.

Parameters:
rdomain Domain of plot
int Figure::setParam ( const char *  str  ) 

Sets the object parameters

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().

Referenced by Figure(), init(), and open().

int Figure::startPlot ( Domain rdomain  ) 

Sets up the plotting.

Parameters:
domain Domain to use with plot

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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1