|
QtiPlot
0.9.8.2
|
Error bars curve. More...
#include <ErrorBarsCurve.h>
Public Types | |
| enum | Orientation { Horizontal = 0, Vertical = 1 } |
Public Member Functions | |
| QwtDoubleRect | boundingRect () const |
| int | capLength () |
| QColor | color () |
| void | copy (const ErrorBarsCurve *e) |
| void | detachFromMasterCurve () |
| Causes the master curve to delete this curve from its managed error bars list. | |
| int | direction () |
| void | drawMinusSide (bool yes) |
| void | drawPlusSide (bool yes) |
| void | drawThroughSymbol (bool yes) |
| ErrorBarsCurve (int orientation, Table *t, const QString &name) | |
| ErrorBarsCurve (Table *t, const QString &name) | |
| QwtArray< double > | errors () |
| double | errorValue (int i) |
| void | loadData () |
| DataCurve * | masterCurve () |
| Returns the master curve to which this error bars curve is attached. | |
| bool | minusSide () |
| QStringList | plotAssociation () |
| A list of data sources for this curve. | |
| bool | plusSide () |
| void | setCapLength (int t) |
| void | setColor (const QColor &c) |
| void | setDirection (int o) |
| void | setErrors (const QwtArray< double > &data) |
| void | setMasterCurve (DataCurve *c) |
| void | setWidth (double w) |
| void | setXErrors (bool yes) |
| bool | throughSymbol () |
| bool | updateData (Table *t, const QString &colName) |
| double | width () |
| bool | xErrors () |
Private Member Functions | |
| virtual void | draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| void | drawErrorBars (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| void | init () |
Private Attributes | |
| int | d_cap_length |
| Length of the bar cap decoration. | |
| DataCurve * | d_master_curve |
| Reference to the master curve to which this error bars curve is attached. | |
| QwtArray< double > | err |
| Stores the error bar values. | |
| bool | minus |
| bool | plus |
| bool | through |
| int | type |
| Orientation of the bars: Horizontal or Vertical. | |
Error bars curve.
| ErrorBarsCurve::ErrorBarsCurve | ( | int | orientation, |
| Table * | t, | ||
| const QString & | name | ||
| ) |
References init(), and PlotCurve::type().
| ErrorBarsCurve::ErrorBarsCurve | ( | Table * | t, |
| const QString & | name | ||
| ) |
References init(), PlotCurve::type(), and Vertical.
| QwtDoubleRect ErrorBarsCurve::boundingRect | ( | ) | const |
Reimplemented from PlotCurve.
References err, min, PlotCurve::type(), and Vertical.
| int ErrorBarsCurve::capLength | ( | ) | [inline] |
References d_cap_length.
Referenced by Graph::saveCurves(), PlotDialog::setActiveCurve(), and Graph::updateErrorBars().
| QColor ErrorBarsCurve::color | ( | ) | [inline] |
| void ErrorBarsCurve::copy | ( | const ErrorBarsCurve * | e | ) |
References d_cap_length, err, minus, plus, through, PlotCurve::type(), and type.
| void ErrorBarsCurve::detachFromMasterCurve | ( | ) | [inline] |
Causes the master curve to delete this curve from its managed error bars list.
References d_master_curve, and DataCurve::removeErrorBars().
| int ErrorBarsCurve::direction | ( | ) | [inline] |
References PlotCurve::type().
Referenced by Graph::saveCurves().
| void ErrorBarsCurve::draw | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| int | from, | ||
| int | to | ||
| ) | const [private, virtual] |
References drawErrorBars().
| void ErrorBarsCurve::drawErrorBars | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| int | from, | ||
| int | to | ||
| ) | const [private] |
References d_cap_length, d_master_curve, PlotCurve::d_skip_symbols, err, Horizontal, Graph::HorizontalBars, ScaleTransformation::Log10, minus, plus, PlotCurve::skipSymbolsCount(), through, PlotCurve::type(), ScaleEngine::type(), Vertical, and Graph::VerticalBars.
Referenced by draw().
| void ErrorBarsCurve::drawMinusSide | ( | bool | yes | ) | [inline] |
References minus.
Referenced by Graph::addErrorBars(), and Graph::updateErrorBars().
| void ErrorBarsCurve::drawPlusSide | ( | bool | yes | ) | [inline] |
References plus.
Referenced by Graph::addErrorBars(), and Graph::updateErrorBars().
| void ErrorBarsCurve::drawThroughSymbol | ( | bool | yes | ) | [inline] |
References through.
Referenced by Graph::addErrorBars(), and Graph::updateErrorBars().
| QwtArray<double> ErrorBarsCurve::errors | ( | ) | [inline] |
References err.
| double ErrorBarsCurve::errorValue | ( | int | i | ) |
References err.
Referenced by Fit::setDataCurve(), and Fit::setWeightingData().
| void ErrorBarsCurve::init | ( | ) | [private] |
References Graph::ErrorBars, minus, plus, PlotCurve::setPlotStyle(), PlotCurve::setType(), and through.
Referenced by ErrorBarsCurve().
| void ErrorBarsCurve::loadData | ( | ) | [virtual] |
Reimplemented from DataCurve.
References Table::colIndex(), DataCurve::d_end_row, d_master_curve, DataCurve::d_start_row, DataCurve::d_table, DataCurve::endRow(), err, setErrors(), DataCurve::startRow(), DataCurve::table(), Table::text(), and DataCurve::xColumnName().
Referenced by AssociationsDialog::changePlotAssociation(), DataCurve::setFullRange(), setMasterCurve(), DataCurve::setRowRange(), and updateData().
| DataCurve* ErrorBarsCurve::masterCurve | ( | ) | [inline] |
Returns the master curve to which this error bars curve is attached.
References d_master_curve.
Referenced by Graph::addCurves(), AssociationsDialog::changePlotAssociation(), Graph::guessUniqueCurveLayout(), Graph::masterCurve(), Graph::saveCurves(), Graph::setGrayScale(), and Graph::setIndexedColors().
| bool ErrorBarsCurve::minusSide | ( | ) | [inline] |
References minus.
Referenced by Graph::saveCurves(), PlotDialog::setActiveCurve(), and Graph::updateErrorBars().
| QStringList ErrorBarsCurve::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 from DataCurve.
References d_master_curve, Horizontal, PlotCurve::type(), and DataCurve::xColumnName().
| bool ErrorBarsCurve::plusSide | ( | ) | [inline] |
References plus.
Referenced by Graph::saveCurves(), PlotDialog::setActiveCurve(), and Graph::updateErrorBars().
| void ErrorBarsCurve::setCapLength | ( | int | t | ) | [inline] |
References d_cap_length.
Referenced by Graph::addErrorBars(), and Graph::updateErrorBars().
| void ErrorBarsCurve::setColor | ( | const QColor & | c | ) |
| void ErrorBarsCurve::setDirection | ( | int | o | ) | [inline] |
References PlotCurve::type().
Referenced by AssociationsDialog::changePlotAssociation().
| void ErrorBarsCurve::setErrors | ( | const QwtArray< double > & | data | ) | [inline] |
References err.
Referenced by loadData().
| void ErrorBarsCurve::setMasterCurve | ( | DataCurve * | c | ) |
References DataCurve::addErrorBars(), DataCurve::d_end_row, d_master_curve, DataCurve::d_start_row, DataCurve::endRow(), loadData(), and DataCurve::startRow().
Referenced by Graph::addErrorBars(), and AssociationsDialog::changePlotAssociation().
| void ErrorBarsCurve::setWidth | ( | double | w | ) |
Referenced by Graph::addErrorBars(), and Graph::updateErrorBars().
| void ErrorBarsCurve::setXErrors | ( | bool | yes | ) |
References Horizontal, PlotCurve::type(), and Vertical.
Referenced by Graph::updateErrorBars().
| bool ErrorBarsCurve::throughSymbol | ( | ) | [inline] |
References through.
Referenced by Graph::saveCurves(), PlotDialog::setActiveCurve(), and Graph::updateErrorBars().
| bool ErrorBarsCurve::updateData | ( | Table * | t, |
| const QString & | colName | ||
| ) | [virtual] |
Reimplemented from DataCurve.
References DataCurve::d_table, and loadData().
| double ErrorBarsCurve::width | ( | ) | [inline] |
Referenced by Graph::saveCurves(), PlotDialog::setActiveCurve(), and Graph::updateErrorBars().
| bool ErrorBarsCurve::xErrors | ( | ) |
References Horizontal, and PlotCurve::type().
Referenced by PlotDialog::setActiveCurve(), Fit::setDataCurve(), Fit::setWeightingData(), and Graph::updateErrorBars().
int ErrorBarsCurve::d_cap_length [private] |
Length of the bar cap decoration.
Referenced by capLength(), copy(), drawErrorBars(), and setCapLength().
DataCurve* ErrorBarsCurve::d_master_curve [private] |
Reference to the master curve to which this error bars curve is attached.
Referenced by detachFromMasterCurve(), drawErrorBars(), loadData(), masterCurve(), plotAssociation(), and setMasterCurve().
QwtArray<double> ErrorBarsCurve::err [private] |
Stores the error bar values.
Referenced by boundingRect(), copy(), drawErrorBars(), errors(), errorValue(), loadData(), and setErrors().
bool ErrorBarsCurve::minus [private] |
Referenced by copy(), drawErrorBars(), drawMinusSide(), init(), and minusSide().
bool ErrorBarsCurve::plus [private] |
Referenced by copy(), drawErrorBars(), drawPlusSide(), init(), and plusSide().
bool ErrorBarsCurve::through [private] |
Referenced by copy(), drawErrorBars(), drawThroughSymbol(), init(), and throughSymbol().
int ErrorBarsCurve::type [private] |
Orientation of the bars: Horizontal or Vertical.
Referenced by copy().
1.7.6.1