QCPCurve Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Inheritance diagram for QCPCurve:
Collaboration diagram for QCPCurve:

Public Types

enum  LineStyle {
  lsNone, lsLine, lsNone, lsLine,
  lsNone, lsLine
}
 
enum  LineStyle {
  lsNone, lsLine, lsNone, lsLine,
  lsNone, lsLine
}
 
enum  LineStyle {
  lsNone, lsLine, lsNone, lsLine,
  lsNone, lsLine
}
 

Public Member Functions

 QCPCurve (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPCurve ()
 
QCPCurveDataMapdata () const
 
QCPScatterStyle scatterStyle () const
 
LineStyle lineStyle () const
 
void setData (QCPCurveDataMap *data, bool copy=false)
 
void setData (const QVector< double > &t, const QVector< double > &key, const QVector< double > &value)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void setScatterStyle (const QCPScatterStyle &style)
 
void setLineStyle (LineStyle style)
 
void addData (const QCPCurveDataMap &dataMap)
 
void addData (const QCPCurveData &data)
 
void addData (double t, double key, double value)
 
void addData (double key, double value)
 
void addData (const QVector< double > &ts, const QVector< double > &keys, const QVector< double > &values)
 
void removeDataBefore (double t)
 
void removeDataAfter (double t)
 
void removeData (double fromt, double tot)
 
void removeData (double t)
 
virtual void clearData ()
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
 QCPCurve (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPCurve ()
 
QSharedPointer< QCPCurveDataContainerdata () const
 
QCPScatterStyle scatterStyle () const
 
int scatterSkip () const
 
LineStyle lineStyle () const
 
void setData (QSharedPointer< QCPCurveDataContainer > data)
 
void setData (const QVector< double > &t, const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void setData (const QVector< double > &keys, const QVector< double > &values)
 
void setScatterStyle (const QCPScatterStyle &style)
 
void setScatterSkip (int skip)
 
void setLineStyle (LineStyle style)
 
void addData (const QVector< double > &t, const QVector< double > &keys, const QVector< double > &values, bool alreadySorted=false)
 
void addData (const QVector< double > &keys, const QVector< double > &values)
 
void addData (double t, double key, double value)
 
void addData (double key, double value)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
virtual QCPRange getKeyRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth) const Q_DECL_OVERRIDE
 
virtual QCPRange getValueRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth, const QCPRange &inKeyRange=QCPRange()) const Q_DECL_OVERRIDE
 
 QCPCurve (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPCurve ()
 
QCPCurveDataMapdata () const
 
QCPScatterStyle scatterStyle () const
 
LineStyle lineStyle () const
 
void setData (QCPCurveDataMap *data, bool copy=false)
 
void setData (const QVector< double > &t, const QVector< double > &key, const QVector< double > &value)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void setScatterStyle (const QCPScatterStyle &style)
 
void setLineStyle (LineStyle style)
 
void addData (const QCPCurveDataMap &dataMap)
 
void addData (const QCPCurveData &data)
 
void addData (double t, double key, double value)
 
void addData (double key, double value)
 
void addData (const QVector< double > &ts, const QVector< double > &keys, const QVector< double > &values)
 
void removeDataBefore (double t)
 
void removeDataAfter (double t)
 
void removeData (double fromt, double tot)
 
void removeData (double t)
 
virtual void clearData ()
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
- Public Member Functions inherited from QCPAbstractPlottable
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
bool antialiasedErrorBars () const
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
bool selectable () const
 
bool selected () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setAntialiasedErrorBars (bool enabled)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual bool addToLegend ()
 
virtual bool removeFromLegend () const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) const
 
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable ()
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
QPen pen () const
 
QBrush brush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
QCP::SelectionType selectable () const
 
bool selected () const
 
QCPDataSelection selection () const
 
QCPSelectionDecoratorselectionDecorator () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (QCP::SelectionType selectable)
 
Q_SLOT void setSelection (QCPDataSelection selection)
 
void setSelectionDecorator (QCPSelectionDecorator *decorator)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false, bool inKeyRange=false) const
 
bool addToLegend (QCPLegend *legend)
 
bool addToLegend ()
 
bool removeFromLegend (QCPLegend *legend) const
 
bool removeFromLegend () const
 
 QCPAbstractPlottable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
QString name () const
 
bool antialiasedFill () const
 
bool antialiasedScatters () const
 
bool antialiasedErrorBars () const
 
QPen pen () const
 
QPen selectedPen () const
 
