Histogram class. More...
#include <QwtHistogram.h>
Public Member Functions | |
bool | autoBinning () |
double | begin () |
double | binSize () |
QwtDoubleRect | boundingRect () const |
void | copy (QwtHistogram *h) |
double | end () |
void | loadData () |
Matrix * | matrix () |
double | maximum () |
double | mean () |
double | minimum () |
QwtHistogram (Matrix *m) | |
QwtHistogram (Table *t, const QString &name, int startRow=0, int endRow=-1) | |
void | setAutoBinning (bool autoBin=true) |
Convenience function to be used in scripts. | |
void | setBinning (double binSize, double begin, double end) |
Convenience function. It disables autobinning. | |
void | setBinning (bool autoBin, double size, double begin, double end) |
double | standardDeviation () |
Private Member Functions | |
void | draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
void | loadDataFromMatrix () |
Private Attributes | |
bool | d_autoBin |
double | d_begin |
double | d_bin_size |
double | d_end |
Matrix * | d_matrix |
double | d_max |
double | d_mean |
Variables storing statistical information. | |
double | d_min |
double | d_standard_deviation |
Histogram class.
QwtHistogram::QwtHistogram | ( | Table * | t, | |
const QString & | name, | |||
int | startRow = 0 , |
|||
int | endRow = -1 | |||
) |
References d_matrix, Graph::Histogram, PlotCurve::setPlotStyle(), and PlotCurve::setType().
QwtHistogram::QwtHistogram | ( | Matrix * | m | ) |
References d_autoBin, d_matrix, Graph::Histogram, PlotCurve::setPlotStyle(), and PlotCurve::setType().
bool QwtHistogram::autoBinning | ( | ) | [inline] |
References d_autoBin.
Referenced by PlotDialog::acceptParams(), Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
double QwtHistogram::begin | ( | ) | [inline] |
References d_begin.
Referenced by PlotDialog::acceptParams(), Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
double QwtHistogram::binSize | ( | ) | [inline] |
References d_bin_size.
Referenced by PlotDialog::acceptParams(), Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
QwtDoubleRect QwtHistogram::boundingRect | ( | ) | const [virtual] |
Reimplemented from QwtBarCurve.
void QwtHistogram::copy | ( | QwtHistogram * | h | ) |
References d_autoBin, d_begin, d_bin_size, and d_end.
void QwtHistogram::draw | ( | QPainter * | painter, | |
const QwtScaleMap & | xMap, | |||
const QwtScaleMap & | yMap, | |||
int | from, | |||
int | to | |||
) | const [private, virtual] |
Reimplemented from QwtBarCurve.
References QwtBarCurve::gap(), QwtBarCurve::offset(), and PlotCurve::xOffset().
double QwtHistogram::end | ( | ) | [inline] |
References d_end.
Referenced by PlotDialog::acceptParams(), Graph::saveCurveLayout(), and PlotDialog::setActiveCurve().
void QwtHistogram::loadData | ( | ) | [virtual] |
Reimplemented from DataCurve.
References Table::colIndex(), d_autoBin, d_begin, d_bin_size, d_end, DataCurve::d_end_row, d_matrix, d_max, d_mean, d_min, d_standard_deviation, DataCurve::d_start_row, DataCurve::d_table, loadDataFromMatrix(), and Table::text().
Referenced by PlotDialog::acceptParams(), Graph::addCurves(), Graph::addHistogram(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), Graph::restoreHistogram(), and ApplicationWindow::updateMatrixPlots().
void QwtHistogram::loadDataFromMatrix | ( | ) | [private] |
References d_autoBin, d_begin, d_bin_size, d_end, d_matrix, d_max, d_mean, d_min, d_standard_deviation, MatrixModel::dataVector(), Matrix::matrixModel(), Matrix::numCols(), Matrix::numRows(), and Matrix::range().
Referenced by loadData().
Matrix* QwtHistogram::matrix | ( | ) | [inline] |
References d_matrix.
Referenced by Graph::copyCurves(), and ApplicationWindow::updateMatrixPlots().
double QwtHistogram::maximum | ( | ) | [inline] |
References d_max.
Referenced by PlotDialog::showStatistics().
double QwtHistogram::mean | ( | ) | [inline] |
References d_mean.
Referenced by PlotDialog::showStatistics().
double QwtHistogram::minimum | ( | ) | [inline] |
References d_min.
Referenced by PlotDialog::showStatistics().
void QwtHistogram::setAutoBinning | ( | bool | autoBin = true |
) |
Convenience function to be used in scripts.
References d_autoBin.
void QwtHistogram::setBinning | ( | double | binSize, | |
double | begin, | |||
double | end | |||
) |
Convenience function. It disables autobinning.
References d_autoBin, d_begin, d_bin_size, and d_end.
void QwtHistogram::setBinning | ( | bool | autoBin, | |
double | size, | |||
double | begin, | |||
double | end | |||
) |
References d_autoBin, d_begin, d_bin_size, and d_end.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), ApplicationWindow::openGraph(), and Graph::restoreHistogram().
double QwtHistogram::standardDeviation | ( | ) | [inline] |
References d_standard_deviation.
Referenced by PlotDialog::showStatistics().
bool QwtHistogram::d_autoBin [private] |
Referenced by autoBinning(), copy(), loadData(), loadDataFromMatrix(), QwtHistogram(), setAutoBinning(), and setBinning().
double QwtHistogram::d_begin [private] |
Referenced by begin(), copy(), loadData(), loadDataFromMatrix(), and setBinning().
double QwtHistogram::d_bin_size [private] |
Referenced by binSize(), copy(), loadData(), loadDataFromMatrix(), and setBinning().
double QwtHistogram::d_end [private] |
Referenced by copy(), end(), loadData(), loadDataFromMatrix(), and setBinning().
Matrix* QwtHistogram::d_matrix [private] |
Referenced by loadData(), loadDataFromMatrix(), matrix(), and QwtHistogram().
double QwtHistogram::d_max [private] |
Referenced by loadData(), loadDataFromMatrix(), and maximum().
double QwtHistogram::d_mean [private] |
Variables storing statistical information.
Referenced by loadData(), loadDataFromMatrix(), and mean().
double QwtHistogram::d_min [private] |
Referenced by loadData(), loadDataFromMatrix(), and minimum().
double QwtHistogram::d_standard_deviation [private] |
Referenced by loadData(), loadDataFromMatrix(), and standardDeviation().