49#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
52#include <QPrintEngine>
56#include <QtPrintSupport/QtPrintSupport>
82#if defined(QCUSTOMPLOT_COMPILE_LIBRARY)
83#define QCP_LIB_DECL Q_DECL_EXPORT
84#elif defined(QCUSTOMPLOT_USE_LIBRARY)
85#define QCP_LIB_DECL Q_DECL_IMPORT
235 return qIsNaN(value) || qIsInf(value);
256 margins.setLeft(value);
259 margins.setRight(value);
262 margins.setTop(value);
265 margins.setBottom(value);
268 margins = QMargins(value, value, value, value);
285 return margins.left();
287 return margins.right();
289 return margins.top();
291 return margins.bottom();
300Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::AntialiasedElements)
301Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::PlottingHints)
302Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::MarginSides)
303Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::Interactions)
375 const QBrush &
brush = Qt::NoBrush,
double size = 6);
439 Q_FLAGS(PainterMode PainterModes)
440 Q_DECLARE_FLAGS(PainterModes, PainterMode)
447 bool antialiasing()
const {
return testRenderHint(QPainter::Antialiasing); }
461 void drawLine(
const QPointF &p1,
const QPointF &p2) {
478Q_DECLARE_OPERATORS_FOR_FLAGS(QCPPainter::PainterModes)
550 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
551 QVariant *details = 0)
const;
575 const QVariant &details,
576 bool *selectionStateChanged);
742 QHash<QCP::MarginSide, QList<QCPLayoutElement *> >
mChildren;
817 virtual QList<QCPLayoutElement *>
elements(
bool recursive)
const;
820 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
821 QVariant *details = 0)
const;
839 virtual void wheelEvent(QWheelEvent *event) { Q_UNUSED(event) }
863 virtual QList<QCPLayoutElement *>
elements(
bool recursive)
const;
886 QVector<double> stretchFactors,
887 int totalSize)
const;
932 virtual QList<QCPLayoutElement *>
elements(
bool recursive)
const;
941 void expandTo(
int newRowCount,
int newColumnCount);
954 QVector<int> *minRowHeights)
const;
956 QVector<int> *maxRowHeights)
const;
997 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
998 QVariant *details = 0)
const;
1076 const QVector2D &dir)
const;
1224 Q_FLAGS(AxisType AxisTypes)
1225 Q_DECLARE_FLAGS(AxisTypes, AxisType)
1281 Q_FLAGS(SelectablePart SelectableParts)
1282 Q_DECLARE_FLAGS(SelectableParts, SelectablePart)
1346 void setRange(
double position,
double size, Qt::AlignmentFlag alignment);
1400 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
1401 QVariant *details = 0)
const;
1418 return type ==
atBottom || type ==
atTop ? Qt::Horizontal : Qt::Vertical;
1496 const QVariant &details,
1497 bool *selectionStateChanged);
1519Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPAxis::SelectableParts)
1520Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPAxis::AxisTypes)
1584 int distanceToAxis,
const QString &text,
1585 QSize *tickLabelsSize);
1589 const QString &text)
const;
1592 QSize *tickLabelsSize)
const;
1648 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
1649 QVariant *details = 0)
const = 0;
1690 const QVariant &details,
1691 bool *selectionStateChanged);
1696 const QRectF &rect)
const = 0;
1707 double &value)
const;
1714 const QPointF &point)
const;
1727 const QString
name,
int anchorId = -1);
1798 const QString
name);
1821 bool keepPixelPosition =
false);
1823 bool keepPixelPosition =
false);
1825 bool keepPixelPosition =
false);
1874 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
1875 QVariant *details = 0)
const = 0;
1903 const QVariant &details,
1904 bool *selectionStateChanged);
1912 const QPointF &point)
const;
1914 bool filledRect)
const;
1955 Q_ENUMS(LayerInsertMode)
2006 Qt::AspectRatioMode mode = Qt::KeepAspectRatioByExpanding);
2013 bool enabled =
true);
2017 bool enabled =
true);
2038 bool onlySelectable =
false)
const;
2061 bool onlySelectable =
false)
const;
2088 bool savePdf(
const QString &fileName,
bool noCosmeticPen =
false,
2089 int width = 0,
int height = 0,
2090 const QString &pdfCreator = QString(),
2091 const QString &pdfTitle = QString());
2092 bool savePng(
const QString &fileName,
int width = 0,
int height = 0,
2093 double scale = 1.0,
int quality = -1);
2094 bool saveJpg(
const QString &fileName,
int width = 0,
int height = 0,
2095 double scale = 1.0,
int quality = -1);
2096 bool saveBmp(
const QString &fileName,
int width = 0,
int height = 0,
2097 double scale = 1.0);
2099 double scale,
const char *format,
int quality = -1);
2100 QPixmap
toPixmap(
int width = 0,
int height = 0,
double scale = 1.0);
2117 QMouseEvent *event);
2121 QMouseEvent *event);
2123 QMouseEvent *event);
2125 QMouseEvent *event);
2127 QMouseEvent *event);
2183 QVariant *selectionDetails = 0)
const;
2208 Q_ENUMS(ColorInterpolation)
2254 Q_ENUMS(GradientPreset)
2259 return !(*
this == other);
2277 int n,
int dataIndexFactor = 1,
bool logarithmic =
false);
2327 Qt::AspectRatioMode mode = Qt::KeepAspectRatioByExpanding);
2341 QList<QCPAxis *>
axes(QCPAxis::AxisTypes types)
const;
2344 QList<QCPAxis *>
addAxes(QCPAxis::AxisTypes types);
2369 virtual QList<QCPLayoutElement *>
elements(
bool recursive)
const;
2388 QHash<QCPAxis::AxisType, QList<QCPAxis *> >
mAxes;
2445 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2446 QVariant *details = 0)
const;
2468 const QVariant &details,
2469 bool *selectionStateChanged);
2537 Q_FLAGS(SelectablePart SelectableParts)
2538 Q_DECLARE_FLAGS(SelectableParts, SelectablePart)
2577 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2578 QVariant *details = 0)
const;
2618 const QVariant &details,
2619 bool *selectionStateChanged);
2632Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPLegend::SelectableParts)
2672 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2673 QVariant *details = 0)
const;
2696 const QVariant &details,
2697 bool *selectionStateChanged);
2906 void setData(
const QVector<double> &key,
const QVector<double> &value);
2908 const QVector<double> &keyError);
2910 const QVector<double> &keyErrorMinus,
2911 const QVector<double> &keyErrorPlus);
2913 const QVector<double> &value,
2914 const QVector<double> &valueError);
2916 const QVector<double> &value,
2917 const QVector<double> &valueErrorMinus,
2918 const QVector<double> &valueErrorPlus);
2920 const QVector<double> &value,
2921 const QVector<double> &keyError,
2922 const QVector<double> &valueError);
2924 const QVector<double> &value,
2925 const QVector<double> &keyErrorMinus,
2926 const QVector<double> &keyErrorPlus,
2927 const QVector<double> &valueErrorMinus,
2928 const QVector<double> &valueErrorPlus);
2942 void addData(
const QVector<double> &keys,
const QVector<double> &values);
2950 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2951 QVariant *details = 0)
const;
2983 bool includeErrors)
const;
2986 bool includeErrors)
const;
2991 QVector<QCPData> *scatterData)
const;
2993 QVector<QPointF> *lineData)
const;
2995 QVector<QPointF> *lineData)
const;
2999 QVector<QCPData> *scatterData)
const;
3001 QVector<QCPData> *scatterData)
const;
3004 QVector<QCPData> *scatterData)
const;
3006 QVector<QCPData> *scatterData)
const;
3008 QVector<QCPData> *scatterData)
const;
3010 QVector<QCPData> *scatterData)
const;
3012 QVector<QCPData> *scatterData)
const;
3016 QCPDataMap::const_iterator &upper)
const;
3018 const QCPDataMap::const_iterator &upper,
3019 int maxCount)
const;
3055typedef QMutableMapIterator<double, QCPCurveData>
3085 void setData(
const QVector<double> &t,
const QVector<double> &key,
3086 const QVector<double> &value);
3087 void setData(
const QVector<double> &key,
const QVector<double> &value);
3096 void addData(
const QVector<double> &ts,
const QVector<double> &keys,
3097 const QVector<double> &values);
3105 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3106 QVariant *details = 0)
const;
3124 const QVector<QPointF> *pointData)
const;
3128 int getRegion(
double x,
double y,
double rectLeft,
double rectTop,
3129 double rectRight,
double rectBottom)
const;
3131 double key,
double value,
double rectLeft,
3132 double rectTop,
double rectRight,
3133 double rectBottom)
const;
3135 double prevKey,
double prevValue,
3136 double key,
double value,
3137 double rectLeft,
double rectTop,
3139 double rectBottom)
const;
3141 bool getTraverse(
double prevKey,
double prevValue,
double key,
double value,
3142 double rectLeft,
double rectTop,
double rectRight,
3143 double rectBottom, QPointF &crossA, QPointF &crossB)
const;
3145 double rectLeft,
double rectTop,
3146 double rectRight,
double rectBottom,
3147 QVector<QPointF> &beforeTraverse,
3148 QVector<QPointF> &afterTraverse)
const;
3286 void setData(
const QVector<double> &key,
const QVector<double> &value);
3294 void addData(
const QVector<double> &keys,
const QVector<double> &values);
3302 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3303 QVariant *details = 0)
const;
3324 QCPBarDataMap::const_iterator &upperEnd)
const;
3392 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3393 QVariant *details = 0)
const;
3414 QRectF *quartileBox = 0)
const;
3437 double data(
double key,
double value);
3438 double cell(
int keyIndex,
int valueIndex);
3448 void setCell(
int keyIndex,
int valueIndex,
double z);
3456 int *valueIndex)
const;
3458 double *value)
const;
3511 Qt::TransformationMode transformMode = Qt::SmoothTransformation,
3512 const QSize &thumbSize = QSize(32, 18));
3516 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3517 QVariant *details = 0)
const;
3573typedef QMutableMapIterator<double, QCPFinancialData>
3615 void setData(
const QVector<double> &key,
const QVector<double> &open,
3616 const QVector<double> &high,
const QVector<double> &low,
3617 const QVector<double> &close);
3629 void addData(
double key,
double open,
double high,
double low,
double close);
3630 void addData(
const QVector<double> &key,
const QVector<double> &open,
3631 const QVector<double> &high,
const QVector<double> &low,
3632 const QVector<double> &close);
3640 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3641 QVariant *details = 0)
const;
3645 const QVector<double> &value,
3647 double timeBinOffset = 0);
3668 const QCPFinancialDataMap::const_iterator &begin,
3669 const QCPFinancialDataMap::const_iterator &end);
3671 const QCPFinancialDataMap::const_iterator &begin,
3672 const QCPFinancialDataMap::const_iterator &end);
3674 const QCPFinancialDataMap::const_iterator &begin,
3675 const QCPFinancialDataMap::const_iterator &end)
const;
3677 const QPointF &pos,
const QCPFinancialDataMap::const_iterator &begin,
3678 const QCPFinancialDataMap::const_iterator &end)
const;
3680 QCPFinancialDataMap::const_iterator &upper)
const;
3705 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3706 QVariant *details = 0)
const;
3720 const QVector2D &point)
const;
3722 const QVector2D &vec,
3723 const QRect &rect)
const;
3752 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3753 QVariant *details = 0)
const;
3768 const QRect &rect)
const;
3797 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3798 QVariant *details = 0)
const;
3842 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3843 QVariant *details = 0)
const;
3931 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3932 QVariant *details = 0)
const;
4005 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4006 QVariant *details = 0)
const;
4079 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4080 QVariant *details = 0)
const;
4116 bool flipVert =
false);
4152 Q_ENUMS(TracerStyle)
4180 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4181 QVariant *details = 0)
const;
4242 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4243 QVariant *details = 0)
const;
Definition qcustomplot.h:1847
friend class QCustomPlot
Definition qcustomplot.h:1921
virtual void deselectEvent(bool *selectionStateChanged)
QCPItemAnchor * anchor(const QString &name) const
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
virtual QPointF anchorPixelPoint(int anchorId) const
QCPItemPosition * position(const QString &name) const
double rectSelectTest(const QRectF &rect, const QPointF &pos, bool filledRect) const
QList< QCPItemAnchor * > mAnchors
Definition qcustomplot.h:1893
QPointer< QCPAxisRect > mClipAxisRect
Definition qcustomplot.h:1891
void setClipToAxisRect(bool clip)
QList< QCPItemPosition * > mPositions
Definition qcustomplot.h:1892
friend class QCPItemAnchor
Definition qcustomplot.h:1922
bool clipToAxisRect() const
Definition qcustomplot.h:1862
bool mSelected
Definition qcustomplot.h:1894
void selectableChanged(bool selectable)
virtual QCP::Interaction selectionCategory() const
QList< QCPItemPosition * > positions() const
Definition qcustomplot.h:1878
QCPItemPosition * createPosition(const QString &name)
void setClipAxisRect(QCPAxisRect *rect)
QList< QCPItemAnchor * > anchors() const
Definition qcustomplot.h:1879
bool hasAnchor(const QString &name) const
double distSqrToLine(const QPointF &start, const QPointF &end, const QPointF &point) const
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0
QCPAbstractItem(QCustomPlot *parentPlot)
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
bool selected() const
Definition qcustomplot.h:1865
Q_SLOT void setSelected(bool selected)
void selectionChanged(bool selected)
Q_SLOT void setSelectable(bool selectable)
bool mClipToAxisRect
Definition qcustomplot.h:1890
bool mSelectable
Definition qcustomplot.h:1894
QCPAxisRect * clipAxisRect() const
bool selectable() const
Definition qcustomplot.h:1864
virtual ~QCPAbstractItem()
virtual void draw(QCPPainter *painter)=0
QCPItemAnchor * createAnchor(const QString &name, int anchorId)
virtual QRect clipRect() const
Definition qcustomplot.h:2410
virtual QCP::Interaction selectionCategory() const
QCPLegend * parentLegend() const
Definition qcustomplot.h:2428
QColor selectedTextColor() const
Definition qcustomplot.h:2432
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
QColor textColor() const
Definition qcustomplot.h:2430
void setFont(const QFont &font)
QColor mSelectedTextColor
Definition qcustomplot.h:2458
void setSelectedTextColor(const QColor &color)
QFont font() const
Definition qcustomplot.h:2429
friend class QCPLegend
Definition qcustomplot.h:2475
void setTextColor(const QColor &color)
void selectionChanged(bool selected)
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
Q_SLOT void setSelectable(bool selectable)
virtual QRect clipRect() const
void setSelectedFont(const QFont &font)
QColor mTextColor
Definition qcustomplot.h:2456
virtual void draw(QCPPainter *painter)=0
bool mSelectable
Definition qcustomplot.h:2459
QFont mSelectedFont
Definition qcustomplot.h:2457
void selectableChanged(bool selectable)
QFont selectedFont() const
Definition qcustomplot.h:2431
Q_SLOT void setSelected(bool selected)
bool selected() const
Definition qcustomplot.h:2434
bool mSelected
Definition qcustomplot.h:2459
QCPLegend * mParentLegend
Definition qcustomplot.h:2454
QFont mFont
Definition qcustomplot.h:2455
bool selectable() const
Definition qcustomplot.h:2433
virtual void deselectEvent(bool *selectionStateChanged)
QCPAbstractLegendItem(QCPLegend *parent)
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
Definition qcustomplot.h:1595
void selectableChanged(bool selectable)
virtual QRect clipRect() const
friend class QCustomPlot
Definition qcustomplot.h:1719
bool antialiasedFill() const
Definition qcustomplot.h:1620
void applyErrorBarsAntialiasingHint(QCPPainter *painter) const
void setAntialiasedFill(bool enabled)
bool selected() const
Definition qcustomplot.h:1630
QPen mSelectedPen
Definition qcustomplot.h:1678
void rescaleAxes(bool onlyEnlarge=false) const
bool mAntialiasedFill
Definition qcustomplot.h:1677
virtual bool removeFromLegend() const
friend class QCPAxis
Definition qcustomplot.h:1720
Q_SLOT void setSelected(bool selected)
void pixelsToCoords(const QPointF &pixelPos, double &key, double &value) const
virtual bool addToLegend()
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const =0
void setAntialiasedScatters(bool enabled)
Q_SLOT void setSelectable(bool selectable)
QBrush mBrush
Definition qcustomplot.h:1679
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0
void pixelsToCoords(double x, double y, double &key, double &value) const
void selectionChanged(bool selected)
bool mSelected
Definition qcustomplot.h:1681
friend class QCPPlottableLegendItem
Definition qcustomplot.h:1721
QString name() const
Definition qcustomplot.h:1619
void applyDefaultAntialiasingHint(QCPPainter *painter) const
const QPointF coordsToPixels(double key, double value) const
SignDomain
Definition qcustomplot.h:1667
@ sdNegative
The negative sign domain, i.e. numbers smaller than zero.
Definition qcustomplot.h:1668
@ sdPositive
The positive sign domain, i.e. numbers greater than zero.
Definition qcustomplot.h:1672
@ sdBoth
Both sign domains, including zero, i.e. all (rational) numbers.
Definition qcustomplot.h:1670
QPen mPen
Definition qcustomplot.h:1678
void setSelectedPen(const QPen &pen)
void setValueAxis(QCPAxis *axis)
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const =0
void setAntialiasedErrorBars(bool enabled)
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const =0
bool antialiasedScatters() const
Definition qcustomplot.h:1621
void setBrush(const QBrush &brush)
void coordsToPixels(double key, double value, double &x, double &y) const
virtual void clearData()=0
virtual void deselectEvent(bool *selectionStateChanged)
QPointer< QCPAxis > mValueAxis
Definition qcustomplot.h:1680
QCPAxis * valueAxis() const
Definition qcustomplot.h:1628
void setKeyAxis(QCPAxis *axis)
QBrush brush() const
Definition qcustomplot.h:1625
void applyFillAntialiasingHint(QCPPainter *painter) const
bool mAntialiasedScatters
Definition qcustomplot.h:1677
void rescaleValueAxis(bool onlyEnlarge=false) const
QCPAxis * keyAxis() const
Definition qcustomplot.h:1627
QPen selectedPen() const
Definition qcustomplot.h:1624
virtual QCP::Interaction selectionCategory() const
void setPen(const QPen &pen)
void setName(const QString &name)
QString mName
Definition qcustomplot.h:1676
QPointer< QCPAxis > mKeyAxis
Definition qcustomplot.h:1680
void applyScattersAntialiasingHint(QCPPainter *painter) const
virtual void draw(QCPPainter *painter)=0
bool mSelectable
Definition qcustomplot.h:1681
bool mAntialiasedErrorBars
Definition qcustomplot.h:1677
QPen pen() const
Definition qcustomplot.h:1623
bool antialiasedErrorBars() const
Definition qcustomplot.h:1622
bool selectable() const
Definition qcustomplot.h:1629
void setSelectedBrush(const QBrush &brush)
void rescaleKeyAxis(bool onlyEnlarge=false) const
QBrush mSelectedBrush
Definition qcustomplot.h:1679
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
QCPAbstractPlottable(QCPAxis *keyAxis, QCPAxis *valueAxis)
double distSqrToLine(const QPointF &start, const QPointF &end, const QPointF &point) const
QBrush selectedBrush() const
Definition qcustomplot.h:1626
Definition qcustomplot.h:1523
QFont tickLabelFont
Definition qcustomplot.h:1554
bool reversedEndings
Definition qcustomplot.h:1559
QCPLineEnding lowerEnding
Definition qcustomplot.h:1539
QRect mTickLabelsSelectionBox
Definition qcustomplot.h:1579
bool numberMultiplyCross
Definition qcustomplot.h:1550
QCPAxisPainterPrivate(QCustomPlot *parentPlot)
int tickLabelPadding
Definition qcustomplot.h:1545
QVector< QString > tickLabels
Definition qcustomplot.h:1563
QVector< double > tickPositions
Definition qcustomplot.h:1562
QPen tickPen
Definition qcustomplot.h:1553
virtual void drawTickLabel(QCPPainter *painter, double x, double y, const TickLabelData &labelData) const
int labelPadding
Definition qcustomplot.h:1541
QVector< double > subTickPositions
Definition qcustomplot.h:1561
bool substituteExponent
Definition qcustomplot.h:1549
QColor labelColor
Definition qcustomplot.h:1543
virtual ~QCPAxisPainterPrivate()
int subTickLengthOut
Definition qcustomplot.h:1552
bool abbreviateDecimalPowers
Definition qcustomplot.h:1558
virtual void getMaxTickLabelSize(const QFont &font, const QString &text, QSize *tickLabelsSize) const
virtual void draw(QCPPainter *painter)
virtual QByteArray generateLabelParameterHash() const
virtual void placeTickLabel(QCPPainter *painter, double position, int distanceToAxis, const QString &text, QSize *tickLabelsSize)
QCustomPlot * mParentPlot
Definition qcustomplot.h:1575
QRect viewportRect
Definition qcustomplot.h:1556
QColor tickLabelColor
Definition qcustomplot.h:1555
QPen subTickPen
Definition qcustomplot.h:1553
QCPAxis::LabelSide tickLabelSide
Definition qcustomplot.h:1548
QRect mAxisSelectionBox
Definition qcustomplot.h:1579
QByteArray mLabelParameterHash
Definition qcustomplot.h:1576
QRect axisSelectionBox() const
Definition qcustomplot.h:1532
QPen basePen
Definition qcustomplot.h:1538
QRect mLabelSelectionBox
Definition qcustomplot.h:1579
QCache< QString, CachedLabel > mLabelCache
Definition qcustomplot.h:1578
int tickLengthOut
Definition qcustomplot.h:1551
QRect tickLabelsSelectionBox() const
Definition qcustomplot.h:1533
QFont labelFont
Definition qcustomplot.h:1542
QCPAxis::AxisType type
Definition qcustomplot.h:1537
double tickLabelRotation
Definition qcustomplot.h:1546
virtual TickLabelData getTickLabelData(const QFont &font, const QString &text) const
int tickLengthIn
Definition qcustomplot.h:1551
QRect labelSelectionBox() const
Definition qcustomplot.h:1534
double offset
Definition qcustomplot.h:1557
virtual QPointF getTickLabelDrawOffset(const TickLabelData &labelData) const
int subTickLengthIn
Definition qcustomplot.h:1551
QCPLineEnding upperEnding
Definition qcustomplot.h:1540
QRect axisRect
Definition qcustomplot.h:1556
QString label
Definition qcustomplot.h:1544
Definition qcustomplot.h:2297
friend class QCustomPlot
Definition qcustomplot.h:2407
QPoint mDragStart
Definition qcustomplot.h:2386
QList< QCPAbstractItem * > items() const
bool removeAxis(QCPAxis *axis)
bool backgroundScaled() const
Definition qcustomplot.h:2314
QPointer< QCPAxis > mRangeDragHorzAxis
Definition qcustomplot.h:2380
Qt::AspectRatioMode backgroundScaledMode() const
Definition qcustomplot.h:2315
QPointer< QCPAxis > mRangeZoomHorzAxis
Definition qcustomplot.h:2380
QList< QCPAxis * > axes() const
virtual void wheelEvent(QWheelEvent *event)
virtual int calculateAutoMargin(QCP::MarginSide side)
QCPRange mDragStartVertRange
Definition qcustomplot.h:2384
int width() const
Definition qcustomplot.h:2358
Qt::Orientations mRangeZoom
Definition qcustomplot.h:2379
void setBackground(const QBrush &brush)
QList< QCPGraph * > graphs() const
QCPAxis * addAxis(QCPAxis::AxisType type, QCPAxis *axis=0)
double mRangeZoomFactorVert
Definition qcustomplot.h:2382
QPoint bottomRight() const
Definition qcustomplot.h:2364
QPixmap mBackgroundPixmap
Definition qcustomplot.h:2374
int right() const
Definition qcustomplot.h:2355
QCPRange mDragStartHorzRange
Definition qcustomplot.h:2384
int top() const
Definition qcustomplot.h:2356
QPixmap background() const
Definition qcustomplot.h:2313
QBrush mBackgroundBrush
Definition qcustomplot.h:2373
QCPAxis * axis(QCPAxis::AxisType type, int index=0) const
QList< QCPAbstractPlottable * > plottables() const
QPoint topLeft() const
Definition qcustomplot.h:2361
bool mBackgroundScaled
Definition qcustomplot.h:2376
void setBackgroundScaledMode(Qt::AspectRatioMode mode)
void setupFullAxesBox(bool connectRanges=false)
void updateAxesOffset(QCPAxis::AxisType type)
QCPAxisRect(QCustomPlot *parentPlot, bool setupDefaultAxes=true)
void setRangeDragAxes(QCPAxis *horizontal, QCPAxis *vertical)
QCPAxis * rangeZoomAxis(Qt::Orientation orientation)
QCPAxis * rangeDragAxis(Qt::Orientation orientation)
QCP::AntialiasedElements mNotAADragBackup
Definition qcustomplot.h:2385
QList< QCPAxis * > addAxes(QCPAxis::AxisTypes types)
void setRangeZoom(Qt::Orientations orientations)
QSize size() const
Definition qcustomplot.h:2360
QPoint topRight() const
Definition qcustomplot.h:2362
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
Qt::AspectRatioMode mBackgroundScaledMode
Definition qcustomplot.h:2377
int axisCount(QCPAxis::AxisType type) const
void setRangeZoomFactor(double horizontalFactor, double verticalFactor)
QList< QCPAxis * > axes(QCPAxis::AxisTypes types) const
void setRangeZoomAxes(QCPAxis *horizontal, QCPAxis *vertical)
QCPLayoutInset * insetLayout() const
Definition qcustomplot.h:2346
virtual void draw(QCPPainter *painter)
virtual void mousePressEvent(QMouseEvent *event)
Qt::Orientations rangeZoom() const
Definition qcustomplot.h:2319
Qt::Orientations rangeDrag() const
Definition qcustomplot.h:2318
QCP::AntialiasedElements mAADragBackup
Definition qcustomplot.h:2385
QPixmap mScaledBackgroundPixmap
Definition qcustomplot.h:2375
virtual void update(UpdatePhase phase)
Qt::Orientations mRangeDrag
Definition qcustomplot.h:2379
QPoint bottomLeft() const
Definition qcustomplot.h:2363
bool mDragging
Definition qcustomplot.h:2387
void drawBackground(QCPPainter *painter)
virtual QList< QCPLayoutElement * > elements(bool recursive) const
QPointer< QCPAxis > mRangeDragVertAxis
Definition qcustomplot.h:2380
void setBackground(const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding)
int height() const
Definition qcustomplot.h:2359
int bottom() const
Definition qcustomplot.h:2357
double mRangeZoomFactorHorz
Definition qcustomplot.h:2382
QHash< QCPAxis::AxisType, QList< QCPAxis * > > mAxes
Definition qcustomplot.h:2388
QPoint center() const
Definition qcustomplot.h:2365
double rangeZoomFactor(Qt::Orientation orientation)
virtual void mouseReleaseEvent(QMouseEvent *event)
void setRangeDrag(Qt::Orientations orientations)
void setBackgroundScaled(bool scaled)
void setRangeZoomFactor(double factor)
virtual void mouseMoveEvent(QMouseEvent *event)
QCPLayoutInset * mInsetLayout
Definition qcustomplot.h:2378
QPointer< QCPAxis > mRangeZoomVertAxis
Definition qcustomplot.h:2381
void setBackground(const QPixmap &pm)
int left() const
Definition qcustomplot.h:2354
Definition qcustomplot.h:1137
QCPAxisRect * axisRect() const
Definition qcustomplot.h:1289
friend class QCustomPlot
Definition qcustomplot.h:1515
void setSelectedLabelFont(const QFont &font)
Qt::Orientation mOrientation
Definition qcustomplot.h:1437
void setOffset(int offset)
void setTickLabels(bool show)
QColor labelColor() const
Definition qcustomplot.h:1323
int padding() const
Definition qcustomplot.h:1326
virtual int calculateAutoSubTickCount(double tickStep) const
void rangeChanged(const QCPRange &newRange)
void setLowerEnding(const QCPLineEnding &ending)
SelectablePart getPartAt(const QPointF &pos) const
QFont selectedTickLabelFont() const
Definition qcustomplot.h:1330
QFont tickLabelFont() const
Definition qcustomplot.h:1303
QString mDateTimeFormat
Definition qcustomplot.h:1453
LabelType tickLabelType() const
Definition qcustomplot.h:1302
QCPLineEnding lowerEnding() const
QPen selectedBasePen() const
Definition qcustomplot.h:1334
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
QCPGrid * mGrid
Definition qcustomplot.h:1475
QFont selectedLabelFont() const
Definition qcustomplot.h:1331
void setTickLabelSide(LabelSide side)
bool autoTickStep() const
Definition qcustomplot.h:1297
QVector< double > mSubTickVector
Definition qcustomplot.h:1480
void moveRange(double diff)
Q_SLOT void setRange(const QCPRange &range)
void setTickLabelRotation(double degrees)
SelectableParts selectableParts() const
Definition qcustomplot.h:1329
QPen mTickPen
Definition qcustomplot.h:1466
QCPRange mRange
Definition qcustomplot.h:1469
QString numberFormat() const
QPen basePen() const
Definition qcustomplot.h:1319
void setRangeReversed(bool reversed)
void setNumberPrecision(int precision)
LabelSide
Definition qcustomplot.h:1248
@ lsOutside
Tick labels will be displayed outside the axis rect.
Definition qcustomplot.h:1252
@ lsInside
Definition qcustomplot.h:1249
int numberPrecision() const
Definition qcustomplot.h:1310
void setDateTimeSpec(const Qt::TimeSpec &timeSpec)
virtual void draw(QCPPainter *painter)
void setSelectedSubTickPen(const QPen &pen)
void setTickLabelFont(const QFont &font)
QString dateTimeFormat() const
Definition qcustomplot.h:1307
bool mCachedMarginValid
Definition qcustomplot.h:1481
bool autoTicks() const
Definition qcustomplot.h:1294
void setDateTimeFormat(const QString &format)
QString label() const
Definition qcustomplot.h:1324
QPen mSubTickPen
Definition qcustomplot.h:1467
void setLabel(const QString &str)
friend class QCPAxisRect
Definition qcustomplot.h:1517
void scaleTypeChanged(QCPAxis::ScaleType scaleType)
ScaleType
Definition qcustomplot.h:1259
@ stLinear
Linear scaling.
Definition qcustomplot.h:1260
@ stLogarithmic
Definition qcustomplot.h:1262
QFont mLabelFont
Definition qcustomplot.h:1444
QLatin1Char mNumberFormatChar
Definition qcustomplot.h:1456
void setTickLabelColor(const QColor &color)
void setTickLengthOut(int outside)
QColor mSelectedTickLabelColor
Definition qcustomplot.h:1452
bool mTickLabels
Definition qcustomplot.h:1448
int autoTickCount() const
Definition qcustomplot.h:1295
QList< QCPAbstractItem * > items() const
void setLabelPadding(int padding)
QColor mLabelColor
Definition qcustomplot.h:1445
int mCachedMargin
Definition qcustomplot.h:1482
void rescale(bool onlyVisiblePlottables=false)
int mAutoTickCount
Definition qcustomplot.h:1462
LabelType
Definition qcustomplot.h:1233
@ ltDateTime
Definition qcustomplot.h:1237
@ ltNumber
Definition qcustomplot.h:1234
void setSubTickCount(int count)
void setSubTickLengthOut(int outside)
virtual void generateAutoTicks()
QFont mSelectedTickLabelFont
Definition qcustomplot.h:1451
double mTickStep
Definition qcustomplot.h:1461
int mPadding
Definition qcustomplot.h:1436
double pixelToCoord(double value) const
void setTickLabelType(LabelType type)
void setPadding(int padding)
void setRange(double lower, double upper)
bool ticks() const
Definition qcustomplot.h:1299
double tickLabelRotation() const
bool mRangeReversed
Definition qcustomplot.h:1470
void setSelectedLabelColor(const QColor &color)
void selectionChanged(const QCPAxis::SelectableParts &parts)
void setTickLength(int inside, int outside=0)
QColor mTickLabelColor
Definition qcustomplot.h:1452
QCPGrid * grid() const
Definition qcustomplot.h:1339
virtual void deselectEvent(bool *selectionStateChanged)
void setUpperEnding(const QCPLineEnding &ending)
QFont getTickLabelFont() const
virtual int calculateMargin()
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
void setLabelColor(const QColor &color)
LabelType mTickLabelType
Definition qcustomplot.h:1450
QVector< double > mTickVector
Definition qcustomplot.h:1478
QCPAxisPainterPrivate * mAxisPainter
Definition qcustomplot.h:1476
void scaleRange(double factor, double center)
void setLabelFont(const QFont &font)
bool mAutoTickLabels
Definition qcustomplot.h:1448
void setScaleLogBase(double base)
QPen selectedSubTickPen() const
Definition qcustomplot.h:1336
QColor selectedTickLabelColor() const
Definition qcustomplot.h:1332
QPen selectedTickPen() const
Definition qcustomplot.h:1335
void setBasePen(const QPen &pen)
QCPAxisRect * mAxisRect
Definition qcustomplot.h:1434
QPen subTickPen() const
Definition qcustomplot.h:1321
QColor selectedLabelColor() const
Definition qcustomplot.h:1333
void setAutoTickCount(int approximateCount)
QPen mSelectedBasePen
Definition qcustomplot.h:1439
Q_SLOT void setSelectedParts(const QCPAxis::SelectableParts &selectedParts)
void setSelectedTickPen(const QPen &pen)
void setSelectedTickLabelFont(const QFont &font)
void setTickVector(const QVector< double > &vec)
SelectableParts selectedParts() const
Definition qcustomplot.h:1328
QColor getTickLabelColor() const
double scaleLogBase() const
Definition qcustomplot.h:1291
SelectableParts mSelectedParts
Definition qcustomplot.h:1438
void setTickVectorLabels(const QVector< QString > &vec)
double mScaleLogBaseLogInv
Definition qcustomplot.h:1472
QColor mSelectedLabelColor
Definition qcustomplot.h:1445
double tickStep() const
Definition qcustomplot.h:1311
QPen mSelectedTickPen
Definition qcustomplot.h:1466
virtual QCP::Interaction selectionCategory() const
bool autoTickLabels() const
Definition qcustomplot.h:1296
void setAutoTickStep(bool on)
static Qt::Orientation orientation(AxisType type)
Definition qcustomplot.h:1417
void setSelectedTickLabelColor(const QColor &color)
QColor tickLabelColor() const
Definition qcustomplot.h:1304
QCPLineEnding upperEnding() const
AxisType axisType() const
Definition qcustomplot.h:1288
static AxisType opposite(AxisType type)
QPen mSelectedSubTickPen
Definition qcustomplot.h:1467
void selectableChanged(const QCPAxis::SelectableParts &parts)
virtual void setupTickVectors()
QFont labelFont() const
Definition qcustomplot.h:1322
void setAutoTickLabels(bool on)
double basePow(double value) const
bool mAutoSubTicks
Definition qcustomplot.h:1463
bool mAutoTicks
Definition qcustomplot.h:1463
void rangeChanged(const QCPRange &newRange, const QCPRange &oldRange)
static AxisType marginSideToAxisType(QCP::MarginSide side)
QPen getSubTickPen() const
bool mAutoTickStep
Definition qcustomplot.h:1463
bool mTicks
Definition qcustomplot.h:1460
Q_SLOT void setSelectableParts(const QCPAxis::SelectableParts &selectableParts)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
void setSubTickLength(int inside, int outside=0)
SelectableParts mSelectableParts
Definition qcustomplot.h:1438
bool rangeReversed() const
Definition qcustomplot.h:1293
Qt::Orientation orientation() const
Definition qcustomplot.h:1404
int subTickCount() const
Definition qcustomplot.h:1316
friend class QCPGrid
Definition qcustomplot.h:1516
int mHighestVisibleTick
Definition qcustomplot.h:1477
double mScaleLogBase
Definition qcustomplot.h:1472
SelectablePart
Definition qcustomplot.h:1271
@ spAxis
The axis backbone and tick marks.
Definition qcustomplot.h:1274
@ spAxisLabel
The axis label.
Definition qcustomplot.h:1279
@ spNone
None of the selectable parts.
Definition qcustomplot.h:1272
@ spTickLabels
Definition qcustomplot.h:1276
const QCPRange range() const
Definition qcustomplot.h:1292
void setSubTickLengthIn(int inside)
Q_SLOT void setScaleType(QCPAxis::ScaleType type)
QList< QCPAbstractPlottable * > plottables() const
QCPAxis(QCPAxisRect *parent, AxisType type)
int subTickLengthOut() const
QVector< QString > mTickVectorLabels
Definition qcustomplot.h:1479
LabelSide tickLabelSide() const
void setRangeUpper(double upper)
int mNumberPrecision
Definition qcustomplot.h:1455
void setRange(double position, double size, Qt::AlignmentFlag alignment)
ScaleType scaleType() const
Definition qcustomplot.h:1290
int tickLengthOut() const
QList< QCPGraph * > graphs() const
QPen mBasePen
Definition qcustomplot.h:1439
int mSubTickCount
Definition qcustomplot.h:1462
ScaleType mScaleType
Definition qcustomplot.h:1471
void setTickPen(const QPen &pen)
void setAutoSubTicks(bool on)
QFont mTickLabelFont
Definition qcustomplot.h:1451
QVector< QString > tickVectorLabels() const
Definition qcustomplot.h:1313
QVector< double > tickVector() const
Definition qcustomplot.h:1312
AxisType
Definition qcustomplot.h:1211
@ atBottom
Definition qcustomplot.h:1221
@ atRight
Definition qcustomplot.h:1215
@ atLeft
Definition qcustomplot.h:1212
@ atTop
Definition qcustomplot.h:1218
bool autoSubTicks() const
Definition qcustomplot.h:1298
bool tickLabels() const
Definition qcustomplot.h:1300
QFont mSelectedLabelFont
Definition qcustomplot.h:1444
void setNumberFormat(const QString &formatCode)
AxisType mAxisType
Definition qcustomplot.h:1433
double baseLog(double value) const
QString mLabel
Definition qcustomplot.h:1443
void setAutoTicks(bool on)
QColor getLabelColor() const
Qt::TimeSpec dateTimeSpec() const
Definition qcustomplot.h:1308
QFont getLabelFont() const
void setSelectedBasePen(const QPen &pen)
int mLowestVisibleTick
Definition qcustomplot.h:1477
void visibleTickBounds(int &lowIndex, int &highIndex) const
void setSubTickPen(const QPen &pen)
bool mNumberBeautifulPowers
Definition qcustomplot.h:1457
double coordToPixel(double value) const
void setTickLabelPadding(int padding)
void setScaleRatio(const QCPAxis *otherAxis, double ratio=1.0)
void setTickStep(double step)
Qt::TimeSpec mDateTimeSpec
Definition qcustomplot.h:1454
int subTickLengthIn() const
int tickLabelPadding() const
void setTickLengthIn(int inside)
void setRangeLower(double lower)
QPen tickPen() const
Definition qcustomplot.h:1320
Definition qcustomplot.h:3222
QCPBarData(double key, double value)
double value
Definition qcustomplot.h:3226
double key
Definition qcustomplot.h:3226
QCPBars * bars(int index) const
double getPixelSpacing(const QCPBars *bars, double keyCoord)
void remove(QCPBars *bars)
void setSpacingType(SpacingType spacingType)
void insert(int i, QCPBars *bars)
double spacing() const
Definition qcustomplot.h:3184
QCustomPlot * mParentPlot
Definition qcustomplot.h:3203
int size() const
Definition qcustomplot.h:3193
SpacingType
Definition qcustomplot.h:3170
@ stAbsolute
Bar spacing is in absolute pixels.
Definition qcustomplot.h:3171
@ stPlotCoords
Definition qcustomplot.h:3176
@ stAxisRectRatio
Definition qcustomplot.h:3173
double mSpacing
Definition qcustomplot.h:3205
SpacingType mSpacingType
Definition qcustomplot.h:3204
QList< QCPBars * > bars() const
Definition qcustomplot.h:3191
void registerBars(QCPBars *bars)
void append(QCPBars *bars)
SpacingType spacingType() const
Definition qcustomplot.h:3183
double keyPixelOffset(const QCPBars *bars, double keyCoord)
QCPBarsGroup(QCustomPlot *parentPlot)
void setSpacing(double spacing)
bool isEmpty() const
Definition qcustomplot.h:3194
void unregisterBars(QCPBars *bars)
friend class QCPBars
Definition qcustomplot.h:3219
bool contains(QCPBars *bars) const
Definition qcustomplot.h:3196
QList< QCPBars * > mBars
Definition qcustomplot.h:3206
Definition qcustomplot.h:3241
friend class QCustomPlot
Definition qcustomplot.h:3330
double getStackedBaseValue(double key, bool positive) const
void addData(const QCPBarData &data)
static void connectBars(QCPBars *lower, QCPBars *upper)
QCPBars * barBelow() const
Definition qcustomplot.h:3276
void addData(const QCPBarDataMap &dataMap)
void removeData(double fromKey, double toKey)
double baseValue() const
Definition qcustomplot.h:3275
QCPBarDataMap * data() const
Definition qcustomplot.h:3278
void addData(const QVector< double > &keys, const QVector< double > &values)
virtual void draw(QCPPainter *painter)
QCPBarDataMap * mData
Definition qcustomplot.h:3307
QPolygonF getBarPolygon(double key, double value) const
void setData(const QVector< double > &key, const QVector< double > &value)
WidthType widthType() const
Definition qcustomplot.h:3273
void setBaseValue(double baseValue)
QCPBarsGroup * barsGroup() const
Definition qcustomplot.h:3274
QCPBars(QCPAxis *keyAxis, QCPAxis *valueAxis)
WidthType
Definition qcustomplot.h:3258
@ wtPlotCoords
Definition qcustomplot.h:3263
@ wtAxisRectRatio
Bar width is given by a fraction of the axis rect size.
Definition qcustomplot.h:3261
@ wtAbsolute
Bar width is in absolute pixels.
Definition qcustomplot.h:3259
void addData(double key, double value)
QPointer< QCPBars > mBarAbove
Definition qcustomplot.h:3312
void moveBelow(QCPBars *bars)
friend class QCPLegend
Definition qcustomplot.h:3331
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
double mWidth
Definition qcustomplot.h:3308
friend class QCPBarsGroup
Definition qcustomplot.h:3332
void removeData(double key)
WidthType mWidthType
Definition qcustomplot.h:3309
void removeDataAfter(double key)
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
void removeDataBefore(double key)
double mBaseValue
Definition qcustomplot.h:3311
QCPBarsGroup * mBarsGroup
Definition qcustomplot.h:3310
void setData(QCPBarDataMap *data, bool copy=false)
QCPBars * barAbove() const
Definition qcustomplot.h:3277
double width() const
Definition qcustomplot.h:3272
void moveAbove(QCPBars *bars)
QPointer< QCPBars > mBarBelow
Definition qcustomplot.h:3312
void getPixelWidth(double key, double &lower, double &upper) const
void setWidthType(WidthType widthType)
void getVisibleDataBounds(QCPBarDataMap::const_iterator &lower, QCPBarDataMap::const_iterator &upperEnd) const
void setBarsGroup(QCPBarsGroup *barsGroup)
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void setWidth(double width)
Definition qcustomplot.h:2192
ColorInterpolation mColorInterpolation
Definition qcustomplot.h:2289
QRgb color(double position, const QCPRange &range, bool logarithmic=false)
void setLevelCount(int n)
bool periodic() const
Definition qcustomplot.h:2266
void setPeriodic(bool enabled)
void setColorStopAt(double position, const QColor &color)
bool mPeriodic
Definition qcustomplot.h:2290
QCPColorGradient(GradientPreset preset=gpCold)
QMap< double, QColor > colorStops() const
Definition qcustomplot.h:2264
void setColorStops(const QMap< double, QColor > &colorStops)
QMap< double, QColor > mColorStops
Definition qcustomplot.h:2288
int mLevelCount
Definition qcustomplot.h:2287
QCPColorGradient inverted() const
void loadPreset(GradientPreset preset)
void setColorInterpolation(ColorInterpolation interpolation)
void colorize(const double *data, const QCPRange &range, QRgb *scanLine, int n, int dataIndexFactor=1, bool logarithmic=false)
bool mColorBufferInvalidated
Definition qcustomplot.h:2294
ColorInterpolation colorInterpolation() const
Definition qcustomplot.h:2265
int levelCount() const
Definition qcustomplot.h:2263
ColorInterpolation
Definition qcustomplot.h:2201
@ ciRGB
Color channels red, green and blue are linearly interpolated.
Definition qcustomplot.h:2202
@ ciHSV
Definition qcustomplot.h:2204
QVector< QRgb > mColorBuffer
Definition qcustomplot.h:2293
GradientPreset
Definition qcustomplot.h:2214
@ gpJet
Definition qcustomplot.h:2247
@ gpSpectrum
Definition qcustomplot.h:2243
@ gpGrayscale
Definition qcustomplot.h:2215
@ gpPolar
Definition qcustomplot.h:2239
@ gpGeography
Definition qcustomplot.h:2229
@ gpNight
Definition qcustomplot.h:2224
@ gpHues
Definition qcustomplot.h:2251
@ gpIon
Definition qcustomplot.h:2232
@ gpCold
Definition qcustomplot.h:2221
@ gpThermal
Definition qcustomplot.h:2236
@ gpHot
Definition qcustomplot.h:2218
@ gpCandy
Blue over pink to white.
Definition qcustomplot.h:2227
Definition qcustomplot.h:3423
void setKeyRange(const QCPRange &keyRange)
void setValueSize(int valueSize)
void setSize(int keySize, int valueSize)
bool mIsEmpty
Definition qcustomplot.h:3464
QCPRange mDataBounds
Definition qcustomplot.h:3467
QCPRange keyRange() const
Definition qcustomplot.h:3434
QCPRange mValueRange
Definition qcustomplot.h:3463
double data(double key, double value)
int mKeySize
Definition qcustomplot.h:3462
QCPColorMapData(const QCPColorMapData &other)
QCPRange valueRange() const
Definition qcustomplot.h:3435
int valueSize() const
Definition qcustomplot.h:3433
void setCell(int keyIndex, int valueIndex, double z)
QCPRange mKeyRange
Definition qcustomplot.h:3463
QCPColorMapData(int keySize, int valueSize, const QCPRange &keyRange, const QCPRange &valueRange)
void setRange(const QCPRange &keyRange, const QCPRange &valueRange)
void recalculateDataBounds()
QCPRange dataBounds() const
Definition qcustomplot.h:3436
int keySize() const
Definition qcustomplot.h:3432
double * mData
Definition qcustomplot.h:3466
void setKeySize(int keySize)
void coordToCell(double key, double value, int *keyIndex, int *valueIndex) const
bool mDataModified
Definition qcustomplot.h:3468
void setValueRange(const QCPRange &valueRange)
friend class QCPColorMap
Definition qcustomplot.h:3470
int mValueSize
Definition qcustomplot.h:3462
bool isEmpty() const
Definition qcustomplot.h:3454
void cellToCoord(int keyIndex, int valueIndex, double *key, double *value) const
double cell(int keyIndex, int valueIndex)
void setData(double key, double value, double z)
QCPColorMapData & operator=(const QCPColorMapData &other)
Definition qcustomplot.h:3473
friend class QCustomPlot
Definition qcustomplot.h:3549
QCPColorMapData * data() const
Definition qcustomplot.h:3491
QCPColorScale * colorScale() const
Definition qcustomplot.h:3497
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
bool interpolate() const
Definition qcustomplot.h:3494
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QCPColorMapData * mMapData
Definition qcustomplot.h:3528
Q_SLOT void setDataScaleType(QCPAxis::ScaleType scaleType)
QPointer< QCPColorScale > mColorScale
Definition qcustomplot.h:3532
void dataRangeChanged(QCPRange newRange)
void setInterpolate(bool enabled)
virtual void updateMapImage()
bool tightBoundary() const
Definition qcustomplot.h:3495
Q_SLOT void updateLegendIcon(Qt::TransformationMode transformMode=Qt::SmoothTransformation, const QSize &thumbSize=QSize(32, 18))
void setData(QCPColorMapData *data, bool copy=false)
QImage mMapImage
Definition qcustomplot.h:3534
friend class QCPLegend
Definition qcustomplot.h:3550
void rescaleDataRange(bool recalculateDataBounds=false)
void dataScaleTypeChanged(QCPAxis::ScaleType scaleType)
QCPColorMap(QCPAxis *keyAxis, QCPAxis *valueAxis)
void setColorScale(QCPColorScale *colorScale)
QCPColorGradient mGradient
Definition qcustomplot.h:3529
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
QCPAxis::ScaleType mDataScaleType
Definition qcustomplot.h:3527
QCPAxis::ScaleType dataScaleType() const
Definition qcustomplot.h:3493
QCPRange mDataRange
Definition qcustomplot.h:3526
void gradientChanged(QCPColorGradient newGradient)
bool mTightBoundary
Definition qcustomplot.h:3531
bool mMapImageInvalidated
Definition qcustomplot.h:3536
QImage mUndersampledMapImage
Definition qcustomplot.h:3534
QCPColorGradient gradient() const
Definition qcustomplot.h:3496
Q_SLOT void setGradient(const QCPColorGradient &gradient)
void setTightBoundary(bool enabled)
QPixmap mLegendIcon
Definition qcustomplot.h:3535
Q_SLOT void setDataRange(const QCPRange &dataRange)
QCPRange dataRange() const
Definition qcustomplot.h:3492
virtual void draw(QCPPainter *painter)
bool mInterpolate
Definition qcustomplot.h:3530
friend class QCPColorScale
Definition qcustomplot.h:2729
virtual void draw(QCPPainter *painter)
bool mGradientImageInvalidated
Definition qcustomplot.h:2716
QCPColorScale * mParentColorScale
Definition qcustomplot.h:2714
Q_SLOT void axisSelectionChanged(QCPAxis::SelectableParts selectedParts)
void updateGradientImage()
Q_SLOT void axisSelectableChanged(QCPAxis::SelectableParts selectableParts)
QCPColorScaleAxisRectPrivate(QCPColorScale *parentColorScale)
QImage mGradientImage
Definition qcustomplot.h:2715
Definition qcustomplot.h:2732
virtual void update(UpdatePhase phase)
void setType(QCPAxis::AxisType type)
virtual void wheelEvent(QWheelEvent *event)
void setRangeDrag(bool enabled)
virtual void mouseMoveEvent(QMouseEvent *event)
QCPAxis::ScaleType mDataScaleType
Definition qcustomplot.h:2788
void dataRangeChanged(QCPRange newRange)
QCPColorGradient gradient() const
Definition qcustomplot.h:2756
QCPAxis * axis() const
Definition qcustomplot.h:2752
int mBarWidth
Definition qcustomplot.h:2790
void rescaleDataRange(bool onlyVisibleMaps)
friend class QCPColorScaleAxisRectPrivate
Definition qcustomplot.h:2807
Q_SLOT void setGradient(const QCPColorGradient &gradient)
QCPRange dataRange() const
Definition qcustomplot.h:2754
QList< QCPColorMap * > colorMaps() const
QPointer< QCPColorScaleAxisRectPrivate > mAxisRect
Definition qcustomplot.h:2793
QCPRange mDataRange
Definition qcustomplot.h:2787
void dataScaleTypeChanged(QCPAxis::ScaleType scaleType)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
void gradientChanged(QCPColorGradient newGradient)
QCPAxis::AxisType mType
Definition qcustomplot.h:2786
QCPAxis::AxisType type() const
Definition qcustomplot.h:2753
Q_SLOT void setDataScaleType(QCPAxis::ScaleType scaleType)
void setRangeZoom(bool enabled)
QPointer< QCPAxis > mColorAxis
Definition qcustomplot.h:2794
QCPColorScale(QCustomPlot *parentPlot)
void setBarWidth(int width)
Q_SLOT void setDataRange(const QCPRange &dataRange)
QCPAxis::ScaleType dataScaleType() const
Definition qcustomplot.h:2755
int barWidth() const
Definition qcustomplot.h:2758
QCPColorGradient mGradient
Definition qcustomplot.h:2789
void setLabel(const QString &str)
virtual void mouseReleaseEvent(QMouseEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
Definition qcustomplot.h:3037
QCPCurveData(double t, double key, double value)
double value
Definition qcustomplot.h:3041
double key
Definition qcustomplot.h:3041
double t
Definition qcustomplot.h:3041
friend class QCustomPlot
Definition qcustomplot.h:3151
void removeDataAfter(double t)
LineStyle lineStyle() const
Definition qcustomplot.h:3081
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QCPScatterStyle mScatterStyle
Definition qcustomplot.h:3111
QCPCurveDataMap * data() const
Definition qcustomplot.h:3079
void addData(double t, double key, double value)
virtual void draw(QCPPainter *painter)
LineStyle
Definition qcustomplot.h:3070
@ lsNone
No line is drawn between data points (e.g. only scatters)
Definition qcustomplot.h:3071
@ lsLine
Data points are connected with a straight line.
Definition qcustomplot.h:3073
void addData(const QVector< double > &ts, const QVector< double > &keys, const QVector< double > &values)
virtual void drawScatterPlot(QCPPainter *painter, const QVector< QPointF > *pointData) 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
void removeData(double t)
int getRegion(double x, double y, double rectLeft, double rectTop, double rectRight, double rectBottom) const
QCPCurve(QCPAxis *keyAxis, QCPAxis *valueAxis)
void getCurveData(QVector< QPointF > *lineData) const
QCPCurveDataMap * mData
Definition qcustomplot.h:3110
void setLineStyle(LineStyle style)
void addData(const QCPCurveDataMap &dataMap)
void setScatterStyle(const QCPScatterStyle &style)
void getTraverseCornerPoints(int prevRegion, int currentRegion, double rectLeft, double rectTop, double rectRight, double rectBottom, QVector< QPointF > &beforeTraverse, QVector< QPointF > &afterTraverse) const
void setData(QCPCurveDataMap *data, bool copy=false)
friend class QCPLegend
Definition qcustomplot.h:3152
bool getTraverse(double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom, QPointF &crossA, QPointF &crossB) const
void setData(const QVector< double > &key, const QVector< double > &value)
void addData(const QCPCurveData &data)
void removeData(double fromt, double tot)
void addData(double key, double value)
double pointDistance(const QPointF &pixelPoint) const
LineStyle mLineStyle
Definition qcustomplot.h:3112
QPointF getOptimizedPoint(int prevRegion, double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom) const
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
bool mayTraverse(int prevRegion, int currentRegion) const
void removeDataBefore(double t)
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
QCPScatterStyle scatterStyle() const
Definition qcustomplot.h:3080
void setData(const QVector< double > &t, const QVector< double > &key, const QVector< double > &value)
Definition qcustomplot.h:2812
double key
Definition qcustomplot.h:2816
double valueErrorMinus
Definition qcustomplot.h:2818
QCPData(double key, double value)
double valueErrorPlus
Definition qcustomplot.h:2818
double keyErrorPlus
Definition qcustomplot.h:2817
double value
Definition qcustomplot.h:2816
double keyErrorMinus
Definition qcustomplot.h:2817
Definition qcustomplot.h:3555
QCPFinancialData(double key, double open, double high, double low, double close)
double key
Definition qcustomplot.h:3560
double high
Definition qcustomplot.h:3560
double open
Definition qcustomplot.h:3560
double close
Definition qcustomplot.h:3560
double low
Definition qcustomplot.h:3560
friend class QCustomPlot
Definition qcustomplot.h:3682
void removeData(double fromKey, double toKey)
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void removeDataBefore(double key)
ChartStyle
Definition qcustomplot.h:3593
@ csOhlc
Open-High-Low-Close bar representation.
Definition qcustomplot.h:3594
@ csCandlestick
Candlestick representation.
Definition qcustomplot.h:3596
double width() const
Definition qcustomplot.h:3606
void setTwoColored(bool twoColored)
void addData(const QCPFinancialDataMap &dataMap)
QPen penNegative() const
Definition qcustomplot.h:3611
QPen mPenNegative
Definition qcustomplot.h:3656
void addData(const QCPFinancialData &data)
void drawOhlcPlot(QCPPainter *painter, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end)
QCPFinancial(QCPAxis *keyAxis, QCPAxis *valueAxis)
ChartStyle chartStyle() const
Definition qcustomplot.h:3605
QCPFinancialDataMap * data() const
Definition qcustomplot.h:3604
void setChartStyle(ChartStyle style)
void setBrushPositive(const QBrush &brush)
void addData(double key, double open, double high, double low, double close)
bool mTwoColored
Definition qcustomplot.h:3654
friend class QCPLegend
Definition qcustomplot.h:3683
double candlestickSelectTest(const QPointF &pos, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) const
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
void drawCandlestickPlot(QCPPainter *painter, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end)
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void setData(const QVector< double > &key, const QVector< double > &open, const QVector< double > &high, const QVector< double > &low, const QVector< double > &close)
void setBrushNegative(const QBrush &brush)
virtual void draw(QCPPainter *painter)
void setWidth(double width)
double ohlcSelectTest(const QPointF &pos, const QCPFinancialDataMap::const_iterator &begin, const QCPFinancialDataMap::const_iterator &end) const
void removeDataAfter(double key)
void addData(const QVector< double > &key, const QVector< double > &open, const QVector< double > &high, const QVector< double > &low, const QVector< double > &close)
QPen mPenPositive
Definition qcustomplot.h:3656
ChartStyle mChartStyle
Definition qcustomplot.h:3652
void getVisibleDataBounds(QCPFinancialDataMap::const_iterator &lower, QCPFinancialDataMap::const_iterator &upper) const
QBrush mBrushPositive
Definition qcustomplot.h:3655
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
void setPenPositive(const QPen &pen)
QBrush mBrushNegative
Definition qcustomplot.h:3655
QBrush brushNegative() const
Definition qcustomplot.h:3609
QCPFinancialDataMap * mData
Definition qcustomplot.h:3651
void setData(QCPFinancialDataMap *data, bool copy=false)
void removeData(double key)
QPen penPositive() const
Definition qcustomplot.h:3610
QBrush brushPositive() const
Definition qcustomplot.h:3608
static QCPFinancialDataMap timeSeriesToOhlc(const QVector< double > &time, const QVector< double > &value, double timeBinSize, double timeBinOffset=0)
double mWidth
Definition qcustomplot.h:3653
bool twoColored() const
Definition qcustomplot.h:3607
void setPenNegative(const QPen &pen)
Definition qcustomplot.h:2833
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
friend class QCustomPlot
Definition qcustomplot.h:3031
QCPGraph(QCPAxis *keyAxis, QCPAxis *valueAxis)
void rescaleKeyAxis(bool onlyEnlarge, bool includeErrorBars) const
void addData(double key, double value)
void setErrorBarSize(double size)
void setScatterStyle(const QCPScatterStyle &style)
bool adaptiveSampling() const
Definition qcustomplot.h:2902
void setData(QCPDataMap *data, bool copy=false)
ErrorType errorType() const
Definition qcustomplot.h:2897
QPointer< QCPGraph > mChannelFillGraph
Definition qcustomplot.h:2971
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
ErrorType mErrorType
Definition qcustomplot.h:2968
void setChannelFillGraph(QCPGraph *targetGraph)
QCPScatterStyle scatterStyle() const
Definition qcustomplot.h:2896
void setDataValueError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &valueErrorMinus, const QVector< double > &valueErrorPlus)
void removeData(double fromKey, double toKey)
void removeData(double key)
QCPScatterStyle mScatterStyle
Definition qcustomplot.h:2967
void setData(const QVector< double > &key, const QVector< double > &value)
void setLineStyle(LineStyle ls)
virtual void drawScatterPlot(QCPPainter *painter, QVector< QCPData > *scatterData) const
void getStepRightPlotData(QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
int findIndexBelowY(const QVector< QPointF > *data, double y) const
double errorBarSize() const
Definition qcustomplot.h:2899
void getPlotData(QVector< QPointF > *lineData, QVector< QCPData > *scatterData) const
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain, bool includeErrors) const
friend class QCPLegend
Definition qcustomplot.h:3032
void getScatterPlotData(QVector< QCPData > *scatterData) const
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain, bool includeErrors) const
void getLinePlotData(QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QPointF upperFillBasePoint(double upperKey) const
double mErrorBarSize
Definition qcustomplot.h:2969
void addData(const QCPData &data)
bool errorBarSkipSymbol() const
Definition qcustomplot.h:2900
LineStyle mLineStyle
Definition qcustomplot.h:2966
void setDataBothError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyError, const QVector< double > &valueError)
int findIndexAboveY(const QVector< QPointF > *data, double y) const
int findIndexBelowX(const QVector< QPointF > *data, double x) const
virtual void drawFill(QCPPainter *painter, QVector< QPointF > *lineData) const
void addFillBasePoints(QVector< QPointF > *lineData) const
void getStepLeftPlotData(QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
double pointDistance(const QPointF &pixelPoint) const
QCPDataMap * mData
Definition qcustomplot.h:2964
void rescaleAxes(bool onlyEnlarge, bool includeErrorBars) const
void rescaleValueAxis(bool onlyEnlarge, bool includeErrorBars) const
void removeDataBefore(double key)
QPen mErrorPen
Definition qcustomplot.h:2965
virtual void drawLinePlot(QCPPainter *painter, QVector< QPointF > *lineData) const
void addData(const QCPDataMap &dataMap)
bool mAdaptiveSampling
Definition qcustomplot.h:2972
int findIndexAboveX(const QVector< QPointF > *data, double x) const
void getImpulsePlotData(QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
void setErrorBarSkipSymbol(bool enabled)
void setAdaptiveSampling(bool enabled)
void drawError(QCPPainter *painter, double x, double y, const QCPData &data) const
void addData(const QVector< double > &keys, const QVector< double > &values)
void getStepCenterPlotData(QVector< QPointF > *linePixelData, QVector< QCPData > *scatterData) const
void setDataBothError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyErrorMinus, const QVector< double > &keyErrorPlus, const QVector< double > &valueErrorMinus, const QVector< double > &valueErrorPlus)
void setDataKeyError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyError)
QPen errorPen() const
Definition qcustomplot.h:2898
void setErrorPen(const QPen &pen)
void getVisibleDataBounds(QCPDataMap::const_iterator &lower, QCPDataMap::const_iterator &upper) const
void setDataKeyError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &keyErrorMinus, const QVector< double > &keyErrorPlus)
void setErrorType(ErrorType errorType)
LineStyle lineStyle() const
Definition qcustomplot.h:2895
void setDataValueError(const QVector< double > &key, const QVector< double > &value, const QVector< double > &valueError)
QCPDataMap * data() const
Definition qcustomplot.h:2894
QPointF lowerFillBasePoint(double lowerKey) const
bool mErrorBarSkipSymbol
Definition qcustomplot.h:2970
ErrorType
Definition qcustomplot.h:2878
@ etKey
Error bars for the key dimension of the data point are shown.
Definition qcustomplot.h:2881
@ etNone
No error bars are shown.
Definition qcustomplot.h:2879
@ etBoth
Definition qcustomplot.h:2885
@ etValue
Error bars for the value dimension of the data point are shown.
Definition qcustomplot.h:2883
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
LineStyle
Definition qcustomplot.h:2854
@ lsNone
Definition qcustomplot.h:2855
@ lsStepLeft
Definition qcustomplot.h:2861
@ lsImpulse
Definition qcustomplot.h:2870
@ lsStepCenter
Definition qcustomplot.h:2867
@ lsLine
data points are connected by a straight line
Definition qcustomplot.h:2859
@ lsStepRight
Definition qcustomplot.h:2864
virtual void drawImpulsePlot(QCPPainter *painter, QVector< QPointF > *lineData) const
const QPolygonF getChannelFillPolygon(const QVector< QPointF > *lineData) const
int countDataInBounds(const QCPDataMap::const_iterator &lower, const QCPDataMap::const_iterator &upper, int maxCount) const
void removeDataAfter(double key)
void getPreparedData(QVector< QCPData > *lineData, QVector< QCPData > *scatterData) const
QCPGraph * channelFillGraph() const
Definition qcustomplot.h:2901
virtual void draw(QCPPainter *painter)
void removeFillBasePoints(QVector< QPointF > *lineData) const
QPen mPen
Definition qcustomplot.h:1122
QPen pen() const
Definition qcustomplot.h:1106
friend class QCPAxis
Definition qcustomplot.h:1134
void setZeroLinePen(const QPen &pen)
QPen mZeroLinePen
Definition qcustomplot.h:1122
void setAntialiasedZeroLine(bool enabled)
QCPAxis * mParentAxis
Definition qcustomplot.h:1124
bool mSubGridVisible
Definition qcustomplot.h:1120
void setAntialiasedSubGrid(bool enabled)
bool antialiasedZeroLine() const
Definition qcustomplot.h:1105
bool mAntialiasedSubGrid
Definition qcustomplot.h:1121
void drawSubGridLines(QCPPainter *painter) const
QPen zeroLinePen() const
Definition qcustomplot.h:1108
bool mAntialiasedZeroLine
Definition qcustomplot.h:1121
void setSubGridPen(const QPen &pen)
void setPen(const QPen &pen)
QPen mSubGridPen
Definition qcustomplot.h:1122
QCPGrid(QCPAxis *parentAxis)
void setSubGridVisible(bool visible)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
QPen subGridPen() const
Definition qcustomplot.h:1107
void drawGridLines(QCPPainter *painter) const
bool antialiasedSubGrid() const
Definition qcustomplot.h:1104
virtual void draw(QCPPainter *painter)
bool subGridVisible() const
Definition qcustomplot.h:1103
int mAnchorId
Definition qcustomplot.h:1741
virtual QPointF pixelPoint() const
void removeChildX(QCPItemPosition *pos)
QString mName
Definition qcustomplot.h:1736
QCPAbstractItem * mParentItem
Definition qcustomplot.h:1740
QSet< QCPItemPosition * > mChildrenY
Definition qcustomplot.h:1742
QCustomPlot * mParentPlot
Definition qcustomplot.h:1739
friend class QCPItemPosition
Definition qcustomplot.h:1760
void removeChildY(QCPItemPosition *pos)
QString name() const
Definition qcustomplot.h:1731
virtual QCPItemPosition * toQCPItemPosition()
Definition qcustomplot.h:1745
QSet< QCPItemPosition * > mChildrenX
Definition qcustomplot.h:1742
QCPItemAnchor(QCustomPlot *parentPlot, QCPAbstractItem *parentItem, const QString name, int anchorId=-1)
void addChildX(QCPItemPosition *pos)
void addChildY(QCPItemPosition *pos)
void setSelectedPen(const QPen &pen)
QPen mPen
Definition qcustomplot.h:4252
QCPItemBracket(QCustomPlot *parentPlot)
BracketStyle style() const
Definition qcustomplot.h:4233
QPen pen() const
Definition qcustomplot.h:4230
void setStyle(BracketStyle style)
QCPItemPosition *const left
Definition qcustomplot.h:4245
virtual QPointF anchorPixelPoint(int anchorId) const
BracketStyle
Definition qcustomplot.h:4215
@ bsCalligraphic
Definition qcustomplot.h:4222
@ bsCurly
A curly brace.
Definition qcustomplot.h:4220
@ bsSquare
A brace with angled edges.
Definition qcustomplot.h:4216
@ bsRound
A brace with round edges.
Definition qcustomplot.h:4218
AnchorIndex
Definition qcustomplot.h:4251
@ aiCenter
Definition qcustomplot.h:4251
QCPItemAnchor *const center
Definition qcustomplot.h:4247
virtual void draw(QCPPainter *painter)
virtual ~QCPItemBracket()
void setPen(const QPen &pen)
double mLength
Definition qcustomplot.h:4253
QCPItemPosition *const right
Definition qcustomplot.h:4246
void setLength(double length)
BracketStyle mStyle
Definition qcustomplot.h:4254
QPen mSelectedPen
Definition qcustomplot.h:4252
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
double length() const
Definition qcustomplot.h:4232
QPen selectedPen() const
Definition qcustomplot.h:4231
QCPItemPosition *const startDir
Definition qcustomplot.h:3801
void setPen(const QPen &pen)
QCPItemPosition *const start
Definition qcustomplot.h:3800
void setHead(const QCPLineEnding &head)
QCPItemPosition *const end
Definition qcustomplot.h:3803
void setSelectedPen(const QPen &pen)
QPen selectedPen() const
Definition qcustomplot.h:3786
QPen mPen
Definition qcustomplot.h:3807
QCPLineEnding head() const
Definition qcustomplot.h:3787
virtual void draw(QCPPainter *painter)
QCPItemPosition *const endDir
Definition qcustomplot.h:3802
QCPLineEnding tail() const
Definition qcustomplot.h:3788
QPen mSelectedPen
Definition qcustomplot.h:3807
void setTail(const QCPLineEnding &tail)
QCPItemCurve(QCustomPlot *parentPlot)
QPen pen() const
Definition qcustomplot.h:3785
QCPLineEnding mTail
Definition qcustomplot.h:3808
QCPLineEnding mHead
Definition qcustomplot.h:3808
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
virtual ~QCPItemEllipse()
QCPItemPosition *const bottomRight
Definition qcustomplot.h:4009
QCPItemAnchor *const topRightRim
Definition qcustomplot.h:4012
QPen mPen
Definition qcustomplot.h:4034
QCPItemAnchor *const bottomLeftRim
Definition qcustomplot.h:4016
QBrush mSelectedBrush
Definition qcustomplot.h:4035
QCPItemAnchor *const bottom
Definition qcustomplot.h:4015
QCPItemPosition *const topLeft
Definition qcustomplot.h:4008
AnchorIndex
Definition qcustomplot.h:4021
@ aiBottom
Definition qcustomplot.h:4027
@ aiBottomRightRim
Definition qcustomplot.h:4026
@ aiTop
Definition qcustomplot.h:4023
@ aiTopRightRim
Definition qcustomplot.h:4024
@ aiLeft
Definition qcustomplot.h:4029
@ aiTopLeftRim
Definition qcustomplot.h:4022
@ aiRight
Definition qcustomplot.h:4025
@ aiBottomLeftRim
Definition qcustomplot.h:4028
@ aiCenter
Definition qcustomplot.h:4030
void setBrush(const QBrush &brush)
QPen mSelectedPen
Definition qcustomplot.h:4034
virtual QPointF anchorPixelPoint(int anchorId) const
void setSelectedPen(const QPen &pen)
QBrush mBrush
Definition qcustomplot.h:4035
QCPItemEllipse(QCustomPlot *parentPlot)
QCPItemAnchor *const topLeftRim
Definition qcustomplot.h:4010
QPen pen() const
Definition qcustomplot.h:3993
void setSelectedBrush(const QBrush &brush)
QPen selectedPen() const
Definition qcustomplot.h:3994
QBrush brush() const
Definition qcustomplot.h:3995
QCPItemAnchor *const left
Definition qcustomplot.h:4017
QCPItemAnchor *const center
Definition qcustomplot.h:4018
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
virtual void draw(QCPPainter *painter)
void setPen(const QPen &pen)
QCPItemAnchor *const bottomRightRim
Definition qcustomplot.h:4014
QCPItemAnchor *const right
Definition qcustomplot.h:4013
QCPItemAnchor *const top
Definition qcustomplot.h:4011
QBrush selectedBrush() const
Definition qcustomplot.h:3996
QCPItemLine(QCustomPlot *parentPlot)
QCPItemPosition *const start
Definition qcustomplot.h:3755
void setSelectedPen(const QPen &pen)
QCPItemPosition *const end
Definition qcustomplot.h:3756
QCPLineEnding mHead
Definition qcustomplot.h:3761
void setPen(const QPen &pen)
QCPLineEnding head() const
Definition qcustomplot.h:3742
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QPen pen() const
Definition qcustomplot.h:3740
QCPLineEnding mTail
Definition qcustomplot.h:3761
QPen mPen
Definition qcustomplot.h:3760
QCPLineEnding tail() const
Definition qcustomplot.h:3743
virtual void draw(QCPPainter *painter)
void setTail(const QCPLineEnding &tail)
QPen selectedPen() const
Definition qcustomplot.h:3741
QLineF getRectClippedLine(const QVector2D &start, const QVector2D &end, const QRect &rect) const
void setHead(const QCPLineEnding &head)
QPen mSelectedPen
Definition qcustomplot.h:3760
QPen mSelectedPen
Definition qcustomplot.h:4108
QCPItemPosition *const bottomRight
Definition qcustomplot.h:4083
AnchorIndex
Definition qcustomplot.h:4092
@ aiRight
Definition qcustomplot.h:4095
@ aiTopRight
Definition qcustomplot.h:4094
@ aiBottomLeft
Definition qcustomplot.h:4097
@ aiTop
Definition qcustomplot.h:4093
@ aiBottom
Definition qcustomplot.h:4096
@ aiLeft
Definition qcustomplot.h:4098
QPixmap mPixmap
Definition qcustomplot.h:4102
bool mScaledPixmapInvalidated
Definition qcustomplot.h:4105
QPen selectedPen() const
Definition qcustomplot.h:4068
QPixmap mScaledPixmap
Definition qcustomplot.h:4103
QCPItemAnchor *const top
Definition qcustomplot.h:4084
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QRect getFinalRect(bool *flippedHorz=0, bool *flippedVert=0) const
Qt::AspectRatioMode aspectRatioMode() const
Definition qcustomplot.h:4063
QPen pen() const
Definition qcustomplot.h:4067
QCPItemAnchor *const left
Definition qcustomplot.h:4089
virtual QPointF anchorPixelPoint(int anchorId) const
void setPixmap(const QPixmap &pixmap)
QPixmap pixmap() const
Definition qcustomplot.h:4061
bool scaled() const
Definition qcustomplot.h:4062
QCPItemAnchor *const right
Definition qcustomplot.h:4086
void updateScaledPixmap(QRect finalRect=QRect(), bool flipHorz=false, bool flipVert=false)
Qt::AspectRatioMode mAspectRatioMode
Definition qcustomplot.h:4106
bool mScaled
Definition qcustomplot.h:4104
QCPItemPixmap(QCustomPlot *parentPlot)
void setScaled(bool scaled, Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio, Qt::TransformationMode transformationMode=Qt::SmoothTransformation)
Qt::TransformationMode transformationMode() const
Definition qcustomplot.h:4064
QCPItemAnchor *const bottom
Definition qcustomplot.h:4087
Qt::TransformationMode mTransformationMode
Definition qcustomplot.h:4107
QCPItemAnchor *const topRight
Definition qcustomplot.h:4085
void setPen(const QPen &pen)
QPen mPen
Definition qcustomplot.h:4108
virtual void draw(QCPPainter *painter)
QCPItemAnchor *const bottomLeft
Definition qcustomplot.h:4088
QCPItemPosition *const topLeft
Definition qcustomplot.h:4082
void setSelectedPen(const QPen &pen)
Definition qcustomplot.h:1763
QCPItemAnchor * mParentAnchorX
Definition qcustomplot.h:1838
QCPItemAnchor * parentAnchor() const
Definition qcustomplot.h:1805
void setAxisRect(QCPAxisRect *axisRect)
PositionType typeX() const
Definition qcustomplot.h:1803
void setTypeX(PositionType type)
void setAxes(QCPAxis *keyAxis, QCPAxis *valueAxis)
QPointer< QCPAxis > mKeyAxis
Definition qcustomplot.h:1835
QCPItemPosition(QCustomPlot *parentPlot, QCPAbstractItem *parentItem, const QString name)
PositionType mPositionTypeY
Definition qcustomplot.h:1834
virtual QPointF pixelPoint() const
double mKey
Definition qcustomplot.h:1837
QCPItemAnchor * parentAnchorY() const
Definition qcustomplot.h:1807
QPointer< QCPAxis > mValueAxis
Definition qcustomplot.h:1835
double mValue
Definition qcustomplot.h:1837
QPointer< QCPAxisRect > mAxisRect
Definition qcustomplot.h:1836
double key() const
Definition qcustomplot.h:1808
virtual QCPItemPosition * toQCPItemPosition()
Definition qcustomplot.h:1841
void setType(PositionType type)
QPointF coords() const
Definition qcustomplot.h:1810
void setCoords(double key, double value)
QCPAxis * valueAxis() const
Definition qcustomplot.h:1812
PositionType
Definition qcustomplot.h:1771
@ ptAbsolute
Definition qcustomplot.h:1772
@ ptAxisRectRatio
Definition qcustomplot.h:1783
@ ptViewportRatio
Definition qcustomplot.h:1775
@ ptPlotCoords
Definition qcustomplot.h:1793
void setPixelPoint(const QPointF &pixelPoint)
QCPAxis * keyAxis() const
Definition qcustomplot.h:1811
PositionType type() const
Definition qcustomplot.h:1802
bool setParentAnchor(QCPItemAnchor *parentAnchor, bool keepPixelPosition=false)
void setTypeY(PositionType type)
void setCoords(const QPointF &coords)
double value() const
Definition qcustomplot.h:1809
bool setParentAnchorY(QCPItemAnchor *parentAnchor, bool keepPixelPosition=false)
bool setParentAnchorX(QCPItemAnchor *parentAnchor, bool keepPixelPosition=false)
PositionType mPositionTypeX
Definition qcustomplot.h:1834
QCPAxisRect * axisRect() const
PositionType typeY() const
Definition qcustomplot.h:1804
virtual ~QCPItemPosition()
QCPItemAnchor * mParentAnchorY
Definition qcustomplot.h:1838
QCPItemAnchor * parentAnchorX() const
Definition qcustomplot.h:1806
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QCPItemAnchor *const topRight
Definition qcustomplot.h:3848
QBrush mSelectedBrush
Definition qcustomplot.h:3866
QCPItemAnchor *const left
Definition qcustomplot.h:3852
QCPItemAnchor *const top
Definition qcustomplot.h:3847
QBrush selectedBrush() const
Definition qcustomplot.h:3833
QBrush mBrush
Definition qcustomplot.h:3866
QCPItemAnchor *const right
Definition qcustomplot.h:3849
QPen pen() const
Definition qcustomplot.h:3830
QCPItemRect(QCustomPlot *parentPlot)
void setPen(const QPen &pen)
virtual void draw(QCPPainter *painter)
QBrush brush() const
Definition qcustomplot.h:3832
void setSelectedPen(const QPen &pen)
QCPItemPosition *const bottomRight
Definition qcustomplot.h:3846
QCPItemAnchor *const bottomLeft
Definition qcustomplot.h:3851
QPen mSelectedPen
Definition qcustomplot.h:3865
QCPItemPosition *const topLeft
Definition qcustomplot.h:3845
virtual QPointF anchorPixelPoint(int anchorId) const
QPen mPen
Definition qcustomplot.h:3865
void setBrush(const QBrush &brush)
void setSelectedBrush(const QBrush &brush)
QPen selectedPen() const
Definition qcustomplot.h:3831
QCPItemAnchor *const bottom
Definition qcustomplot.h:3850
AnchorIndex
Definition qcustomplot.h:3855
@ aiTop
Definition qcustomplot.h:3856
@ aiTopRight
Definition qcustomplot.h:3857
@ aiBottom
Definition qcustomplot.h:3859
@ aiBottomLeft
Definition qcustomplot.h:3860
@ aiRight
Definition qcustomplot.h:3858
@ aiLeft
Definition qcustomplot.h:3861
QPen mSelectedPen
Definition qcustomplot.h:3713
QPen mPen
Definition qcustomplot.h:3713
double distToStraightLine(const QVector2D &point1, const QVector2D &vec, const QVector2D &point) const
QCPItemPosition *const point1
Definition qcustomplot.h:3708
QCPItemStraightLine(QCustomPlot *parentPlot)
virtual void draw(QCPPainter *painter)
void setSelectedPen(const QPen &pen)
QCPItemPosition *const point2
Definition qcustomplot.h:3709
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
void setPen(const QPen &pen)
QPen pen() const
Definition qcustomplot.h:3697
virtual ~QCPItemStraightLine()
QPen selectedPen() const
Definition qcustomplot.h:3698
QLineF getRectClippedStraightLine(const QVector2D &point1, const QVector2D &vec, const QRect &rect) const
double rotation() const
Definition qcustomplot.h:3912
QColor color() const
Definition qcustomplot.h:3901
void setSelectedFont(const QFont &font)
Qt::Alignment positionAlignment() const
Definition qcustomplot.h:3910
QCPItemAnchor *const topRight
Definition qcustomplot.h:3937
AnchorIndex
Definition qcustomplot.h:3945
@ aiTopLeft
Definition qcustomplot.h:3946
@ aiRight
Definition qcustomplot.h:3949
@ aiBottom
Definition qcustomplot.h:3951
@ aiBottomRight
Definition qcustomplot.h:3950
@ aiBottomLeft
Definition qcustomplot.h:3952
@ aiLeft
Definition qcustomplot.h:3953
@ aiTopRight
Definition qcustomplot.h:3948
@ aiTop
Definition qcustomplot.h:3947
void setBrush(const QBrush &brush)
QFont mFont
Definition qcustomplot.h:3960
QBrush mBrush
Definition qcustomplot.h:3959
QBrush brush() const
Definition qcustomplot.h:3905
QCPItemPosition *const position
Definition qcustomplot.h:3934
QBrush mSelectedBrush
Definition qcustomplot.h:3959
void setSelectedPen(const QPen &pen)
QString mText
Definition qcustomplot.h:3961
QBrush selectedBrush() const
Definition qcustomplot.h:3906
QCPItemAnchor *const left
Definition qcustomplot.h:3942
void setText(const QString &text)
QFont font() const
Definition qcustomplot.h:3907
void setRotation(double degrees)
QPointF getTextDrawPoint(const QPointF &pos, const QRectF &rect, Qt::Alignment positionAlignment) const
QCPItemAnchor *const right
Definition qcustomplot.h:3938
QMargins padding() const
Definition qcustomplot.h:3913
QFont mSelectedFont
Definition qcustomplot.h:3960
void setSelectedBrush(const QBrush &brush)
QCPItemAnchor *const bottomRight
Definition qcustomplot.h:3939
Qt::Alignment mPositionAlignment
Definition qcustomplot.h:3962
virtual QPointF anchorPixelPoint(int anchorId) const
QColor selectedColor() const
Definition qcustomplot.h:3902
QPen pen() const
Definition qcustomplot.h:3903
QFont selectedFont() const
Definition qcustomplot.h:3908
QCPItemText(QCustomPlot *parentPlot)
void setPositionAlignment(Qt::Alignment alignment)
QCPItemAnchor *const bottomLeft
Definition qcustomplot.h:3941
QColor mSelectedColor
Definition qcustomplot.h:3957
QColor mColor
Definition qcustomplot.h:3957
QPen selectedPen() const
Definition qcustomplot.h:3904
QPen mSelectedPen
Definition qcustomplot.h:3958
void setFont(const QFont &font)
Qt::Alignment textAlignment() const
Definition qcustomplot.h:3911
void setPen(const QPen &pen)
QPen mPen
Definition qcustomplot.h:3958
QCPItemAnchor *const topLeft
Definition qcustomplot.h:3935
void setColor(const QColor &color)
QCPItemAnchor *const top
Definition qcustomplot.h:3936
void setTextAlignment(Qt::Alignment alignment)
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
double mRotation
Definition qcustomplot.h:3964
virtual void draw(QCPPainter *painter)
Qt::Alignment mTextAlignment
Definition qcustomplot.h:3963
QString text() const
Definition qcustomplot.h:3909
QMargins mPadding
Definition qcustomplot.h:3965
void setSelectedColor(const QColor &color)
void setPadding(const QMargins &padding)
QCPItemAnchor *const bottom
Definition qcustomplot.h:3940
void setSelectedBrush(const QBrush &brush)
QBrush mSelectedBrush
Definition qcustomplot.h:4191
void setBrush(const QBrush &brush)
TracerStyle
Definition qcustomplot.h:4141
@ tsCircle
A circle.
Definition qcustomplot.h:4148
@ tsPlus
A plus shaped crosshair with limited size.
Definition qcustomplot.h:4144
@ tsSquare
A square.
Definition qcustomplot.h:4150
@ tsNone
The tracer is not visible.
Definition qcustomplot.h:4142
@ tsCrosshair
A plus shaped crosshair which spans the complete axis rect.
Definition qcustomplot.h:4146
QPen mSelectedPen
Definition qcustomplot.h:4190
void setStyle(TracerStyle style)
double size() const
Definition qcustomplot.h:4162
double mSize
Definition qcustomplot.h:4192
QPen mPen
Definition qcustomplot.h:4190
virtual void draw(QCPPainter *painter)
QCPGraph * graph() const
Definition qcustomplot.h:4164
QBrush mBrush
Definition qcustomplot.h:4191
void setGraphKey(double key)
void setInterpolating(bool enabled)
QBrush brush() const
Definition qcustomplot.h:4160
QPen pen() const
Definition qcustomplot.h:4158
double mGraphKey
Definition qcustomplot.h:4195
QCPGraph * mGraph
Definition qcustomplot.h:4194
double graphKey() const
Definition qcustomplot.h:4165
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QPen selectedPen() const
Definition qcustomplot.h:4159
QCPItemTracer(QCustomPlot *parentPlot)
void setSelectedPen(const QPen &pen)
QBrush selectedBrush() const
Definition qcustomplot.h:4161
void setSize(double size)
QCPItemPosition *const position
Definition qcustomplot.h:4186
bool interpolating() const
Definition qcustomplot.h:4166
void setGraph(QCPGraph *graph)
void setPen(const QPen &pen)
bool mInterpolating
Definition qcustomplot.h:4196
TracerStyle mStyle
Definition qcustomplot.h:4193
TracerStyle style() const
Definition qcustomplot.h:4163
Definition qcustomplot.h:480
friend class QCustomPlot
Definition qcustomplot.h:518
QList< QCPLayerable * > mChildren
Definition qcustomplot.h:508
int mIndex
Definition qcustomplot.h:507
QList< QCPLayerable * > children() const
Definition qcustomplot.h:497
friend class QCPLayerable
Definition qcustomplot.h:519
bool mVisible
Definition qcustomplot.h:509
QString name() const
Definition qcustomplot.h:495
void addChild(QCPLayerable *layerable, bool prepend)
QCPLayer(QCustomPlot *parentPlot, const QString &layerName)
QCustomPlot * mParentPlot
Definition qcustomplot.h:505
QString mName
Definition qcustomplot.h:506
QCustomPlot * parentPlot() const
Definition qcustomplot.h:494
void setVisible(bool visible)
void removeChild(QCPLayerable *layerable)
bool visible() const
Definition qcustomplot.h:498
int index() const
Definition qcustomplot.h:496
Definition qcustomplot.h:522
friend class QCustomPlot
Definition qcustomplot.h:589
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const =0
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QCustomPlot * mParentPlot
Definition qcustomplot.h:562
friend class QCPAxisRect
Definition qcustomplot.h:590
QCustomPlot * parentPlot() const
Definition qcustomplot.h:538
bool mAntialiased
Definition qcustomplot.h:565
void setAntialiased(bool enabled)
friend class QCPLayer
Definition qcustomplot.h:921
bool mVisible
Definition qcustomplot.h:561
bool antialiased() const
Definition qcustomplot.h:541
QCPLayerable(QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
virtual void deselectEvent(bool *selectionStateChanged)
void initializeParentPlot(QCustomPlot *parentPlot)
QCPLayer * layer() const
Definition qcustomplot.h:540
void setParentLayerable(QCPLayerable *parentLayerable)
QCPLayerable * parentLayerable() const
Definition qcustomplot.h:539
bool realVisibility() const
bool setLayer(const QString &layerName)
QCPLayer * mLayer
Definition qcustomplot.h:564
void layerChanged(QCPLayer *newLayer)
virtual void parentPlotInitialized(QCustomPlot *parentPlot)
void applyAntialiasingHint(QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
virtual void draw(QCPPainter *painter)=0
virtual QCP::Interaction selectionCategory() const
QPointer< QCPLayerable > mParentLayerable
Definition qcustomplot.h:563
Q_SLOT bool setLayer(QCPLayer *layer)
bool visible() const
Definition qcustomplot.h:537
bool moveToLayer(QCPLayer *layer, bool prepend)
virtual QRect clipRect() const
Definition qcustomplot.h:755
friend class QCustomPlot
Definition qcustomplot.h:851
virtual void mousePressEvent(QMouseEvent *event)
Definition qcustomplot.h:835
void setMaximumSize(int width, int height)
QRect mOuterRect
Definition qcustomplot.h:827
void setMinimumMargins(const QMargins &margins)
UpdatePhase
Definition qcustomplot.h:772
@ upLayout
Definition qcustomplot.h:778
@ upPreparation
Definition qcustomplot.h:773
@ upMargins
Phase in which the margins are calculated and set.
Definition qcustomplot.h:776
virtual void mouseMoveEvent(QMouseEvent *event)
Definition qcustomplot.h:836
QRect rect() const
Definition qcustomplot.h:788
QCP::MarginSides autoMargins() const
Definition qcustomplot.h:792
QHash< QCP::MarginSide, QCPMarginGroup * > mMarginGroups
Definition qcustomplot.h:830
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QRect outerRect() const
Definition qcustomplot.h:789
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition qcustomplot.h:837
void setOuterRect(const QRect &rect)
QCPLayout * layout() const
Definition qcustomplot.h:787
void setMarginGroup(QCP::MarginSides sides, QCPMarginGroup *group)
virtual void draw(QCPPainter *painter)
Definition qcustomplot.h:845
virtual void parentPlotInitialized(QCustomPlot *parentPlot)
QMargins mMinimumMargins
Definition qcustomplot.h:828
void setMinimumSize(const QSize &size)
QMargins minimumMargins() const
Definition qcustomplot.h:791
QSize minimumSize() const
Definition qcustomplot.h:793
QSize mMaximumSize
Definition qcustomplot.h:826
void setMaximumSize(const QSize &size)
virtual int calculateAutoMargin(QCP::MarginSide side)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
Definition qcustomplot.h:838
QCPLayoutElement(QCustomPlot *parentPlot=0)
void setMinimumSize(int width, int height)
void setMargins(const QMargins &margins)
virtual QSize maximumSizeHint() const
friend class QCPMarginGroup
Definition qcustomplot.h:853
QCPMarginGroup * marginGroup(QCP::MarginSide side) const
Definition qcustomplot.h:795
virtual QSize minimumSizeHint() const
QMargins mMargins
Definition qcustomplot.h:828
QCPLayout * mParentLayout
Definition qcustomplot.h:825
void setAutoMargins(QCP::MarginSides sides)
QHash< QCP::MarginSide, QCPMarginGroup * > marginGroups() const
Definition qcustomplot.h:798
virtual void wheelEvent(QWheelEvent *event)
Definition qcustomplot.h:839
virtual void update(UpdatePhase phase)
QRect mRect
Definition qcustomplot.h:827
virtual QList< QCPLayoutElement * > elements(bool recursive) const
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
Definition qcustomplot.h:842
QMargins margins() const
Definition qcustomplot.h:790
QCP::MarginSides mAutoMargins
Definition qcustomplot.h:829
QSize maximumSize() const
Definition qcustomplot.h:794
friend class QCPLayout
Definition qcustomplot.h:852
QSize mMinimumSize
Definition qcustomplot.h:826
Definition qcustomplot.h:894
virtual bool take(QCPLayoutElement *element)
void insertColumn(int newIndex)
void setRowStretchFactors(const QList< double > &factors)
virtual int elementCount() const
QList< double > rowStretchFactors() const
Definition qcustomplot.h:914
void setColumnSpacing(int pixels)
virtual QSize minimumSizeHint() const
void insertRow(int newIndex)
void getMinimumRowColSizes(QVector< int > *minColWidths, QVector< int > *minRowHeights) const
virtual QSize maximumSizeHint() const
int rowSpacing() const
Definition qcustomplot.h:916
QCPLayoutElement * element(int row, int column) const
void setColumnStretchFactors(const QList< double > &factors)
void setRowStretchFactor(int row, double factor)
QList< double > columnStretchFactors() const
Definition qcustomplot.h:913
void expandTo(int newRowCount, int newColumnCount)
QList< QList< QCPLayoutElement * > > mElements
Definition qcustomplot.h:947
int mRowSpacing
Definition qcustomplot.h:950
virtual QList< QCPLayoutElement * > elements(bool recursive) const
virtual void updateLayout()
void getMaximumRowColSizes(QVector< int > *maxColWidths, QVector< int > *maxRowHeights) const
QList< double > mColumnStretchFactors
Definition qcustomplot.h:948
void setRowSpacing(int pixels)
bool hasElement(int row, int column)
virtual QCPLayoutElement * takeAt(int index)
virtual QCPLayoutElement * elementAt(int index) const
int columnSpacing() const
Definition qcustomplot.h:915
bool addElement(int row, int column, QCPLayoutElement *element)
void setColumnStretchFactor(int column, double factor)
int mColumnSpacing
Definition qcustomplot.h:950
QList< double > mRowStretchFactors
Definition qcustomplot.h:949
Definition qcustomplot.h:962
virtual bool take(QCPLayoutElement *element)
virtual int elementCount() const
virtual void updateLayout()
virtual ~QCPLayoutInset()
QList< QCPLayoutElement * > mElements
Definition qcustomplot.h:1006
QList< InsetPlacement > mInsetPlacement
Definition qcustomplot.h:1007
QList< Qt::Alignment > mInsetAlignment
Definition qcustomplot.h:1008
virtual QCPLayoutElement * elementAt(int index) const
virtual void simplify()
Definition qcustomplot.h:996
Qt::Alignment insetAlignment(int index) const
void setInsetAlignment(int index, Qt::Alignment alignment)
void setInsetPlacement(int index, InsetPlacement placement)
virtual QCPLayoutElement * takeAt(int index)
InsetPlacement
Definition qcustomplot.h:969
@ ipFree
Definition qcustomplot.h:970
@ ipBorderAligned
Definition qcustomplot.h:973
void addElement(QCPLayoutElement *element, const QRectF &rect)
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QList< QRectF > mInsetRect
Definition qcustomplot.h:1009
void setInsetRect(int index, const QRectF &rect)
QRectF insetRect(int index) const
void addElement(QCPLayoutElement *element, Qt::Alignment alignment)
InsetPlacement insetPlacement(int index) const
Definition qcustomplot.h:856
virtual QList< QCPLayoutElement * > elements(bool recursive) const
QVector< int > getSectionSizes(QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const
void releaseElement(QCPLayoutElement *el)
virtual void update(UpdatePhase phase)
bool remove(QCPLayoutElement *element)
friend class QCPLayoutElement
Definition qcustomplot.h:891
virtual QCPLayoutElement * takeAt(int index)=0
virtual QCPLayoutElement * elementAt(int index) const =0
virtual int elementCount() const =0
virtual bool take(QCPLayoutElement *element)=0
void sizeConstraintsChanged() const
void adoptElement(QCPLayoutElement *el)
virtual void updateLayout()
Definition qcustomplot.h:2500
friend class QCustomPlot
Definition qcustomplot.h:2629
SelectableParts mSelectableParts
Definition qcustomplot.h:2605
int iconTextPadding() const
Definition qcustomplot.h:2549
QPen getBorderPen() const
friend class QCPAbstractLegendItem
Definition qcustomplot.h:2630
bool removeItem(QCPAbstractLegendItem *item)
SelectableParts selectedParts() const
void setSelectedBorderPen(const QPen &pen)
void setIconBorderPen(const QPen &pen)
QSize mIconSize
Definition qcustomplot.h:2603
bool addItem(QCPAbstractLegendItem *item)
Q_SLOT void setSelectableParts(const SelectableParts &selectableParts)
QColor mTextColor
Definition qcustomplot.h:2602
QFont selectedFont() const
Definition qcustomplot.h:2556
virtual void parentPlotInitialized(QCustomPlot *parentPlot)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
void setBrush(const QBrush &brush)
bool hasItemWithPlottable(const QCPAbstractPlottable *plottable) const
QPen mBorderPen
Definition qcustomplot.h:2599
SelectablePart
Definition qcustomplot.h:2529
@ spItems
Definition qcustomplot.h:2534
@ spLegendBox
0x001 The legend box (frame)
Definition qcustomplot.h:2532
@ spNone
0x000 None
Definition qcustomplot.h:2530
virtual void draw(QCPPainter *painter)
QFont mFont
Definition qcustomplot.h:2601
QPen iconBorderPen() const
Definition qcustomplot.h:2550
QPen mSelectedBorderPen
Definition qcustomplot.h:2606
void setIconTextPadding(int padding)
QColor mSelectedTextColor
Definition qcustomplot.h:2609
QPen mSelectedIconBorderPen
Definition qcustomplot.h:2606
void setSelectedTextColor(const QColor &color)
QPen mIconBorderPen
Definition qcustomplot.h:2599
QBrush selectedBrush() const
Definition qcustomplot.h:2555
virtual QCP::Interaction selectionCategory() const
void selectionChanged(QCPLegend::SelectableParts parts)
QPen borderPen() const
Definition qcustomplot.h:2544
void setBorderPen(const QPen &pen)
QFont mSelectedFont
Definition qcustomplot.h:2608
void setSelectedBrush(const QBrush &brush)
void selectableChanged(QCPLegend::SelectableParts parts)
int mIconTextPadding
Definition qcustomplot.h:2604
void setIconSize(const QSize &size)
SelectableParts mSelectedParts
Definition qcustomplot.h:2605
QCPPlottableLegendItem * itemWithPlottable(const QCPAbstractPlottable *plottable) const
Q_SLOT void setSelectedParts(const SelectableParts &selectedParts)
void setIconSize(int width, int height)
QBrush mBrush
Definition qcustomplot.h:2600
void setFont(const QFont &font)
QColor textColor() const
Definition qcustomplot.h:2547
QBrush brush() const
Definition qcustomplot.h:2545
QBrush mSelectedBrush
Definition qcustomplot.h:2607
void setSelectedFont(const QFont &font)
QColor selectedTextColor() const
Definition qcustomplot.h:2557
virtual void deselectEvent(bool *selectionStateChanged)
QList< QCPAbstractLegendItem * > selectedItems() const
bool removeItem(int index)
QCPAbstractLegendItem * item(int index) const
SelectableParts selectableParts() const
Definition qcustomplot.h:2551
bool hasItem(QCPAbstractLegendItem *item) const
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
QPen selectedIconBorderPen() const
Definition qcustomplot.h:2554
QPen selectedBorderPen() const
Definition qcustomplot.h:2553
void setSelectedIconBorderPen(const QPen &pen)
void setTextColor(const QColor &color)
QFont font() const
Definition qcustomplot.h:2546
QSize iconSize() const
Definition qcustomplot.h:2548
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
Definition qcustomplot.h:1015
EndingStyle style() const
Definition qcustomplot.h:1061
void draw(QCPPainter *painter, const QVector2D &pos, const QVector2D &dir) const
double boundingDistance() const
bool inverted() const
Definition qcustomplot.h:1064
void setWidth(double width)
EndingStyle mStyle
Definition qcustomplot.h:1081
void setStyle(EndingStyle style)
void setInverted(bool inverted)
EndingStyle
Definition qcustomplot.h:1032
@ esDiamond
A filled diamond (45° rotated square)
Definition qcustomplot.h:1045
@ esBar
A bar perpendicular to the line.
Definition qcustomplot.h:1047
@ esSkewedBar
Definition qcustomplot.h:1052
@ esNone
No ending decoration.
Definition qcustomplot.h:1033
@ esDisc
A filled circle.
Definition qcustomplot.h:1041
@ esLineArrow
A non-filled arrow head with open back.
Definition qcustomplot.h:1039
@ esHalfBar
Definition qcustomplot.h:1049
@ esSpikeArrow
A filled arrow head with an indented back.
Definition qcustomplot.h:1037
@ esSquare
A filled square.
Definition qcustomplot.h:1043
@ esFlatArrow
A filled arrow head with a straight/flat back (a triangle)
Definition qcustomplot.h:1035
void draw(QCPPainter *painter, const QVector2D &pos, double angle) const
bool mInverted
Definition qcustomplot.h:1083
QCPLineEnding(EndingStyle style, double width=8, double length=10, bool inverted=false)
double mWidth
Definition qcustomplot.h:1082
double realLength() const
void setLength(double length)
double width() const
Definition qcustomplot.h:1062
double mLength
Definition qcustomplot.h:1082
double length() const
Definition qcustomplot.h:1063
void removeChild(QCP::MarginSide side, QCPLayoutElement *element)
QCustomPlot * mParentPlot
Definition qcustomplot.h:741
QHash< QCP::MarginSide, QList< QCPLayoutElement * > > mChildren
Definition qcustomplot.h:742
friend class QCPLayoutElement
Definition qcustomplot.h:752
QCPMarginGroup(QCustomPlot *parentPlot)
QList< QCPLayoutElement * > elements(QCP::MarginSide side) const
Definition qcustomplot.h:733
void addChild(QCP::MarginSide side, QCPLayoutElement *element)
int commonMargin(QCP::MarginSide side) const
Definition qcustomplot.h:414
bool begin(QPaintDevice *device)
void drawLine(const QLineF &line)
PainterMode
Definition qcustomplot.h:422
@ pmNoCaching
Definition qcustomplot.h:430
@ pmVectorized
Definition qcustomplot.h:426
@ pmNonCosmetic
Definition qcustomplot.h:434
@ pmDefault
0x00 Default mode for painting on screen devices
Definition qcustomplot.h:423
QStack< bool > mAntialiasingStack
Definition qcustomplot.h:476
void setPen(Qt::PenStyle penStyle)
bool antialiasing() const
Definition qcustomplot.h:447
void setPen(const QColor &color)
void setModes(PainterModes modes)
bool mIsAntialiasing
Definition qcustomplot.h:473
void setAntialiasing(bool enabled)
void drawLine(const QPointF &p1, const QPointF &p2)
Definition qcustomplot.h:461
PainterModes modes() const
Definition qcustomplot.h:448
PainterModes mModes
Definition qcustomplot.h:472
void setMode(PainterMode mode, bool enabled=true)
void setPen(const QPen &pen)
Definition qcustomplot.h:2635
void setSelectedTextColor(const QColor &color)
QString mText
Definition qcustomplot.h:2681
void setFont(const QFont &font)
QColor textColor() const
Definition qcustomplot.h:2656
QFont font() const
Definition qcustomplot.h:2655
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
void selectionChanged(bool selected)
QFont selectedFont() const
Definition qcustomplot.h:2657
virtual QSize maximumSizeHint() const
void setSelectedFont(const QFont &font)
QColor mTextColor
Definition qcustomplot.h:2683
void selectableChanged(bool selectable)
Q_SLOT void setSelected(bool selected)
bool selected() const
Definition qcustomplot.h:2660
void setTextColor(const QColor &color)
Q_SLOT void setSelectable(bool selectable)
QRect mTextBoundingRect
Definition qcustomplot.h:2686
virtual QSize minimumSizeHint() const
QColor mSelectedTextColor
Definition qcustomplot.h:2685
QCPPlotTitle(QCustomPlot *parentPlot, const QString &text)
QFont mSelectedFont
Definition qcustomplot.h:2684
QCPPlotTitle(QCustomPlot *parentPlot)
bool mSelectable
Definition qcustomplot.h:2687
void setText(const QString &text)
QColor mainTextColor() const
QString text() const
Definition qcustomplot.h:2654
bool selectable() const
Definition qcustomplot.h:2659
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
virtual void deselectEvent(bool *selectionStateChanged)
QColor selectedTextColor() const
Definition qcustomplot.h:2658
QFont mFont
Definition qcustomplot.h:2682
virtual void draw(QCPPainter *painter)
bool mSelected
Definition qcustomplot.h:2687
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
Definition qcustomplot.h:2478
virtual QSize minimumSizeHint() const
virtual void draw(QCPPainter *painter)
QColor getTextColor() const
QCPAbstractPlottable * mPlottable
Definition qcustomplot.h:2488
QCPAbstractPlottable * plottable()
Definition qcustomplot.h:2484
QCPPlottableLegendItem(QCPLegend *parent, QCPAbstractPlottable *plottable)
QPen getIconBorderPen() const
Definition qcustomplot.h:593
void expand(const QCPRange &otherRange)
QCPRange(double lower, double upper)
static bool validRange(const QCPRange &range)
static const double maxRange
Definition qcustomplot.h:644
QCPRange sanitizedForLogScale() const
bool operator!=(const QCPRange &other) const
Definition qcustomplot.h:603
static bool validRange(double lower, double upper)
QCPRange & operator/=(const double &value)
Definition qcustomplot.h:620
QCPRange & operator*=(const double &value)
Definition qcustomplot.h:615
QCPRange sanitizedForLinScale() const
QCPRange & operator-=(const double &value)
Definition qcustomplot.h:610
static const double minRange
Definition qcustomplot.h:643
QCPRange expanded(const QCPRange &otherRange) const
bool operator==(const QCPRange &other) const
Definition qcustomplot.h:600
double lower
Definition qcustomplot.h:595
double upper
Definition qcustomplot.h:595
bool contains(double value) const
QCPRange & operator+=(const double &value)
Definition qcustomplot.h:605
Definition qcustomplot.h:305
QCPScatterStyle(ScatterShape shape, double size=6)
double size() const
Definition qcustomplot.h:378
QPen mPen
Definition qcustomplot.h:404
QBrush mBrush
Definition qcustomplot.h:405
void drawShape(QCPPainter *painter, QPointF pos) const
bool isPenDefined() const
Definition qcustomplot.h:395
void setPixmap(const QPixmap &pixmap)
QCPScatterStyle(const QPixmap &pixmap)
QCPScatterStyle(ScatterShape shape, const QColor &color, const QColor &fill, double size)
bool isNone() const
Definition qcustomplot.h:394
void setBrush(const QBrush &brush)
double mSize
Definition qcustomplot.h:402
void setPen(const QPen &pen)
QPixmap mPixmap
Definition qcustomplot.h:406
void setShape(ScatterShape shape)
QPainterPath mCustomPath
Definition qcustomplot.h:407
bool mPenDefined
Definition qcustomplot.h:410
QCPScatterStyle(ScatterShape shape, const QPen &pen, const QBrush &brush, double size)
QCPScatterStyle(const QPainterPath &customPath, const QPen &pen, const QBrush &brush=Qt::NoBrush, double size=6)
void drawShape(QCPPainter *painter, double x, double y) const
void setCustomPath(const QPainterPath &customPath)
QPixmap pixmap() const
Definition qcustomplot.h:382
void setSize(double size)
QPen pen() const
Definition qcustomplot.h:380
ScatterShape
Definition qcustomplot.h:317
@ ssTriangle
Definition qcustomplot.h:340
@ ssPixmap
Definition qcustomplot.h:359
@ ssCustom
Definition qcustomplot.h:362
@ ssPlusSquare
\enumimage{ssPlusSquare.png} a square with a plus inside
Definition qcustomplot.h:349
@ ssDot
Definition qcustomplot.h:321
@ ssNone
Definition qcustomplot.h:318
@ ssPlus
\enumimage{ssPlus.png} a plus
Definition qcustomplot.h:326
@ ssCircle
\enumimage{ssCircle.png} a circle
Definition qcustomplot.h:328
@ ssPeace
Definition qcustomplot.h:356
@ ssSquare
\enumimage{ssSquare.png} a square
Definition qcustomplot.h:333
@ ssCross
\enumimage{ssCross.png} a cross
Definition qcustomplot.h:324
@ ssStar
Definition qcustomplot.h:337
@ ssDiamond
\enumimage{ssDiamond.png} a diamond
Definition qcustomplot.h:335
@ ssCrossSquare
Definition qcustomplot.h:346
@ ssPlusCircle
\enumimage{ssPlusCircle.png} a circle with a plus inside
Definition qcustomplot.h:354
@ ssTriangleInverted
Definition qcustomplot.h:343
@ ssCrossCircle
Definition qcustomplot.h:351
@ ssDisc
Definition qcustomplot.h:330
QBrush brush() const
Definition qcustomplot.h:381
QPainterPath customPath() const
Definition qcustomplot.h:383
ScatterShape shape() const
Definition qcustomplot.h:379
ScatterShape mShape
Definition qcustomplot.h:403
QCPScatterStyle(ScatterShape shape, const QColor &color, double size)
void applyTo(QCPPainter *painter, const QPen &defaultPen) const
friend class QCustomPlot
Definition qcustomplot.h:3419
double key() const
Definition qcustomplot.h:3359
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void setWidth(double width)
double mMaximum
Definition qcustomplot.h:3398
QPen mMedianPen
Definition qcustomplot.h:3401
QPen mWhiskerPen
Definition qcustomplot.h:3401
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
QVector< double > mOutliers
Definition qcustomplot.h:3397
QPen whiskerBarPen() const
Definition qcustomplot.h:3369
void setWhiskerPen(const QPen &pen)
double mWhiskerWidth
Definition qcustomplot.h:3400
double maximum() const
Definition qcustomplot.h:3364
void setMedian(double value)
void setUpperQuartile(double value)
QPen whiskerPen() const
Definition qcustomplot.h:3368
void setLowerQuartile(double value)
friend class QCPLegend
Definition qcustomplot.h:3420
double mMinimum
Definition qcustomplot.h:3398
void setMedianPen(const QPen &pen)
QCPStatisticalBox(QCPAxis *keyAxis, QCPAxis *valueAxis)
virtual void drawOutliers(QCPPainter *painter) const
void setMinimum(double value)
double mUpperQuartile
Definition qcustomplot.h:3398
double mKey
Definition qcustomplot.h:3398
QVector< double > outliers() const
Definition qcustomplot.h:3365
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
virtual void drawMedian(QCPPainter *painter) const
QPen mWhiskerBarPen
Definition qcustomplot.h:3401
void setWhiskerBarPen(const QPen &pen)
double whiskerWidth() const
Definition qcustomplot.h:3367
double minimum() const
Definition qcustomplot.h:3360
double mLowerQuartile
Definition qcustomplot.h:3398
double median() const
Definition qcustomplot.h:3362
void setMaximum(double value)
void setOutlierStyle(const QCPScatterStyle &style)
void setWhiskerWidth(double width)
void setData(double key, double minimum, double lowerQuartile, double median, double upperQuartile, double maximum)
QCPScatterStyle mOutlierStyle
Definition qcustomplot.h:3402
double mMedian
Definition qcustomplot.h:3398
double width() const
Definition qcustomplot.h:3366
virtual void drawWhiskers(QCPPainter *painter) const
virtual void drawQuartileBox(QCPPainter *painter, QRectF *quartileBox=0) const
QCPScatterStyle outlierStyle() const
Definition qcustomplot.h:3371
double mWidth
Definition qcustomplot.h:3399
QPen medianPen() const
Definition qcustomplot.h:3370
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
void setOutliers(const QVector< double > &values)
virtual void draw(QCPPainter *painter)
double lowerQuartile() const
Definition qcustomplot.h:3361
double upperQuartile() const
Definition qcustomplot.h:3363
Definition qcustomplot.h:1925
void legendDoubleClick(QCPLegend *legend, QCPAbstractLegendItem *item, QMouseEvent *event)
QCPLayer * currentLayer() const
void drawBackground(QCPPainter *painter)
QPixmap mScaledBackgroundPixmap
Definition qcustomplot.h:2151
QCPLayer * layer(const QString &name) const
Qt::KeyboardModifier mMultiSelectModifier
Definition qcustomplot.h:2156
QCPLayerable * layerableAt(const QPointF &pos, bool onlySelectable, QVariant *selectionDetails=0) const
QList< QCPGraph * > mGraphs
Definition qcustomplot.h:2141
QList< QCPAxisRect * > axisRects() const
QCPAbstractItem * item() const
void setBackground(const QPixmap &pm)
QRect viewport() const
Definition qcustomplot.h:1980
void toPainter(QCPPainter *painter, int width=0, int height=0)
friend class QCPAxis
Definition qcustomplot.h:2187
void titleClick(QMouseEvent *event, QCPPlotTitle *title)
bool setCurrentLayer(QCPLayer *layer)
virtual void legendRemoved(QCPLegend *legend)
Qt::KeyboardModifier multiSelectModifier() const
Definition qcustomplot.h:1998
friend class QCPLayer
Definition qcustomplot.h:2188
QCP::AntialiasedElements mNotAntialiasedElements
Definition qcustomplot.h:2145
const QCP::Interactions interactions() const
Definition qcustomplot.h:1994
QCPAbstractPlottable * plottable(int index)
friend class QCPAxisRect
Definition qcustomplot.h:2189
void setBackgroundScaled(bool scaled)
QBrush mBackgroundBrush
Definition qcustomplot.h:2149
Q_SLOT void deselectAll()
void setPlottingHint(QCP::PlottingHint hint, bool enabled=true)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
QCPLayer * mCurrentLayer
Definition qcustomplot.h:2154
void setViewport(const QRect &rect)
bool removeLayer(QCPLayer *layer)
void setInteraction(const QCP::Interaction &interaction, bool enabled=true)
virtual void mousePressEvent(QMouseEvent *event)
QCustomPlot(QWidget *parent=0)
RefreshPriority
Definition qcustomplot.h:1963
@ rpHint
Definition qcustomplot.h:1971
@ rpImmediate
Definition qcustomplot.h:1964
@ rpQueued
Definition qcustomplot.h:1967
bool saveJpg(const QString &fileName, int width=0, int height=0, double scale=1.0, int quality=-1)
void setBackgroundScaledMode(Qt::AspectRatioMode mode)
void setSelectionTolerance(int pixels)
QCPLegend * legend
Definition qcustomplot.h:2106
void selectionChangedByUser()
friend class QCPAbstractPlottable
Definition qcustomplot.h:4350
int selectionTolerance() const
Definition qcustomplot.h:1995
virtual void paintEvent(QPaintEvent *event)
void plottableClick(QCPAbstractPlottable *plottable, QMouseEvent *event)
QPixmap background() const
Definition qcustomplot.h:1981
void setInteractions(const QCP::Interactions &interactions)
int plottableCount() const
virtual void mouseReleaseEvent(QMouseEvent *event)
bool mBackgroundScaled
Definition qcustomplot.h:2152
QCP::AntialiasedElements antialiasedElements() const
Definition qcustomplot.h:1987
bool savePdf(const QString &fileName, bool noCosmeticPen=false, int width=0, int height=0, const QString &pdfCreator=QString(), const QString &pdfTitle=QString())
bool saveBmp(const QString &fileName, int width=0, int height=0, double scale=1.0)
friend class QCPLegend
Definition qcustomplot.h:2186
void axisDoubleClick(QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event)
QCPGraph * graph(int index) const
QCPGraph * addGraph(QCPAxis *keyAxis=0, QCPAxis *valueAxis=0)
virtual QSize sizeHint() const
bool hasPlottable(QCPAbstractPlottable *plottable) const
bool setCurrentLayer(const QString &name)
virtual QSize minimumSizeHint() const
void mouseMove(QMouseEvent *event)
QList< QCPAbstractPlottable * > selectedPlottables() const
QPixmap mPaintBuffer
Definition qcustomplot.h:2159
QCP::AntialiasedElements notAntialiasedElements() const
Definition qcustomplot.h:1990
LayerInsertMode
Definition qcustomplot.h:1950
@ limBelow
Layer is inserted below other layer.
Definition qcustomplot.h:1951
@ limAbove
Layer is inserted above other layer.
Definition qcustomplot.h:1953
bool savePng(const QString &fileName, int width=0, int height=0, double scale=1.0, int quality=-1)
void setNoAntialiasingOnDrag(bool enabled)
QList< QCPAbstractItem * > mItems
Definition qcustomplot.h:2143
void legendClick(QCPLegend *legend, QCPAbstractLegendItem *item, QMouseEvent *event)
virtual void wheelEvent(QWheelEvent *event)
QList< QCPAxis * > selectedAxes() const
void updateLayerIndices() const
void setBackground(const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding)
Q_SLOT void rescaleAxes(bool onlyVisiblePlottables=false)
void setBackground(const QBrush &brush)
virtual void draw(QCPPainter *painter)
int axisRectCount() const
void setMultiSelectModifier(Qt::KeyboardModifier modifier)
virtual void mouseMoveEvent(QMouseEvent *event)
bool removeGraph(QCPGraph *graph)
friend class QCPAbstractItem
Definition qcustomplot.h:4352
void setPlottingHints(const QCP::PlottingHints &hints)
bool removeGraph(int index)
QCPAxis * xAxis
Definition qcustomplot.h:2105
void mouseDoubleClick(QMouseEvent *event)
QCP::PlottingHints mPlottingHints
Definition qcustomplot.h:2155
QCP::AntialiasedElements mAntialiasedElements
Definition qcustomplot.h:2145
bool addItem(QCPAbstractItem *item)
QPointer< QCPLayoutElement > mMouseEventElement
Definition qcustomplot.h:2161
QPixmap toPixmap(int width=0, int height=0, double scale=1.0)
bool backgroundScaled() const
Definition qcustomplot.h:1982
QList< QCPAbstractPlottable * > mPlottables
Definition qcustomplot.h:2140
bool mAutoAddPlottableToLegend
Definition qcustomplot.h:2139
bool mReplotting
Definition qcustomplot.h:2162
bool saveRastered(const QString &fileName, int width, int height, double scale, const char *format, int quality=-1)
Q_SLOT void replot(QCustomPlot::RefreshPriority refreshPriority=QCustomPlot::rpHint)
bool addPlottable(QCPAbstractPlottable *plottable)
Qt::AspectRatioMode mBackgroundScaledMode
Definition qcustomplot.h:2153
QCPLayoutGrid * mPlotLayout
Definition qcustomplot.h:2138
int mSelectionTolerance
Definition qcustomplot.h:2147
bool removeItem(int index)
void axisClick(QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event)
QCPAbstractItem * item(int index) const
QCPAbstractItem * itemAt(const QPointF &pos, bool onlySelectable=false) const
QRect mViewport
Definition qcustomplot.h:2137
virtual void resizeEvent(QResizeEvent *event)
bool autoAddPlottableToLegend() const
Definition qcustomplot.h:1993
QPoint mMousePressPos
Definition qcustomplot.h:2160
QCP::PlottingHints plottingHints() const
Definition qcustomplot.h:1997
void mouseWheel(QWheelEvent *event)
void itemDoubleClick(QCPAbstractItem *item, QMouseEvent *event)
bool mNoAntialiasingOnDrag
Definition qcustomplot.h:2148
QList< QCPLegend * > selectedLegends() const
void mouseRelease(QMouseEvent *event)
bool noAntialiasingOnDrag() const
Definition qcustomplot.h:1996
virtual void axisRemoved(QCPAxis *axis)
void mousePress(QMouseEvent *event)
QCPLayer * layer(int index) const
QCPAbstractPlottable * plottableAt(const QPointF &pos, bool onlySelectable=false) const
QList< QCPLayer * > mLayers
Definition qcustomplot.h:2144
friend class QCPGraph
Definition qcustomplot.h:4351
QList< QCPGraph * > selectedGraphs() const
void titleDoubleClick(QMouseEvent *event, QCPPlotTitle *title)
bool addLayer(const QString &name, QCPLayer *otherLayer=0, LayerInsertMode insertMode=limAbove)
QCP::Interactions mInteractions
Definition qcustomplot.h:2146
void setAutoAddPlottableToLegend(bool on)
QCPAxis * xAxis2
Definition qcustomplot.h:2105
QCPAbstractPlottable * plottable()
bool removeItem(QCPAbstractItem *item)
void setNotAntialiasedElements(const QCP::AntialiasedElements ¬AntialiasedElements)
void itemClick(QCPAbstractItem *item, QMouseEvent *event)
QCPAxisRect * axisRect(int index=0) const
bool moveLayer(QCPLayer *layer, QCPLayer *otherLayer, LayerInsertMode insertMode=limAbove)
QPixmap mBackgroundPixmap
Definition qcustomplot.h:2150
void setAntialiasedElement(QCP::AntialiasedElement antialiasedElement, bool enabled=true)
bool hasItem(QCPAbstractItem *item) const
QCPAxis * yAxis2
Definition qcustomplot.h:2105
QCPLayoutGrid * plotLayout() const
Definition qcustomplot.h:1986
void plottableDoubleClick(QCPAbstractPlottable *plottable, QMouseEvent *event)
bool removePlottable(QCPAbstractPlottable *plottable)
void setAntialiasedElements(const QCP::AntialiasedElements &antialiasedElements)
QCPAxis * yAxis
Definition qcustomplot.h:2105
Qt::AspectRatioMode backgroundScaledMode() const
Definition qcustomplot.h:1983
QCPLayoutElement * layoutElementAt(const QPointF &pos) const
bool removePlottable(int index)
void setNotAntialiasedElement(QCP::AntialiasedElement notAntialiasedElement, bool enabled=true)
QList< QCPAbstractItem * > selectedItems() const
Definition qcustomplot.h:94
bool isInvalidData(double value)
Definition qcustomplot.h:234
int getMarginValue(const QMargins &margins, QCP::MarginSide side)
Definition qcustomplot.h:282
Interaction
Definition qcustomplot.h:195
@ iRangeDrag
Definition qcustomplot.h:196
@ iSelectItems
Definition qcustomplot.h:218
@ iSelectLegend
Definition qcustomplot.h:215
@ iSelectOther
Definition qcustomplot.h:221
@ iSelectAxes
Definition qcustomplot.h:212
@ iSelectPlottables
Definition qcustomplot.h:208
@ iMultiSelect
Definition qcustomplot.h:204
@ iRangeZoom
Definition qcustomplot.h:200
PlottingHint
Definition qcustomplot.h:166
@ phFastPolylines
Definition qcustomplot.h:169
@ phForceRepaint
Definition qcustomplot.h:175
@ phCacheLabels
Definition qcustomplot.h:183
@ phNone
0x000 No hints are set
Definition qcustomplot.h:167
MarginSide
Definition qcustomplot.h:100
@ msTop
0x04 top margin
Definition qcustomplot.h:105
@ msNone
0x00 no margin
Definition qcustomplot.h:111
@ msRight
0x02 right margin
Definition qcustomplot.h:103
@ msAll
0xFF all margins
Definition qcustomplot.h:109
@ msLeft
0x01 left margin
Definition qcustomplot.h:101
@ msBottom
0x08 bottom margin
Definition qcustomplot.h:107
AntialiasedElement
Definition qcustomplot.h:126
@ aeAxes
0x0001 Axis base line and tick marks
Definition qcustomplot.h:127
@ aeItems
0x0040 Main lines of items
Definition qcustomplot.h:141
@ aeScatters
Definition qcustomplot.h:143
@ aeLegendItems
0x0010 Legend items
Definition qcustomplot.h:135
@ aePlottables
0x0020 Main lines of plottables
Definition qcustomplot.h:137
@ aeNone
0x0000 No elements
Definition qcustomplot.h:156
@ aeSubGrid
0x0004 Sub grid lines
Definition qcustomplot.h:131
@ aeFills
Definition qcustomplot.h:148
@ aeErrorBars
0x0100 Error bars
Definition qcustomplot.h:146
@ aeAll
0xFFFF All elements
Definition qcustomplot.h:154
@ aeGrid
0x0002 Grid lines
Definition qcustomplot.h:129
@ aeZeroLine
0x0400 Zero-lines, see QCPGrid::setZeroLinePen
Definition qcustomplot.h:151
@ aeLegend
0x0008 Legend box
Definition qcustomplot.h:133
void setMarginValue(QMargins &margins, QCP::MarginSide side, int value)
Definition qcustomplot.h:253
QMapIterator< double, QCPData > QCPDataMapIterator
Definition qcustomplot.h:2830
QMap< double, QCPData > QCPDataMap
Definition qcustomplot.h:2829
QMap< double, QCPCurveData > QCPCurveDataMap
Definition qcustomplot.h:3053
QMutableMapIterator< double, QCPData > QCPDataMutableMapIterator
Definition qcustomplot.h:2831
const QCPRange operator/(const QCPRange &range, double value)
Definition qcustomplot.h:720
const QCPRange operator*(const QCPRange &range, double value)
Definition qcustomplot.h:702
QMutableMapIterator< double, QCPBarData > QCPBarDataMutableMapIterator
Definition qcustomplot.h:3239
const QCPRange operator-(const QCPRange &range, double value)
Definition qcustomplot.h:693
QMap< double, QCPFinancialData > QCPFinancialDataMap
Definition qcustomplot.h:3571
QMap< double, QCPBarData > QCPBarDataMap
Definition qcustomplot.h:3237
QMutableMapIterator< double, QCPFinancialData > QCPFinancialDataMutableMapIterator
Definition qcustomplot.h:3574
QMapIterator< double, QCPFinancialData > QCPFinancialDataMapIterator
Definition qcustomplot.h:3572
QMutableMapIterator< double, QCPCurveData > QCPCurveDataMutableMapIterator
Definition qcustomplot.h:3056
QMapIterator< double, QCPBarData > QCPBarDataMapIterator
Definition qcustomplot.h:3238
Q_DECLARE_TYPEINFO(QCPScatterStyle, Q_MOVABLE_TYPE)
QMapIterator< double, QCPCurveData > QCPCurveDataMapIterator
Definition qcustomplot.h:3054
const QCPRange operator+(const QCPRange &range, double value)
Definition qcustomplot.h:675
QMap< double, QCPData > QCPDataMap
Definition qcustomplot.h:2829
QMap< double, QCPCurveData > QCPCurveDataMap
Definition qcustomplot.h:3053
#define QCP_LIB_DECL
Definition qcustomplot.h:87
QMap< double, QCPFinancialData > QCPFinancialDataMap
Definition qcustomplot.h:3571
QMap< double, QCPBarData > QCPBarDataMap
Definition qcustomplot.h:3237
Definition qcustomplot.h:1566
QPixmap pixmap
Definition qcustomplot.h:1568
QPointF offset
Definition qcustomplot.h:1567
Definition qcustomplot.h:1570
QString expPart
Definition qcustomplot.h:1571
QFont baseFont
Definition qcustomplot.h:1573
QRect expBounds
Definition qcustomplot.h:1572
QRect rotatedTotalBounds
Definition qcustomplot.h:1572
QRect baseBounds
Definition qcustomplot.h:1572
QString basePart
Definition qcustomplot.h:1571
QFont expFont
Definition qcustomplot.h:1573
QRect totalBounds
Definition qcustomplot.h:1572