QBrush brush () const
 
QBrush selectedBrush () const
 
QCPAxiskeyAxis () const
 
QCPAxisvalueAxis () const
 
bool selectable () const
 
bool selected () const
 
void setName (const QString &name)
 
void setAntialiasedFill (bool enabled)
 
void setAntialiasedScatters (bool enabled)
 
void setAntialiasedErrorBars (bool enabled)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setSelectedBrush (const QBrush &brush)
 
void setKeyAxis (QCPAxis *axis)
 
void setValueAxis (QCPAxis *axis)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
virtual bool addToLegend ()
 
virtual bool removeFromLegend () const
 
void rescaleAxes (bool onlyEnlarge=false) const
 
void rescaleKeyAxis (bool onlyEnlarge=false) const
 
void rescaleValueAxis (bool onlyEnlarge=false) const
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
- Public Member Functions inherited from QCPAbstractPlottable1D< QCPCurveData >
 QCPAbstractPlottable1D (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
virtual ~QCPAbstractPlottable1D ()
 
virtual int dataCount () const Q_DECL_OVERRIDE
 
virtual double dataMainKey (int index) const Q_DECL_OVERRIDE
 
virtual double dataSortKey (int index) const Q_DECL_OVERRIDE
 
virtual double dataMainValue (int index) const Q_DECL_OVERRIDE
 
virtual QCPRange dataValueRange (int index) const Q_DECL_OVERRIDE
 
virtual QPointF dataPixelPosition (int index) const Q_DECL_OVERRIDE
 
virtual bool sortKeyIsMainKey () const Q_DECL_OVERRIDE
 
virtual QCPDataSelection selectTestRect (const QRectF &rect, bool onlySelectable) const Q_DECL_OVERRIDE
 
virtual int findBegin (double sortKey, bool expandedRange=true) const Q_DECL_OVERRIDE
 
virtual int findEnd (double sortKey, bool expandedRange=true) const Q_DECL_OVERRIDE
 
virtual QCPPlottableInterface1Dinterface1D () Q_DECL_OVERRIDE
 
- Public Member Functions inherited from QCPPlottableInterface1D
virtual ~QCPPlottableInterface1D ()
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual void drawScatterPlot (QCPPainter *painter, const QVector< QPointF > *pointData) const
 
void getCurveData (QVector< QPointF > *lineData) const
 
int getRegion (double x, double y, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
QPointF getOptimizedPoint (int prevRegion, double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
QVector< QPointF > getOptimizedCornerPoints (int prevRegion, int currentRegion, double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
bool mayTraverse (int prevRegion, int currentRegion) const
 
bool getTraverse (double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom, QPointF &crossA, QPointF &crossB) const
 
void getTraverseCornerPoints (int prevRegion, int currentRegion, double rectLeft, double rectTop, double rectRight, double rectBottom, QVector< QPointF > &beforeTraverse, QVector< QPointF > &afterTraverse) const
 
double pointDistance (const QPointF &pixelPoint) const
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const Q_DECL_OVERRIDE
 
virtual void drawCurveLine (QCPPainter *painter, const QVector< QPointF > &lines) const
 
virtual void drawScatterPlot (QCPPainter *painter, const QVector< QPointF > &points, const QCPScatterStyle &style) const
 
void getCurveLines (QVector< QPointF > *lines, const QCPDataRange &dataRange, double penWidth) const
 
void getScatters (QVector< QPointF > *scatters, const QCPDataRange &dataRange, double scatterWidth) const
 
int getRegion (double key, double value, double keyMin, double valueMax, double keyMax, double valueMin) const
 
QPointF getOptimizedPoint (int prevRegion, double prevKey, double prevValue, double key, double value, double keyMin, double valueMax, double keyMax, double valueMin) const
 
QVector< QPointF > getOptimizedCornerPoints (int prevRegion, int currentRegion, double prevKey, double prevValue, double key, double value, double keyMin, double valueMax, double keyMax, double valueMin) const
 
bool mayTraverse (int prevRegion, int currentRegion) const
 
bool getTraverse (double prevKey, double prevValue, double key, double value, double keyMin, double valueMax, double keyMax, double valueMin, QPointF &crossA, QPointF &crossB) const
 
void getTraverseCornerPoints (int prevRegion, int currentRegion, double keyMin, double valueMax, double keyMax, double valueMin, QVector< QPointF > &beforeTraverse, QVector< QPointF > &afterTraverse) const
 
double pointDistance (const QPointF &pixelPoint, QCPCurveDataContainer::const_iterator &closestData) const
 
virtual void draw (QCPPainter *painter)
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const
 
virtual QCPRange getKeyRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual QCPRange getValueRange (bool &foundRange, SignDomain inSignDomain=sdBoth) const
 
virtual void drawScatterPlot (QCPPainter *painter, const QVector< QPointF > *pointData) const
 
void getCurveData (QVector< QPointF > *lineData) const
 
int getRegion (double x, double y, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
QPointF getOptimizedPoint (int prevRegion, double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
QVector< QPointF > getOptimizedCornerPoints (int prevRegion, int currentRegion, double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom) const
 
bool mayTraverse (int prevRegion, int currentRegion) const
 
bool getTraverse (double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom, QPointF &crossA, QPointF &crossB) const
 
void getTraverseCornerPoints (int prevRegion, int currentRegion, double rectLeft, double rectTop, double rectRight, double rectBottom, QVector< QPointF > &beforeTraverse, QVector< QPointF > &afterTraverse) const
 
double pointDistance (const QPointF &pixelPoint) const
 
- Protected Member Functions inherited from QCPAbstractPlottable
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
QPen mainPen () const
 
QBrush mainBrush () const
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
void applyErrorBarsAntialiasingHint (QCPPainter *painter) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
virtual QRect clipRect () const Q_DECL_OVERRIDE
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
virtual QRect clipRect () const
 
virtual QCP::Interaction selectionCategory () const
 
void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
void coordsToPixels (double key, double value, double &x, double &y) const
 
const QPointF coordsToPixels (double key, double value) const
 
void pixelsToCoords (double x, double y, double &key, double &value) const
 
void pixelsToCoords (const QPointF &pixelPos, double &key, double &value) const
 
QPen mainPen () const
 
QBrush mainBrush () const
 
void applyFillAntialiasingHint (QCPPainter *painter) const
 
void applyScattersAntialiasingHint (QCPPainter *painter) const
 
void applyErrorBarsAntialiasingHint (QCPPainter *painter) const
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
- Protected Member Functions inherited from QCPAbstractPlottable1D< QCPCurveData >
void getDataSegments (QList< QCPDataRange > &selectedSegments, QList< QCPDataRange > &unselectedSegments) const
 
void drawPolyline (QCPPainter *painter, const QVector< QPointF > &lineData) const
 

Protected Attributes

QCPCurveDataMapmData
 
QCPScatterStyle mScatterStyle
 
LineStyle mLineStyle
 
int mScatterSkip
 
- Protected Attributes inherited from QCPAbstractPlottable
QString mName
 
bool mAntialiasedFill
 
bool mAntialiasedScatters
 
bool mAntialiasedErrorBars
 
QPen mPen
 
QPen mSelectedPen
 
QBrush mBrush
 
QBrush mSelectedBrush
 
QPointer< QCPAxismKeyAxis
 
QPointer< QCPAxismValueAxis
 
bool mSelectable
 
bool mSelected
 
QCP::SelectionType mSelectable
 
QCPDataSelection mSelection
 
QCPSelectionDecoratormSelectionDecorator
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 
- Protected Attributes inherited from QCPAbstractPlottable1D< QCPCurveData >
QSharedPointer< QCPDataContainer< QCPCurveData > > mDataContainer
 

Friends

class QCustomPlot
 
class QCPLegend
 

Additional Inherited Members

- Signals inherited from QCPAbstractPlottable
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectionChanged (const QCPDataSelection &selection)
 
void selectableChanged (QCP::SelectionType selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
- Protected Types inherited from QCPAbstractPlottable
enum  SignDomain {
  sdNegative, sdBoth, sdPositive, sdNegative,
  sdBoth, sdPositive
}
 
enum  SignDomain {
  sdNegative, sdBoth, sdPositive, sdNegative,
  sdBoth, sdPositive
}
 

Member Enumeration Documentation

◆ LineStyle [1/3]

Defines how the curve's line is represented visually in the plot. The line is drawn with the current pen of the curve (setPen).

See also
setLineStyle
Enumerator
lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

◆ LineStyle [2/3]

Defines how the curve's line is represented visually in the plot. The line is drawn with the current pen of the curve (setPen).

See also
setLineStyle
Enumerator
lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

◆ LineStyle [3/3]

Defines how the curve's line is represented visually in the plot. The line is drawn with the current pen of the curve (setPen).

See also
setLineStyle
Enumerator
lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

lsNone 

No line is drawn between data points (e.g. only scatters)

lsLine 

Data points are connected with a straight line.

Constructor & Destructor Documentation

◆ QCPCurve() [1/3]

QCPCurve::QCPCurve ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPCurve() [1/3]

virtual QCPCurve::~QCPCurve ( )
virtual

◆ QCPCurve() [2/3]

QCPCurve::QCPCurve ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPCurve() [2/3]

virtual QCPCurve::~QCPCurve ( )
virtual

◆ QCPCurve() [3/3]

QCPCurve::QCPCurve ( QCPAxis keyAxis,
QCPAxis valueAxis 
)
explicit

◆ ~QCPCurve() [3/3]

virtual QCPCurve::~QCPCurve ( )
virtual

Member Function Documentation

◆ addData() [1/14]

void QCPCurve::addData ( const QCPCurveDataMap dataMap)

◆ addData() [2/14]

void QCPCurve::addData ( const QCPCurveDataMap dataMap)

◆ addData() [3/14]

void QCPCurve::addData ( const QCPCurveData data)

◆ addData() [4/14]

void QCPCurve::addData ( const QCPCurveData data)

◆ addData() [5/14]

void QCPCurve::addData ( double  t,
double  key,
double  value 
)

◆ addData() [6/14]

void QCPCurve::addData ( double  t,
double  key,
double  value 
)

◆ addData() [7/14]

void QCPCurve::addData ( double  key,
double  value 
)

◆ addData() [8/14]

void QCPCurve::addData ( double  key,
double  value 
)

◆ addData() [9/14]

void QCPCurve::addData ( const QVector< double > &  ts,
const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ addData() [10/14]

void QCPCurve::addData ( const QVector< double > &  ts,
const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ addData() [11/14]

void QCPCurve::addData ( const QVector< double > &  t,
const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

◆ addData() [12/14]

void QCPCurve::addData ( const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ addData() [13/14]

void QCPCurve::addData ( double  t,
double  key,
double  value 
)

◆ addData() [14/14]

void QCPCurve::addData ( double  key,
double  value 
)

◆ clearData() [1/2]

virtual void QCPCurve::clearData ( )
virtual

Implements QCPAbstractPlottable.

◆ clearData() [2/2]

virtual void QCPCurve::clearData ( )
virtual

Implements QCPAbstractPlottable.

◆ data() [1/3]

QCPCurveDataMap* QCPCurve::data ( ) const
inline

◆ data() [2/3]

QCPCurveDataMap* QCPCurve::data ( ) const
inline

◆ data() [3/3]

QSharedPointer<QCPCurveDataContainer> QCPCurve::data ( ) const
inline

◆ draw() [1/3]

virtual void QCPCurve::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ draw() [2/3]

virtual void QCPCurve::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ draw() [3/3]

virtual void QCPCurve::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawCurveLine()

virtual void QCPCurve::drawCurveLine ( QCPPainter painter,
const QVector< QPointF > &  lines 
) const
protectedvirtual

◆ drawLegendIcon() [1/3]

virtual void QCPCurve::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLegendIcon() [2/3]

virtual void QCPCurve::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawLegendIcon() [3/3]

virtual void QCPCurve::drawLegendIcon ( QCPPainter painter,
const QRectF &  rect 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ drawScatterPlot() [1/3]

virtual void QCPCurve::drawScatterPlot ( QCPPainter painter,
const QVector< QPointF > *  pointData 
) const
protectedvirtual

◆ drawScatterPlot() [2/3]

virtual void QCPCurve::drawScatterPlot ( QCPPainter painter,
const QVector< QPointF > *  pointData 
) const
protectedvirtual

◆ drawScatterPlot() [3/3]

virtual void QCPCurve::drawScatterPlot ( QCPPainter painter,
const QVector< QPointF > &  points,
const QCPScatterStyle style 
) const
protectedvirtual

◆ getCurveData() [1/2]

void QCPCurve::getCurveData ( QVector< QPointF > *  lineData) const
protected

◆ getCurveData() [2/2]

void QCPCurve::getCurveData ( QVector< QPointF > *  lineData) const
protected

◆ getCurveLines()

void QCPCurve::getCurveLines ( QVector< QPointF > *  lines,
const QCPDataRange dataRange,
double  penWidth 
) const
protected

◆ getKeyRange() [1/3]

virtual QCPRange QCPCurve::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getKeyRange() [2/3]

virtual QCPRange QCPCurve::getKeyRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getKeyRange() [3/3]

virtual QCPRange QCPCurve::getKeyRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth 
) const
virtual

Implements QCPAbstractPlottable.

◆ getOptimizedCornerPoints() [1/3]

QVector<QPointF> QCPCurve::getOptimizedCornerPoints ( int  prevRegion,
int  currentRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getOptimizedCornerPoints() [2/3]

QVector<QPointF> QCPCurve::getOptimizedCornerPoints ( int  prevRegion,
int  currentRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getOptimizedCornerPoints() [3/3]

QVector<QPointF> QCPCurve::getOptimizedCornerPoints ( int  prevRegion,
int  currentRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  keyMin,
double  valueMax,
double  keyMax,
double  valueMin 
) const
protected

◆ getOptimizedPoint() [1/3]

QPointF QCPCurve::getOptimizedPoint ( int  prevRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getOptimizedPoint() [2/3]

QPointF QCPCurve::getOptimizedPoint ( int  prevRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getOptimizedPoint() [3/3]

QPointF QCPCurve::getOptimizedPoint ( int  prevRegion,
double  prevKey,
double  prevValue,
double  key,
double  value,
double  keyMin,
double  valueMax,
double  keyMax,
double  valueMin 
) const
protected

◆ getRegion() [1/3]

int QCPCurve::getRegion ( double  x,
double  y,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getRegion() [2/3]

int QCPCurve::getRegion ( double  x,
double  y,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom 
) const
protected

◆ getRegion() [3/3]

int QCPCurve::getRegion ( double  key,
double  value,
double  keyMin,
double  valueMax,
double  keyMax,
double  valueMin 
) const
protected

◆ getScatters()

void QCPCurve::getScatters ( QVector< QPointF > *  scatters,
const QCPDataRange dataRange,
double  scatterWidth 
) const
protected

◆ getTraverse() [1/3]

bool QCPCurve::getTraverse ( double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom,
QPointF &  crossA,
QPointF &  crossB 
) const
protected

◆ getTraverse() [2/3]

bool QCPCurve::getTraverse ( double  prevKey,
double  prevValue,
double  key,
double  value,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom,
QPointF &  crossA,
QPointF &  crossB 
) const
protected

◆ getTraverse() [3/3]

bool QCPCurve::getTraverse ( double  prevKey,
double  prevValue,
double  key,
double  value,
double  keyMin,
double  valueMax,
double  keyMax,
double  valueMin,
QPointF &  crossA,
QPointF &  crossB 
) const
protected

◆ getTraverseCornerPoints() [1/3]

void QCPCurve::getTraverseCornerPoints ( int  prevRegion,
int  currentRegion,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom,
QVector< QPointF > &  beforeTraverse,
QVector< QPointF > &  afterTraverse 
) const
protected

◆ getTraverseCornerPoints() [2/3]

void QCPCurve::getTraverseCornerPoints ( int  prevRegion,
int  currentRegion,
double  rectLeft,
double  rectTop,
double  rectRight,
double  rectBottom,
QVector< QPointF > &  beforeTraverse,
QVector< QPointF > &  afterTraverse 
) const
protected

◆ getTraverseCornerPoints() [3/3]

void QCPCurve::getTraverseCornerPoints ( int  prevRegion,
int  currentRegion,
double  keyMin,
double  valueMax,
double  keyMax,
double  valueMin,
QVector< QPointF > &  beforeTraverse,
QVector< QPointF > &  afterTraverse 
) const
protected

◆ getValueRange() [1/3]

virtual QCPRange QCPCurve::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getValueRange() [2/3]

virtual QCPRange QCPCurve::getValueRange ( bool &  foundRange,
SignDomain  inSignDomain = sdBoth 
) const
protectedvirtual

Implements QCPAbstractPlottable.

◆ getValueRange() [3/3]

virtual QCPRange QCPCurve::getValueRange ( bool &  foundRange,
QCP::SignDomain  inSignDomain = QCP::sdBoth,
const QCPRange inKeyRange = QCPRange() 
) const
virtual

Implements QCPAbstractPlottable.

◆ lineStyle() [1/3]

LineStyle QCPCurve::lineStyle ( ) const
inline

◆ lineStyle() [2/3]

LineStyle QCPCurve::lineStyle ( ) const
inline

◆ lineStyle() [3/3]

LineStyle QCPCurve::lineStyle ( ) const
inline

◆ mayTraverse() [1/3]

bool QCPCurve::mayTraverse ( int  prevRegion,
int  currentRegion 
) const
protected

◆ mayTraverse() [2/3]

bool QCPCurve::mayTraverse ( int  prevRegion,
int  currentRegion 
) const
protected

◆ mayTraverse() [3/3]

bool QCPCurve::mayTraverse ( int  prevRegion,
int  currentRegion 
) const
protected

◆ pointDistance() [1/3]

double QCPCurve::pointDistance ( const QPointF &  pixelPoint) const
protected

◆ pointDistance() [2/3]

double QCPCurve::pointDistance ( const QPointF &  pixelPoint) const
protected

◆ pointDistance() [3/3]

double QCPCurve::pointDistance ( const QPointF &  pixelPoint,
QCPCurveDataContainer::const_iterator closestData 
) const
protected

◆ removeData() [1/4]

void QCPCurve::removeData ( double  fromt,
double  tot 
)

◆ removeData() [2/4]

void QCPCurve::removeData ( double  fromt,
double  tot 
)

◆ removeData() [3/4]

void QCPCurve::removeData ( double  t)

◆ removeData() [4/4]

void QCPCurve::removeData ( double  t)

◆ removeDataAfter() [1/2]

void QCPCurve::removeDataAfter ( double  t)

◆ removeDataAfter() [2/2]

void QCPCurve::removeDataAfter ( double  t)

◆ removeDataBefore() [1/2]

void QCPCurve::removeDataBefore ( double  t)

◆ removeDataBefore() [2/2]

void QCPCurve::removeDataBefore ( double  t)

◆ scatterSkip()

int QCPCurve::scatterSkip ( ) const
inline

◆ scatterStyle() [1/3]

QCPScatterStyle QCPCurve::scatterStyle ( ) const
inline

◆ scatterStyle() [2/3]

QCPScatterStyle QCPCurve::scatterStyle ( ) const
inline

◆ scatterStyle() [3/3]

QCPScatterStyle QCPCurve::scatterStyle ( ) const
inline

◆ selectTest() [1/3]

virtual double QCPCurve::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractPlottable.

◆ selectTest() [2/3]

virtual double QCPCurve::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractPlottable.

◆ selectTest() [3/3]

virtual double QCPCurve::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractPlottable.

◆ setData() [1/9]

void QCPCurve::setData ( QCPCurveDataMap data,
bool  copy = false 
)

◆ setData() [2/9]

void QCPCurve::setData ( QCPCurveDataMap data,
bool  copy = false 
)

◆ setData() [3/9]

void QCPCurve::setData ( const QVector< double > &  t,
const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [4/9]

void QCPCurve::setData ( const QVector< double > &  t,
const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [5/9]

void QCPCurve::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [6/9]

void QCPCurve::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)

◆ setData() [7/9]

void QCPCurve::setData ( QSharedPointer< QCPCurveDataContainer data)

◆ setData() [8/9]

void QCPCurve::setData ( const QVector< double > &  t,
const QVector< double > &  keys,
const QVector< double > &  values,
bool  alreadySorted = false 
)

◆ setData() [9/9]

void QCPCurve::setData ( const QVector< double > &  keys,
const QVector< double > &  values 
)

◆ setLineStyle() [1/3]

void QCPCurve::setLineStyle ( LineStyle  style)

◆ setLineStyle() [2/3]

void QCPCurve::setLineStyle ( LineStyle  style)

◆ setLineStyle() [3/3]

void QCPCurve::setLineStyle ( LineStyle  style)

◆ setScatterSkip()

void QCPCurve::setScatterSkip ( int  skip)

◆ setScatterStyle() [1/3]

void QCPCurve::setScatterStyle ( const QCPScatterStyle style)

◆ setScatterStyle() [2/3]

void QCPCurve::setScatterStyle ( const QCPScatterStyle style)

◆ setScatterStyle() [3/3]

void QCPCurve::setScatterStyle ( const QCPScatterStyle style)

Friends And Related Function Documentation

◆ QCPLegend

QCPLegend
friend

◆ QCustomPlot

QCustomPlot
friend

Member Data Documentation

◆ mData

QCPCurveDataMap * QCPCurve::mData
protected

◆ mLineStyle

LineStyle QCPCurve::mLineStyle
protected

◆ mScatterSkip

int QCPCurve::mScatterSkip
protected

◆ mScatterStyle

QCPScatterStyle QCPCurve::mScatterStyle
protected

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