#include <TxPlotData.h>
Inheritance diagram for TxPlotData::

Public Methods | |
| TxPlotData () | |
| default constructor. More... | |
| TxPlotData (int nr, int nc) | |
| constructor specifying the number of rows and columns. More... | |
| virtual | ~TxPlotData () |
| virtual destructor. More... | |
| virtual TXSTD::string | getClassID () const |
| Get class identifier for run-time identification. More... | |
| virtual void | restart () |
| clean up object and begin again. More... | |
| int | getComplete () |
| get flag indicating whether generation of plot data is complete. More... | |
| virtual void | paramsChanged () |
| Hook called after parameters in hash table have changed. More... | |
| virtual void | optionsChanged () |
| Hook called after options in hash table have changed. More... | |
| virtual void | stringsChanged () |
| Hook called after strings in hash table have changed. More... | |
| virtual int | moreData ()=0 |
| Get more data points. More... | |
| virtual void | calcLims ()=0 |
| Calculate all plot limits as needed. More... | |
| virtual int | getNumPlots () const=0 |
| get the number of plots to be generated. More... | |
| virtual const TXSTD::string | getTitle (int) const=0 |
| get the title of the i'th plot. More... | |
| virtual const TXSTD::string | getXLabel (int) const=0 |
| get the horizontal axis label of the i'th plot. More... | |
| virtual double | getXMin (int i) const=0 |
| get the minimum horizontal value for the data of the i'th plot. More... | |
| virtual double | getXMinPlot (int) const=0 |
| get the minimum horizontal axis value for the i'th plot. More... | |
| virtual double | getXMax (int) const=0 |
| get the maximum horizontal value for the data of the i'th plot. More... | |
| virtual double | getXMaxPlot (int) const=0 |
| get the maximum horizontal axis value for the i'th plot. More... | |
| virtual const TXSTD::string | getYLabel (int) const=0 |
| get the vertical axis label of the i'th plot. More... | |
| virtual double | getYMin (int) const=0 |
| get the minimum vertical value for the data of the i'th plot. More... | |
| virtual double | getYMinPlot (int) const=0 |
| get the minimum vertical axis value for the i'th plot. More... | |
| virtual double | getYMax (int) const=0 |
| get the maximum vertical value for the data of the i'th plot. More... | |
| virtual double | getYMaxPlot (int) const=0 |
| get the maximum vertical axis value for the i'th plot. More... | |
| int | getMaxNumRows () const |
| get the maximum number of rows, where each row corresponds to a data set. More... | |
| int | getMaxNumColumns () const |
| get the maximum number of columns, where each column corresponds to a particular point. More... | |
| int | getNumRows () const |
| get the actual number of rows, where each row corresponds to a data set. More... | |
| int | getNumColumns () const |
| get the actual number of columns, where each column corresponds to a particular point. More... | |
| double | getData (int i, int j) const |
| get the data point from row i and column j. More... | |
| const double* | getDataPtr (int i, int j) const |
| get a constant pointer to the data point in row i and column j. More... | |
Protected Methods | |
| void | setComplete (int iflag=1) |
| set flag to indicate that generation of plot data is complete. More... | |
| void | setMaxNumRows (int) |
| set the maximum number of rows for the entire plotting data set. More... | |
| void | setMaxNumColumns (int) |
| set the maximum number of columns for the entire plotting data set. More... | |
| void | setNumRows (int) |
| set the actual number of rows for the plotting data set. More... | |
| void | setNumColumns (int) |
| set the actual number of columns for the plotting data set. More... | |
| double& | getDataRef (int i, int j) const |
| get a reference to the data point in row i and column j. More... | |
| void | setData (int, int, double) |
| set the value for the data point in specified row and column. More... | |
| void | setRow (int i, double *) |
| set the data for all of the specified row (double* better have a valid dimension). More... | |
| void | setRow (int, double *, int, int) |
| set values for data in specified column interval of specified row. More... | |
| void | appendRow (double *d) |
| append an entire new row of data (double* better have a valid dimension). More... | |
| void | setColumn (int i, double *) |
| set the data for all of the specified column (double* better have a valid dimension). More... | |
| void | setColumn (int i, double *dptr, int rmn, int rmx) |
| set values for data in specified row interval of specified column. More... | |
| void | appendColumn (double *d) |
| append an entire new column of data. More... | |
Private Methods | |
| TxPlotData (TxPlotData &) | |
| prevent public use of the copy constructor. More... | |
| const TxPlotData& | operator= (const TxPlotData &) |
| prevent public use of the assignment operator. More... | |
Private Attributes | |
| int | size |
| specifies allocated memory. More... | |
| int | maxNumRows |
| maximum number of rows, where each row constitutes a separate data set. More... | |
| int | maxNumCols |
| maximum number of columns, where each column corresponds to a data point. More... | |
| double* | data |
| pointer to the data that will be plotted. More... | |
| int | numRows |
| actual number of rows, where each row constitutes a separate data set. More... | |
| int | numCols |
| number of columns filled so far, where each column corresponds to a data point. More... | |
| int | completed |
| Boolean signifying completion. More... | |
Static Private Attributes | |
| double | chgMemRatio |
| Memory changes by this ratio at each request for a change in row or column sizes. More... | |
| double | version |
| version of the library. More... | |
TxPlotData holds the data for a plot. It is intended that derived classes will hold the format data for different kinds of plots, e.g., TxLinePlotData. Further derived classes will insert the data. Because TxPlotData is intended to work in a nonthreaded GUI environment, the derived classes should arrange to calculate and insert part of the data each time there is a call to moreData(). When the user is done inserting data, setComplete() should be called to signify this.
The basic structure provides a mechanism for holding data, adding to that data, enlarging the memory holding that data, etc.
Copyright 1996, 1997, 1998 by Tech-X Corporation
Definition at line 48 of file TxPlotData.h.
|
|
default constructor.
|
|
|
constructor specifying the number of rows and columns.
|
|
|
virtual destructor.
|
|
|
prevent public use of the copy constructor.
|
|
|
append an entire new column of data.
Definition at line 264 of file TxPlotData.h. |
|
|
append an entire new row of data (double* better have a valid dimension).
Definition at line 241 of file TxPlotData.h. |
|
|
Calculate all plot limits as needed.
Reimplemented in TxLinePlotData. Referenced by TxLinePlotData::calcLims().
|
|
|
Get class identifier for run-time identification.
Reimplemented in TestLinePlotData, TxLinePlotData, and TxLinePlotDataAux. Definition at line 75 of file TxPlotData.h. |
|
|
get flag indicating whether generation of plot data is complete.
Definition at line 87 of file TxPlotData.h. |
|
|
get the data point from row i and column j.
Definition at line 197 of file TxPlotData.h. |
|
|
get a constant pointer to the data point in row i and column j.
Definition at line 200 of file TxPlotData.h. Referenced by TxLinePlotData::getDataRow(), TxLinePlotData::getXSeries(), and TxLinePlotData::getYSeries().
|
|
|
get a reference to the data point in row i and column j.
Definition at line 227 of file TxPlotData.h. |
|
|
get the maximum number of columns, where each column corresponds to a particular point.
Definition at line 188 of file TxPlotData.h. |
|
|
get the maximum number of rows, where each row corresponds to a data set.
Definition at line 185 of file TxPlotData.h. Referenced by TxLinePlotData::getMaxNumSeries().
|
|
|
get the actual number of columns, where each column corresponds to a particular point.
Definition at line 194 of file TxPlotData.h. Referenced by appendColumn(), and TxLinePlotData::getNumValuesCalculated().
|
|
|
get the number of plots to be generated.
Reimplemented in TxLinePlotData. |
|
|
get the actual number of rows, where each row corresponds to a data set.
Definition at line 191 of file TxPlotData.h. Referenced by appendRow().
|
|
|
get the title of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the horizontal axis label of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the maximum horizontal value for the data of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the maximum horizontal axis value for the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the minimum horizontal value for the data of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the minimum horizontal axis value for the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the vertical axis label of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the maximum vertical value for the data of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the maximum vertical axis value for the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the minimum vertical value for the data of the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
get the minimum vertical axis value for the i'th plot.
Reimplemented in TxLinePlotData. |
|
|
Get more data points. Return nonzero if further data remains to be calculated. This approach is required because the GUI is not yet threaded. Reimplemented in TestLinePlotData. |
|
|
prevent public use of the assignment operator.
Reimplemented in TxLinePlotData. |
|
|
Hook called after options in hash table have changed.
Reimplemented in TxLinePlotData, and TxLinePlotDataAux. |
|
|
Hook called after parameters in hash table have changed.
Reimplemented in TxLinePlotData, and TxLinePlotDataAux. |
|
|
clean up object and begin again.
Reimplemented in TxLinePlotData. |
|
|
set values for data in specified row interval of specified column.
|
|
|
set the data for all of the specified column (double* better have a valid dimension).
Referenced by appendColumn().
|
|
|
set flag to indicate that generation of plot data is complete.
Definition at line 210 of file TxPlotData.h. |
|
|
set the value for the data point in specified row and column.
|
|
|
set the maximum number of columns for the entire plotting data set.
Referenced by TxLinePlotData::setMaxDataPoints().
|
|
|
set the maximum number of rows for the entire plotting data set.
Referenced by TxLinePlotData::setMaxNumSeries().
|
|
|
set the actual number of columns for the plotting data set.
Referenced by TxLinePlotData::setNumValuesCalculated().
|
|
|
set the actual number of rows for the plotting data set.
|
|
|
set values for data in specified column interval of specified row. The specified double* better have the appropriate dimension. |
|
|
set the data for all of the specified row (double* better have a valid dimension).
Referenced by appendRow().
|
|
|
Hook called after strings in hash table have changed.
Reimplemented in TxLinePlotData, and TxLinePlotDataAux. |
|
|
Memory changes by this ratio at each request for a change in row or column sizes.
Definition at line 283 of file TxPlotData.h. |
|
|
Boolean signifying completion.
Definition at line 305 of file TxPlotData.h. |
|
|
pointer to the data that will be plotted.
Definition at line 295 of file TxPlotData.h. |
|
|
maximum number of columns, where each column corresponds to a data point.
Definition at line 292 of file TxPlotData.h. |
|
|
maximum number of rows, where each row constitutes a separate data set.
Definition at line 289 of file TxPlotData.h. |
|
|
number of columns filled so far, where each column corresponds to a data point.
Definition at line 302 of file TxPlotData.h. |
|
|
actual number of rows, where each row constitutes a separate data set.
Definition at line 298 of file TxPlotData.h. |
|
|
specifies allocated memory.
Definition at line 286 of file TxPlotData.h. |
|
|
version of the library.
Definition at line 308 of file TxPlotData.h. |
Copyright Tech-X Corporation, all rights reserved.