SciDAVis
1.D4
|
Box curve. More...
#include <BoxCurve.h>
Public Types | |
enum | BoxStyle { NoBox, Rect, Diamond, WindBox, Notch } |
enum | Range { None, SD, SE, r25_75, r10_90, r5_95, r1_99, MinMax, UserDef } |
Public Member Functions | |
virtual QwtDoubleRect | boundingRect () const |
BoxCurve (Table *t, const char *name, int startRow=0, int endRow=-1) | |
double | boxRange () |
int | boxRangeType () |
int | boxStyle () |
int | boxWidth () |
void | copy (const BoxCurve *b) |
virtual bool | loadData () |
QwtSymbol::Style | maxStyle () |
QwtSymbol::Style | meanStyle () |
QwtSymbol::Style | minStyle () |
QwtSymbol::Style | p1Style () |
QwtSymbol::Style | p99Style () |
void | setBoxRange (int type, double coeff) |
void | setBoxStyle (int style) |
void | setBoxWidth (int width) |
void | setMaxStyle (QwtSymbol::Style s) |
void | setMeanStyle (QwtSymbol::Style s) |
void | setMinStyle (QwtSymbol::Style s) |
void | setP1Style (QwtSymbol::Style s) |
void | setP99Style (QwtSymbol::Style s) |
void | setWhiskersRange (int type, double coeff) |
double | whiskersRange () |
int | whiskersRangeType () |
Public Member Functions inherited from DataCurve | |
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. | |
QList< QVector< double > > | convertData (const QList< Column * > &cols, const QList< int > &axes) const |
DataCurve (Table *t, const QString &xColName, const QString &name, int startRow=0, int endRow=-1) | |
int | endRow () |
QList< DataCurve * > | errorBarsList () |
The list of attached error bars. | |
bool | hasSelectedLabels () |
bool | isFullRange () |
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 | setLabelsSelected (bool on=true) |
void | setRowRange (int startRow, int endRow) |
void | setVisible (bool on) |
void | setXColumnName (const QString &name) |
void | setYColumnName (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 () |
QString | yColumnName () |
Public Member Functions inherited from PlotCurve | |
PlotCurve (const QString &name=QString::null) | |
void | setType (int t) |
int | type () const |
Private Member Functions | |
void | draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
void | drawBox (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, double *dat, int size) const |
void | drawSymbols (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, double *dat, int size) const |
Private Attributes | |
double | b_coeff |
int | b_range |
int | b_style |
int | b_width |
QwtSymbol::Style | max_style |
QwtSymbol::Style | mean_style |
QwtSymbol::Style | min_style |
QwtSymbol::Style | p1_style |
QwtSymbol::Style | p99_style |
double | w_coeff |
int | w_range |
Additional Inherited Members | |
Protected Attributes inherited from DataCurve | |
int | d_end_row |
Last row of #d_tabel to be plotted, provided all relevant columns have valid entries. | |
QList< DataCurve * > | d_error_bars |
List of the error bar curves associated to this curve. | |
int | d_start_row |
First row of #d_tabel to be plotted, provided all relevant columns have valid entries. | |
Table * | d_table |
The data source table. | |
QString | d_x_column |
The name of the column used for abscissae values. | |
Protected Attributes inherited from PlotCurve | |
int | d_type |
Box curve.
enum BoxCurve::BoxStyle |
enum BoxCurve::Range |
BoxCurve::BoxCurve | ( | Table * | t, |
const char * | name, | ||
int | startRow = 0 , |
||
int | endRow = -1 |
||
) |
|
virtual |
Reimplemented from PlotCurve.
|
inline |
References b_coeff.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References b_range.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References b_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References b_width.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
void BoxCurve::copy | ( | const BoxCurve * | b | ) |
|
private |
References drawBox(), and drawSymbols().
|
private |
|
private |
|
virtual |
Reimplemented from DataCurve.
References Table::colIndex(), Table::column(), Table::columnType(), DataCurve::d_end_row, DataCurve::d_start_row, DataCurve::d_table, Column::isInvalid(), Column::rowCount(), Table::Text, Column::textAt(), and Column::valueAt().
Referenced by Graph::openBoxDiagram(), and Graph::plotBoxDiagram().
|
inline |
References max_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References mean_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References min_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References p1_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References p99_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
void BoxCurve::setBoxRange | ( | int | type, |
double | coeff | ||
) |
References b_coeff, b_range, b_style, MinMax, r10_90, r1_99, r25_75, r5_95, PlotCurve::type(), and WindBox.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
void BoxCurve::setBoxStyle | ( | int | style | ) |
References b_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References b_width.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References max_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References mean_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References min_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References p1_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References p99_style.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
void BoxCurve::setWhiskersRange | ( | int | type, |
double | coeff | ||
) |
References MinMax, r10_90, r1_99, r25_75, r5_95, PlotCurve::type(), w_coeff, and w_range.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
|
inline |
References w_coeff.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
inline |
References w_range.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
|
private |
Referenced by BoxCurve(), boxRange(), copy(), drawBox(), and setBoxRange().
|
private |
Referenced by BoxCurve(), boxRangeType(), copy(), drawBox(), and setBoxRange().
|
private |
Referenced by BoxCurve(), boxStyle(), copy(), drawBox(), setBoxRange(), and setBoxStyle().
|
private |
Referenced by BoxCurve(), boxWidth(), copy(), drawBox(), and setBoxWidth().
|
private |
Referenced by BoxCurve(), copy(), drawSymbols(), maxStyle(), and setMaxStyle().
|
private |
Referenced by BoxCurve(), copy(), drawSymbols(), meanStyle(), and setMeanStyle().
|
private |
Referenced by BoxCurve(), copy(), drawSymbols(), minStyle(), and setMinStyle().
|
private |
Referenced by BoxCurve(), copy(), drawSymbols(), p1Style(), and setP1Style().
|
private |
Referenced by BoxCurve(), copy(), drawSymbols(), p99Style(), and setP99Style().
|
private |
Referenced by BoxCurve(), copy(), drawBox(), setWhiskersRange(), and whiskersRange().
|
private |
Referenced by BoxCurve(), copy(), drawBox(), setWhiskersRange(), and whiskersRangeType().