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 QString &name, int startRow=0, int endRow=-1) | |
double | boxRange () |
int | boxRangeType () |
int | boxStyle () |
int | boxWidth () |
void | copy (const BoxCurve *b) |
void | 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=0.0) |
double | whiskersRange () |
int | whiskersRangeType () |
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 |
Box curve.
enum BoxCurve::BoxStyle |
enum BoxCurve::Range |
BoxCurve::BoxCurve | ( | Table * | t, | |
const QString & | name, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) |
References b_coeff, b_range, b_style, b_width, Graph::Box, max_style, mean_style, min_style, p1_style, p99_style, PlotCurve::setPlotStyle(), PlotCurve::setType(), w_coeff, and w_range.
QwtDoubleRect BoxCurve::boundingRect | ( | ) | const [virtual] |
Reimplemented from PlotCurve.
double BoxCurve::boxRange | ( | ) | [inline] |
References b_coeff.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
int BoxCurve::boxRangeType | ( | ) | [inline] |
References b_range.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
int BoxCurve::boxStyle | ( | ) | [inline] |
References b_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
int BoxCurve::boxWidth | ( | ) | [inline] |
References b_width.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
void BoxCurve::copy | ( | const BoxCurve * | b | ) |
void BoxCurve::draw | ( | QPainter * | painter, | |
const QwtScaleMap & | xMap, | |||
const QwtScaleMap & | yMap, | |||
int | from, | |||
int | to | |||
) | const [private] |
References drawBox(), and drawSymbols().
void BoxCurve::drawBox | ( | QPainter * | painter, | |
const QwtScaleMap & | xMap, | |||
const QwtScaleMap & | yMap, | |||
double * | dat, | |||
int | size | |||
) | const [private] |
void BoxCurve::drawSymbols | ( | QPainter * | painter, | |
const QwtScaleMap & | xMap, | |||
const QwtScaleMap & | yMap, | |||
double * | dat, | |||
int | size | |||
) | const [private] |
void BoxCurve::loadData | ( | ) | [virtual] |
Reimplemented from DataCurve.
References Table::colIndex(), DataCurve::d_end_row, DataCurve::d_start_row, DataCurve::d_table, and Table::text().
Referenced by ImportOPJ::importGraphs(), Graph::openBoxDiagram(), and Graph::plotBoxDiagram().
QwtSymbol::Style BoxCurve::maxStyle | ( | ) | [inline] |
References max_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
QwtSymbol::Style BoxCurve::meanStyle | ( | ) | [inline] |
References mean_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
QwtSymbol::Style BoxCurve::minStyle | ( | ) | [inline] |
References min_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
QwtSymbol::Style BoxCurve::p1Style | ( | ) | [inline] |
References p1_style.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
QwtSymbol::Style BoxCurve::p99Style | ( | ) | [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, and WindBox.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setBoxStyle | ( | int | style | ) |
References b_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setBoxWidth | ( | int | width | ) | [inline] |
References b_width.
Referenced by PlotDialog::acceptParams(), and Graph::openBoxDiagram().
void BoxCurve::setMaxStyle | ( | QwtSymbol::Style | s | ) | [inline] |
References max_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setMeanStyle | ( | QwtSymbol::Style | s | ) | [inline] |
References mean_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setMinStyle | ( | QwtSymbol::Style | s | ) | [inline] |
References min_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setP1Style | ( | QwtSymbol::Style | s | ) | [inline] |
References p1_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setP99Style | ( | QwtSymbol::Style | s | ) | [inline] |
References p99_style.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
void BoxCurve::setWhiskersRange | ( | int | type, | |
double | coeff = 0.0 | |||
) |
References MinMax, r10_90, r1_99, r25_75, r5_95, w_coeff, and w_range.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::openBoxDiagram().
double BoxCurve::whiskersRange | ( | ) | [inline] |
References w_coeff.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
int BoxCurve::whiskersRangeType | ( | ) | [inline] |
References w_range.
Referenced by Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
double BoxCurve::b_coeff [private] |
Referenced by BoxCurve(), boxRange(), copy(), drawBox(), and setBoxRange().
int BoxCurve::b_range [private] |
Referenced by BoxCurve(), boxRangeType(), copy(), drawBox(), and setBoxRange().
int BoxCurve::b_style [private] |
Referenced by BoxCurve(), boxStyle(), copy(), drawBox(), setBoxRange(), and setBoxStyle().
int BoxCurve::b_width [private] |
Referenced by BoxCurve(), boxWidth(), copy(), drawBox(), and setBoxWidth().
QwtSymbol::Style BoxCurve::max_style [private] |
Referenced by BoxCurve(), copy(), drawSymbols(), maxStyle(), and setMaxStyle().
QwtSymbol::Style BoxCurve::mean_style [private] |
Referenced by BoxCurve(), copy(), drawSymbols(), meanStyle(), and setMeanStyle().
QwtSymbol::Style BoxCurve::min_style [private] |
Referenced by BoxCurve(), copy(), drawSymbols(), minStyle(), and setMinStyle().
QwtSymbol::Style BoxCurve::p1_style [private] |
Referenced by BoxCurve(), copy(), drawSymbols(), p1Style(), and setP1Style().
QwtSymbol::Style BoxCurve::p99_style [private] |
Referenced by BoxCurve(), copy(), drawSymbols(), p99Style(), and setP99Style().
double BoxCurve::w_coeff [private] |
Referenced by BoxCurve(), copy(), drawBox(), setWhiskersRange(), and whiskersRange().
int BoxCurve::w_range [private] |
Referenced by BoxCurve(), copy(), drawBox(), setWhiskersRange(), and whiskersRangeType().