#include <QwtErrorPlotCurve.h>

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