Abstract 2D plot curve class. More...
#include <PlotCurve.h>
Public Member Functions | |
| void | enableSideLines (bool on) |
| PlotCurve (const QString &name=QString()) | |
| int | plotStyle () |
| The plot style of the curve. | |
| void | restoreCurveLayout (const QStringList &lst) |
| QString | saveCurveLayout () |
| void | setPlotStyle (int s) |
| void | setSkipSymbolsCount (int count) |
| Set the number of symbols not to be drawn: usefull for large data sets. | |
| void | setType (int t) |
| void | setXOffset (double dx) |
| void | setYOffset (double dy) |
| bool | sideLinesEnabled () |
| int | skipSymbolsCount () |
| Returns the number of symbols not to be drawn. | |
| int | type () |
| Sort of rtti(). | |
| double | xOffset () |
| double | yOffset () |
Protected Member Functions | |
| QwtDoubleRect | boundingRect () const |
| virtual void | drawCurve (QPainter *p, int style, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| void | drawSideLines (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| void | drawSticks (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| virtual void | drawSymbols (QPainter *p, const QwtSymbol &, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| Draw symbols. | |
Protected Attributes | |
| int | d_plot_style |
| bool | d_side_lines |
| int | d_skip_symbols |
| int | d_type |
| double | d_x_offset |
| double | d_y_offset |
Abstract 2D plot curve class.
| PlotCurve::PlotCurve | ( | const QString & | name = QString() |
) |
| QwtDoubleRect PlotCurve::boundingRect | ( | ) | const [protected] |
Reimplemented in BoxCurve, QwtBarCurve, QwtErrorPlotCurve, QwtHistogram, and VectorCurve.
References ScaleTransformation::Log10, ScaleTransformation::Log2, and ScaleEngine::type().
| void PlotCurve::drawCurve | ( | QPainter * | p, | |
| int | style, | |||
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [protected, virtual] |
Reimplemented in DataCurve.
References d_side_lines, and drawSideLines().
Referenced by DataCurve::drawCurve().
| void PlotCurve::drawSideLines | ( | QPainter * | p, | |
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [protected] |
Referenced by DataCurve::drawCurve(), and drawCurve().
| void PlotCurve::drawSticks | ( | QPainter * | painter, | |
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [protected] |
Draw sticks
| painter | Painter | |
| xMap | x map | |
| yMap | y map | |
| from | index of the first point to be painted | |
| to | index of the last point to be painted |
References d_skip_symbols.
| void PlotCurve::drawSymbols | ( | QPainter * | painter, | |
| const QwtSymbol & | symbol, | |||
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [protected, virtual] |
Draw symbols.
| painter | Painter | |
| symbol | Curve symbol | |
| xMap | x map | |
| yMap | y map | |
| from | index of the first point to be painted | |
| to | index of the last point to be painted |
References d_skip_symbols.
| void PlotCurve::enableSideLines | ( | bool | on | ) | [inline] |
References d_side_lines.
Referenced by MultiLayer::setWaterfallSideLines(), and MultiLayer::updateWaterfallFill().
| int PlotCurve::plotStyle | ( | ) | [inline] |
The plot style of the curve.
References d_plot_style.
Referenced by Graph::saveCurveLayout(), Graph::setCurveStyle(), and Graph::updateCurveLayout().
| void PlotCurve::restoreCurveLayout | ( | const QStringList & | lst | ) |
References PatternBox::brushStyle(), Graph::getPenStyle(), and SymbolBox::style().
Referenced by FunctionCurve::restore().
| QString PlotCurve::saveCurveLayout | ( | ) |
References d_plot_style, PatternBox::patternIndex(), Graph::Spline, SymbolBox::symbolIndex(), and Graph::VerticalSteps.
Referenced by FunctionCurve::saveToString().
| void PlotCurve::setPlotStyle | ( | int | s | ) | [inline] |
References d_plot_style.
Referenced by BoxCurve::BoxCurve(), PlotDialog::changePlotType(), Graph::copyCurves(), FunctionCurve::FunctionCurve(), QwtErrorPlotCurve::init(), Graph::insertCurve(), ApplicationWindow::openGraph(), Graph::plotVectorCurve(), QwtBarCurve::QwtBarCurve(), QwtHistogram::QwtHistogram(), QwtPieCurve::QwtPieCurve(), FunctionCurve::restore(), Graph::setCurveStyle(), and VectorCurve::VectorCurve().
| void PlotCurve::setSkipSymbolsCount | ( | int | count | ) |
Set the number of symbols not to be drawn: usefull for large data sets.
References d_skip_symbols.
Referenced by PlotDialog::applyErrorBarFormatToCurve(), and ApplicationWindow::openGraph().
| void PlotCurve::setType | ( | int | t | ) | [inline] |
| void PlotCurve::setXOffset | ( | double | dx | ) | [inline] |
References d_x_offset.
| void PlotCurve::setYOffset | ( | double | dy | ) | [inline] |
References d_y_offset.
| bool PlotCurve::sideLinesEnabled | ( | ) | [inline] |
References d_side_lines.
| int PlotCurve::skipSymbolsCount | ( | ) | [inline] |
Returns the number of symbols not to be drawn.
References d_skip_symbols.
Referenced by DataCurve::clone(), QwtErrorPlotCurve::drawErrorBars(), and PlotDialog::setActiveCurve().
| int PlotCurve::type | ( | ) | [inline] |
Sort of rtti().
References d_type.
Referenced by Graph::addCurves(), Graph::analysableCurvesList(), PlotDialog::applyErrorBarFormatToLayer(), PlotDialog::applyLineFormatToLayer(), QwtErrorPlotCurve::boundingRect(), AssociationsDialog::changePlotAssociation(), RangeSelectorTool::clearMultipleSelection(), Graph::closestCurve(), QwtErrorPlotCurve::copy(), Graph::copyCurves(), RangeSelectorTool::copyMultipleSelection(), Graph::dataCurve(), QwtErrorPlotCurve::drawErrorBars(), LegendWidget::drawSymbol(), Graph::enableDouglasPeukerSpeedMode(), Graph::generateFunctionName(), Graph::guessUniqueCurveLayout(), ImportOPJ::importGraphs(), Graph::initCurveLayout(), LayerItem::insertCurvesList(), PlotDialog::insertTabs(), RangeSelectorTool::mightNeedMultipleSelection(), BaselineDialog::modifyBaseline(), LegendWidget::parse(), QwtErrorPlotCurve::plotAssociation(), Graph::print(), QwtErrorPlotCurve::QwtErrorPlotCurve(), FunctionCurve::restore(), Graph::saveCurves(), DataCurve::saveToString(), PlotDialog::setActiveCurve(), QwtErrorPlotCurve::setDirection(), Graph::setGrayScale(), Graph::setIndexedColors(), QwtErrorPlotCurve::setXErrors(), CurvesDialog::showCurveBtn(), RangeSelectorTool::showSelectionDialog(), LegendWidget::symbolsMaxWidth(), Graph::updateCurveNames(), Graph::updateCurvesData(), AxesDialog::updateMinorTicksList(), DataCurve::validCurveType(), and QwtErrorPlotCurve::xErrors().
| double PlotCurve::xOffset | ( | ) | [inline] |
References d_x_offset.
Referenced by QwtHistogram::draw().
| double PlotCurve::yOffset | ( | ) | [inline] |
References d_y_offset.
int PlotCurve::d_plot_style [protected] |
Referenced by plotStyle(), saveCurveLayout(), and setPlotStyle().
bool PlotCurve::d_side_lines [protected] |
Referenced by DataCurve::drawCurve(), drawCurve(), enableSideLines(), and sideLinesEnabled().
int PlotCurve::d_skip_symbols [protected] |
int PlotCurve::d_type [protected] |
Referenced by DataCurve::loadData(), setType(), DataCurve::tableRow(), and type().
double PlotCurve::d_x_offset [protected] |
Referenced by setXOffset(), and xOffset().
double PlotCurve::d_y_offset [protected] |
Referenced by setYOffset(), and yOffset().
1.7.1