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

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

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

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

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
 

Detailed Description

This class coordinates the drawing of full plots.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Figure() [1/2]

Figure::Figure ( )

Constructor. Initializes drawing and setups callback.

References init().

◆ Figure() [2/2]

Figure::Figure ( const char *  param)

Constructor. Initializes drawing and opens plot.

References init(), open(), and setParam().

◆ ~Figure()

Figure::~Figure ( )

Destructor. Clears plot queue.

References close().

Member Function Documentation

◆ addDrawing()

int Figure::addDrawing ( Drawing draw)

Adds a Drawing object to the plot queue.

Parameters
drawDrawing object to add.

References WXP::PlotItem::data, WXP::PlotItem::drawing, WXP::PlotItem::next, and WXP::PlotItem::type.

◆ callback()

void Figure::callback ( const char *  ev_str,
const char *  ev_data,
const void *  data 
)
virtual

◆ close()

int Figure::close ( )

Closes the plot

References WXP::Plot::close(), and WXP::PlotItem::next.

Referenced by ~Figure().

◆ endPlot()

int Figure::endPlot ( )

◆ init()

int Figure::init ( )

Initializes the object

References WXP::Date::init(), WXP::String::init(), WXP::Drawing::LOOP_DATE, and setParam().

Referenced by Figure(), and Figure().

◆ manage()

int Figure::manage ( )

Turns the program over to the event manager.

References WXP::Plot::manage().

◆ open() [1/2]

int Figure::open ( )

Opens the plot and initializes.

References open().

Referenced by Figure(), and open().

◆ open() [2/2]

int Figure::open ( const char *  param)

Opens the plot and initializes.

References setParam().

◆ setDomain()

int Figure::setDomain ( Domain rdomain)

Sets the domain of the plot.

Parameters
rdomainDomain of plot

◆ setParam()

int Figure::setParam ( const char *  str)

Sets the object parameters

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

◆ setRefresh()

int WXP::Figure::setRefresh ( int  val)
inline

Sets whether Figure should automatically refresh plot

◆ startPlot()

int Figure::startPlot ( Domain rdomain)

Sets up the plotting.

Parameters
domainDomain to use with plot

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