QtiPlot  0.9.8.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PlotCurve Class Reference

Abstract 2D plot curve class. More...

#include <PlotCurve.h>

Inheritance diagram for PlotCurve:
DataCurve FunctionCurve BoxCurve ErrorBarsCurve PieCurve QwtBarCurve VectorCurve QwtHistogram

Public Member Functions

void enableSideLines (bool on)
 
 PlotCurve (const QString &name=QString())
 
int plotStyle ()
 The plot style of the curve. More...
 
void restoreCurveLayout (const QStringList &lst)
 
QString saveCurveLayout ()
 
QString saveCurveSymbolImage ()
 
void setPlotStyle (int s)
 
void setSkipSymbolsCount (int count)
 Set the number of symbols not to be drawn: usefull for large data sets. More...
 
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. More...
 
int type ()
 Sort of rtti() More...
 
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. More...
 

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
 

Detailed Description

Abstract 2D plot curve class.

Constructor & Destructor Documentation

§ PlotCurve()

PlotCurve::PlotCurve ( const QString &  name = QString())

Member Function Documentation

§ boundingRect()

QwtDoubleRect PlotCurve::boundingRect ( ) const
protected

§ drawCurve()

void PlotCurve::drawCurve ( QPainter *  p,
int  style,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
protectedvirtual

§ drawSideLines()

void PlotCurve::drawSideLines ( QPainter *  p,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
protected

§ drawSticks()

void PlotCurve::drawSticks ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
protected

Draw sticks

Parameters
painterPainter
xMapx map
yMapy map
fromindex of the first point to be painted
toindex of the last point to be painted
See also
draw(), drawCurve(), drawDots()

References d_skip_symbols.

Referenced by skipSymbolsCount().

§ drawSymbols()

void PlotCurve::drawSymbols ( QPainter *  painter,
const QwtSymbol &  symbol,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
protectedvirtual

Draw symbols.

Parameters
painterPainter
symbolCurve symbol
xMapx map
yMapy map
fromindex of the first point to be painted
toindex of the last point to be painted
See also
setSymbol(), draw(), drawCurve()

References d_skip_symbols.

Referenced by skipSymbolsCount().

§ enableSideLines()

void PlotCurve::enableSideLines ( bool  on)
inline

§ plotStyle()

int PlotCurve::plotStyle ( )
inline

The plot style of the curve.

See also
Graph::CurveType

References d_plot_style.

Referenced by Graph::saveCurveLayout(), Graph::setCurveStyle(), and Graph::updateCurveLayout().

§ restoreCurveLayout()

void PlotCurve::restoreCurveLayout ( const QStringList &  lst)

§ saveCurveLayout()

QString PlotCurve::saveCurveLayout ( )

§ saveCurveSymbolImage()

QString PlotCurve::saveCurveSymbolImage ( )

§ setPlotStyle()

void PlotCurve::setPlotStyle ( int  s)
inline

§ setSkipSymbolsCount()

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(), enableSideLines(), and ApplicationWindow::openGraph().

§ setType()

void PlotCurve::setType ( int  t)
inline

§ setXOffset()

void PlotCurve::setXOffset ( double  dx)
inline

References d_x_offset.

§ setYOffset()

void PlotCurve::setYOffset ( double  dy)
inline

References d_y_offset.

§ sideLinesEnabled()

bool PlotCurve::sideLinesEnabled ( )
inline

§ skipSymbolsCount()

int PlotCurve::skipSymbolsCount ( )
inline

§ type()

int PlotCurve::type ( )
inline

Sort of rtti()

References d_type.

Referenced by PlotDialog::acceptParams(), Graph::addCurves(), Graph::analysableCurvesList(), PlotDialog::applyBoxWhiskersFormatToLayer(), PlotDialog::applyErrorBarFormatToLayer(), PlotDialog::applyGapToLayer(), PlotDialog::applyLabelsFormatToItem(), PlotDialog::applyLineFormatToLayer(), PlotDialog::applyPercentileFormatToLayer(), ErrorBarsCurve::boundingRect(), Graph::boxCurve(), BoxCurve::boxRangeType(), AssociationsDialog::changePlotAssociation(), RangeSelectorTool::clearMultipleSelection(), Graph::closestCurve(), ErrorBarsCurve::copy(), Graph::copyCurves(), RangeSelectorTool::copyMultipleSelection(), Graph::curveRange(), Graph::dataCurve(), ErrorBarsCurve::direction(), ErrorBarsCurve::drawErrorBars(), LegendWidget::drawSymbol(), Graph::enableDouglasPeukerSpeedMode(), ErrorBarsCurve::ErrorBarsCurve(), SubtractLineTool::finalize(), Graph::functionCurve(), Graph::generateFunctionName(), Graph::guessUniqueCurveLayout(), Graph::initCurveLayout(), LayerItem::insertCurvesList(), PlotDialog::insertTabs(), Graph::legendText(), RangeSelectorTool::mightNeedMultipleSelection(), BaselineDialog::modifyBaseline(), LegendWidget::parse(), ErrorBarsCurve::plotAssociation(), PlotDialog::plotAssociationsDialogClosed(), Graph::print(), Graph::reloadCurvesData(), FunctionCurve::restore(), Graph::saveCurves(), DataCurve::saveToString(), PlotDialog::setActiveCurve(), PlotDialog::setAutomaticBinning(), BoxCurve::setBoxRange(), ErrorBarsCurve::setDirection(), Graph::setGrayScale(), Graph::setIndexedColors(), BoxCurve::setWhiskersRange(), ErrorBarsCurve::setXErrors(), PlotDialog::showBoxStatistics(), CurvesDialog::showCurveBtn(), RangeSelectorTool::showSelectionDialog(), QwtBarCurve::stackedCurvesList(), LegendWidget::symbolsMaxWidth(), Graph::updateCurveNames(), Graph::updateCurvesData(), AxesDialog::updateMinorTicksList(), DataCurve::validCurveType(), and ErrorBarsCurve::xErrors().

§ xOffset()

double PlotCurve::xOffset ( )
inline

§ yOffset()

double PlotCurve::yOffset ( )
inline

Member Data Documentation

§ d_plot_style

int PlotCurve::d_plot_style
protected

§ d_side_lines

bool PlotCurve::d_side_lines
protected

§ d_skip_symbols

int PlotCurve::d_skip_symbols
protected

§ d_type

int PlotCurve::d_type
protected

§ d_x_offset

double PlotCurve::d_x_offset
protected

§ d_y_offset

double PlotCurve::d_y_offset
protected

The documentation for this class was generated from the following files: