#include <PlotCurve.h>
Public Member Functions | |
void | addErrorBars (DataCurve *c) |
Adds a single error bars curve to the list of attached error bars. | |
void | clearErrorBars () |
Clears the list of attached error bars. | |
DataCurve (Table *t, const QString &xColName, const char *name, int startRow=0, int endRow=-1) | |
int | endRow () |
QList< DataCurve * > | errorBarsList () |
The list of attached error bars. | |
bool | isFullRange () |
virtual void | loadData () |
virtual QString | plotAssociation () |
A list of data sources for this curve. | |
void | remove () |
void | removeErrorBars (DataCurve *c) |
Remove a single error bars curve from the list of attached error bars. | |
void | setFullRange () |
void | setRowRange (int startRow, int endRow) |
void | setVisible (bool on) |
void | setXColumnName (const QString &name) |
int | startRow () |
Table * | table () |
int | tableRow (int point) |
Returns the row index in the data source table corresponding to the data point index. | |
virtual void | updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName) |
virtual bool | updateData (Table *t, const QString &colName) |
QString | xColumnName () |
Protected Attributes | |
int | d_end_row |
QList< DataCurve * > | d_error_bars |
List of the error bar curves associated to this curve. | |
int | d_start_row |
Table * | d_table |
The data source table. | |
QString | d_x_column |
The name of the column used for abscissae values. |
DataCurve::DataCurve | ( | Table * | t, | |
const QString & | xColName, | |||
const char * | name, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) |
void DataCurve::addErrorBars | ( | DataCurve * | c | ) | [inline] |
Adds a single error bars curve to the list of attached error bars.
void DataCurve::clearErrorBars | ( | ) |
Clears the list of attached error bars.
int DataCurve::endRow | ( | ) | [inline] |
QList<DataCurve *> DataCurve::errorBarsList | ( | ) | [inline] |
The list of attached error bars.
bool DataCurve::isFullRange | ( | ) |
void DataCurve::loadData | ( | ) | [virtual] |
Reimplemented in BoxCurve, QwtErrorPlotCurve, QwtHistogram, QwtPieCurve, and VectorCurve.
QString DataCurve::plotAssociation | ( | ) | [virtual] |
A list of data sources for this curve.
Elements must be in either of the following forms:
Column ids are of the form '<name of table> "_" <name of column>'.
Reimplemented in QwtErrorPlotCurve, and VectorCurve.
void DataCurve::remove | ( | ) |
void DataCurve::removeErrorBars | ( | DataCurve * | c | ) |
Remove a single error bars curve from the list of attached error bars.
void DataCurve::setFullRange | ( | ) |
void DataCurve::setRowRange | ( | int | startRow, | |
int | endRow | |||
) |
void DataCurve::setVisible | ( | bool | on | ) |
void DataCurve::setXColumnName | ( | const QString & | name | ) | [inline] |
int DataCurve::startRow | ( | ) | [inline] |
Table* DataCurve::table | ( | ) | [inline] |
int DataCurve::tableRow | ( | int | point | ) |
Returns the row index in the data source table corresponding to the data point index.
void DataCurve::updateColumnNames | ( | const QString & | oldName, | |
const QString & | newName, | |||
bool | updateTableName | |||
) | [virtual] |
Reimplemented in VectorCurve.
bool DataCurve::updateData | ( | Table * | t, | |
const QString & | colName | |||
) | [virtual] |
Reimplemented in QwtErrorPlotCurve, and VectorCurve.
QString DataCurve::xColumnName | ( | ) | [inline] |
int DataCurve::d_end_row [protected] |
QList<DataCurve *> DataCurve::d_error_bars [protected] |
List of the error bar curves associated to this curve.
int DataCurve::d_start_row [protected] |
Table* DataCurve::d_table [protected] |
The data source table.
QString DataCurve::d_x_column [protected] |
The name of the column used for abscissae values.