36 #include <QMouseEvent>
39 #include <QPaintEvent>
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();
300 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::AntialiasedElements)
301 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::PlottingHints)
302 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::MarginSides)
303 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::Interactions)
375 const QBrush &brush = Qt::NoBrush,
double size = 6);
378 double size()
const {
return mSize; }
380 QPen
pen()
const {
return mPen; }
381 QBrush
brush()
const {
return mBrush; }
382 QPixmap
pixmap()
const {
return mPixmap; }
394 bool isNone()
const {
return mShape == ssNone; }
439 Q_FLAGS(PainterMode PainterModes)
440 Q_DECLARE_FLAGS(PainterModes, PainterMode)
447 bool antialiasing()
const {
return testRenderHint(QPainter::Antialiasing); }
448 PainterModes
modes()
const {
return mModes; }
461 void drawLine(
const QPointF &p1,
const QPointF &p2) {
462 drawLine(QLineF(p1, p2));
478 Q_DECLARE_OPERATORS_FOR_FLAGS(QCPPainter::PainterModes)
483 Q_PROPERTY(
QCustomPlot *parentPlot READ parentPlot)
484 Q_PROPERTY(QString name READ name)
485 Q_PROPERTY(
int index READ index)
486 Q_PROPERTY(QList<QCPLayerable *> children READ children)
487 Q_PROPERTY(
bool visible READ visible WRITE setVisible)
495 QString
name()
const {
return mName; }
496 int index()
const {
return mIndex; }
497 QList<QCPLayerable *>
children()
const {
return mChildren; }
525 Q_PROPERTY(
bool visible READ visible WRITE setVisible)
526 Q_PROPERTY(
QCustomPlot *parentPlot READ parentPlot)
527 Q_PROPERTY(
QCPLayerable *parentLayerable READ parentLayerable)
528 Q_PROPERTY(
QCPLayer *layer READ layer WRITE setLayer NOTIFY layerChanged)
529 Q_PROPERTY(
bool antialiased READ antialiased WRITE setAntialiased)
550 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
551 QVariant *details = 0)
const;
575 const QVariant &details,
576 bool *selectionStateChanged);
601 return lower == other.
lower && upper == other.
upper;
734 return mChildren.value(side);
742 QHash<QCP::MarginSide, QList<QCPLayoutElement *> >
mChildren;
758 Q_PROPERTY(
QCPLayout *layout READ layout)
759 Q_PROPERTY(QRect rect READ rect)
760 Q_PROPERTY(QRect outerRect READ outerRect WRITE setOuterRect)
761 Q_PROPERTY(QMargins margins READ margins WRITE setMargins)
763 QMargins minimumMargins READ minimumMargins WRITE setMinimumMargins)
764 Q_PROPERTY(QSize minimumSize READ minimumSize WRITE setMinimumSize)
765 Q_PROPERTY(QSize maximumSize READ maximumSize WRITE setMaximumSize)
788 QRect
rect()
const {
return mRect; }
799 return mMarginGroups;
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;
897 Q_PROPERTY(
int rowCount READ rowCount)
898 Q_PROPERTY(
int columnCount READ columnCount)
899 Q_PROPERTY(QList<double> columnStretchFactors READ columnStretchFactors WRITE
900 setColumnStretchFactors)
901 Q_PROPERTY(QList<double> rowStretchFactors READ rowStretchFactors WRITE
902 setRowStretchFactors)
903 Q_PROPERTY(
int columnSpacing READ columnSpacing WRITE setColumnSpacing)
904 Q_PROPERTY(
int rowSpacing READ rowSpacing WRITE setRowSpacing)
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;
1058 bool inverted =
false);
1076 const QVector2D &dir)
const;
1090 Q_PROPERTY(
bool subGridVisible READ subGridVisible WRITE setSubGridVisible)
1091 Q_PROPERTY(
bool antialiasedSubGrid READ antialiasedSubGrid WRITE
1092 setAntialiasedSubGrid)
1093 Q_PROPERTY(
bool antialiasedZeroLine READ antialiasedZeroLine WRITE
1094 setAntialiasedZeroLine)
1095 Q_PROPERTY(QPen pen READ pen WRITE setPen)
1096 Q_PROPERTY(QPen subGridPen READ subGridPen WRITE setSubGridPen)
1097 Q_PROPERTY(QPen zeroLinePen READ zeroLinePen WRITE setZeroLinePen)
1106 QPen
pen()
const {
return mPen; }
1122 QPen
mPen, mSubGridPen, mZeroLinePen;
1140 Q_PROPERTY(
AxisType axisType READ axisType)
1142 Q_PROPERTY(
ScaleType scaleType READ scaleType WRITE setScaleType NOTIFY
1144 Q_PROPERTY(
double scaleLogBase READ scaleLogBase WRITE setScaleLogBase)
1145 Q_PROPERTY(
QCPRange range READ range WRITE setRange NOTIFY rangeChanged)
1146 Q_PROPERTY(
bool rangeReversed READ rangeReversed WRITE setRangeReversed)
1147 Q_PROPERTY(
bool autoTicks READ autoTicks WRITE setAutoTicks)
1148 Q_PROPERTY(
int autoTickCount READ autoTickCount WRITE setAutoTickCount)
1149 Q_PROPERTY(
bool autoTickLabels READ autoTickLabels WRITE setAutoTickLabels)
1150 Q_PROPERTY(
bool autoTickStep READ autoTickStep WRITE setAutoTickStep)
1151 Q_PROPERTY(
bool autoSubTicks READ autoSubTicks WRITE setAutoSubTicks)
1152 Q_PROPERTY(
bool ticks READ ticks WRITE setTicks)
1153 Q_PROPERTY(
bool tickLabels READ tickLabels WRITE setTickLabels)
1155 int tickLabelPadding READ tickLabelPadding WRITE setTickLabelPadding)
1156 Q_PROPERTY(
LabelType tickLabelType READ tickLabelType WRITE setTickLabelType)
1157 Q_PROPERTY(QFont tickLabelFont READ tickLabelFont WRITE setTickLabelFont)
1158 Q_PROPERTY(QColor tickLabelColor READ tickLabelColor WRITE setTickLabelColor)
1159 Q_PROPERTY(
double tickLabelRotation READ tickLabelRotation WRITE
1160 setTickLabelRotation)
1161 Q_PROPERTY(
LabelSide tickLabelSide READ tickLabelSide WRITE setTickLabelSide)
1162 Q_PROPERTY(QString dateTimeFormat READ dateTimeFormat WRITE setDateTimeFormat)
1163 Q_PROPERTY(Qt::TimeSpec dateTimeSpec READ dateTimeSpec WRITE setDateTimeSpec)
1164 Q_PROPERTY(QString numberFormat READ numberFormat WRITE setNumberFormat)
1165 Q_PROPERTY(
int numberPrecision READ numberPrecision WRITE setNumberPrecision)
1166 Q_PROPERTY(
double tickStep READ tickStep WRITE setTickStep)
1167 Q_PROPERTY(QVector<double> tickVector READ tickVector WRITE setTickVector)
1168 Q_PROPERTY(QVector<QString> tickVectorLabels READ tickVectorLabels WRITE
1169 setTickVectorLabels)
1170 Q_PROPERTY(
int tickLengthIn READ tickLengthIn WRITE setTickLengthIn)
1171 Q_PROPERTY(
int tickLengthOut READ tickLengthOut WRITE setTickLengthOut)
1172 Q_PROPERTY(
int subTickCount READ subTickCount WRITE setSubTickCount)
1173 Q_PROPERTY(
int subTickLengthIn READ subTickLengthIn WRITE setSubTickLengthIn)
1175 int subTickLengthOut READ subTickLengthOut WRITE setSubTickLengthOut)
1176 Q_PROPERTY(QPen basePen READ basePen WRITE setBasePen)
1177 Q_PROPERTY(QPen tickPen READ tickPen WRITE setTickPen)
1178 Q_PROPERTY(QPen subTickPen READ subTickPen WRITE setSubTickPen)
1179 Q_PROPERTY(QFont labelFont READ labelFont WRITE setLabelFont)
1180 Q_PROPERTY(QColor labelColor READ labelColor WRITE setLabelColor)
1181 Q_PROPERTY(QString label READ label WRITE setLabel)
1182 Q_PROPERTY(
int labelPadding READ labelPadding WRITE setLabelPadding)
1183 Q_PROPERTY(
int padding READ padding WRITE setPadding)
1184 Q_PROPERTY(
int offset READ offset WRITE setOffset)
1185 Q_PROPERTY(SelectableParts selectedParts READ selectedParts WRITE
1186 setSelectedParts NOTIFY selectionChanged)
1187 Q_PROPERTY(SelectableParts selectableParts READ selectableParts WRITE
1188 setSelectableParts NOTIFY selectableChanged)
1189 Q_PROPERTY(QFont selectedTickLabelFont READ selectedTickLabelFont WRITE
1190 setSelectedTickLabelFont)
1192 QFont selectedLabelFont READ selectedLabelFont WRITE setSelectedLabelFont)
1193 Q_PROPERTY(QColor selectedTickLabelColor READ selectedTickLabelColor WRITE
1194 setSelectedTickLabelColor)
1195 Q_PROPERTY(QColor selectedLabelColor READ selectedLabelColor WRITE
1196 setSelectedLabelColor)
1197 Q_PROPERTY(QPen selectedBasePen READ selectedBasePen WRITE setSelectedBasePen)
1198 Q_PROPERTY(QPen selectedTickPen READ selectedTickPen WRITE setSelectedTickPen)
1199 Q_PROPERTY(QPen selectedSubTickPen READ selectedSubTickPen WRITE
1200 setSelectedSubTickPen)
1201 Q_PROPERTY(
QCPLineEnding lowerEnding READ lowerEnding WRITE setLowerEnding)
1202 Q_PROPERTY(
QCPLineEnding upperEnding READ upperEnding WRITE setUpperEnding)
1203 Q_PROPERTY(
QCPGrid *grid READ grid)
1224 Q_FLAGS(AxisType AxisTypes)
1225 Q_DECLARE_FLAGS(AxisTypes, AxisType)
1276 spTickLabels = 0x002
1281 Q_FLAGS(SelectablePart SelectableParts)
1282 Q_DECLARE_FLAGS(SelectableParts, SelectablePart)
1324 QString
label()
const {
return mLabel; }
1346 void setRange(
double position,
double size, Qt::AlignmentFlag alignment);
1394 const QCPAxis::SelectableParts &selectableParts);
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);
1519 Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPAxis::SelectableParts)
1520 Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPAxis::AxisTypes)
1584 int distanceToAxis,
const QString &text,
1585 QSize *tickLabelsSize);
1589 const QString &text)
const;
1592 QSize *tickLabelsSize)
const;
1598 Q_PROPERTY(QString name READ name WRITE setName)
1599 Q_PROPERTY(
bool antialiasedFill READ antialiasedFill WRITE setAntialiasedFill)
1600 Q_PROPERTY(
bool antialiasedScatters READ antialiasedScatters WRITE
1601 setAntialiasedScatters)
1602 Q_PROPERTY(
bool antialiasedErrorBars READ antialiasedErrorBars WRITE
1603 setAntialiasedErrorBars)
1604 Q_PROPERTY(QPen pen READ pen WRITE setPen)
1605 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
1606 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
1607 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
1608 Q_PROPERTY(
QCPAxis *keyAxis READ keyAxis WRITE setKeyAxis)
1609 Q_PROPERTY(
QCPAxis *valueAxis READ valueAxis WRITE setValueAxis)
1610 Q_PROPERTY(
bool selectable READ selectable WRITE setSelectable NOTIFY
1613 bool selected READ selected WRITE setSelected NOTIFY selectionChanged)
1619 QString
name()
const {
return mName; }
1623 QPen
pen()
const {
return mPen; }
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);
1731 QString
name()
const {
return mName; }
1798 const QString name);
1808 double key()
const {
return mKey; }
1810 QPointF
coords()
const {
return QPointF(mKey, mValue); }
1821 bool keepPixelPosition =
false);
1823 bool keepPixelPosition =
false);
1825 bool keepPixelPosition =
false);
1850 Q_PROPERTY(
bool clipToAxisRect READ clipToAxisRect WRITE setClipToAxisRect)
1851 Q_PROPERTY(
QCPAxisRect *clipAxisRect READ clipAxisRect WRITE setClipAxisRect)
1852 Q_PROPERTY(
bool selectable READ selectable WRITE setSelectable NOTIFY
1855 bool selected READ selected WRITE setSelected NOTIFY selectionChanged)
1874 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
1875 QVariant *details = 0)
const = 0;
1878 QList<QCPItemPosition *>
positions()
const {
return mPositions; }
1879 QList<QCPItemAnchor *>
anchors()
const {
return mAnchors; }
1903 const QVariant &details,
1904 bool *selectionStateChanged);
1912 const QPointF &point)
const;
1914 bool filledRect)
const;
1928 Q_PROPERTY(QRect viewport READ viewport WRITE setViewport)
1929 Q_PROPERTY(QPixmap background READ background WRITE setBackground)
1931 bool backgroundScaled READ backgroundScaled WRITE setBackgroundScaled)
1932 Q_PROPERTY(Qt::AspectRatioMode backgroundScaledMode READ backgroundScaledMode
1933 WRITE setBackgroundScaledMode)
1935 Q_PROPERTY(
bool autoAddPlottableToLegend READ autoAddPlottableToLegend WRITE
1936 setAutoAddPlottableToLegend)
1937 Q_PROPERTY(
int selectionTolerance READ selectionTolerance WRITE
1938 setSelectionTolerance)
1939 Q_PROPERTY(
bool noAntialiasingOnDrag READ noAntialiasingOnDrag WRITE
1940 setNoAntialiasingOnDrag)
1941 Q_PROPERTY(Qt::KeyboardModifier multiSelectModifier READ multiSelectModifier
1942 WRITE setMultiSelectModifier)
1955 Q_ENUMS(LayerInsertMode)
1984 return mBackgroundScaledMode;
1988 return mAntialiasedElements;
1991 return mNotAntialiasedElements;
1999 return mMultiSelectModifier;
2006 Qt::AspectRatioMode mode = Qt::KeepAspectRatioByExpanding);
2011 const QCP::AntialiasedElements &antialiasedElements);
2013 bool enabled =
true);
2015 const QCP::AntialiasedElements ¬AntialiasedElements);
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);
2300 Q_PROPERTY(QPixmap background READ background WRITE setBackground)
2302 bool backgroundScaled READ backgroundScaled WRITE setBackgroundScaled)
2303 Q_PROPERTY(Qt::AspectRatioMode backgroundScaledMode READ backgroundScaledMode
2304 WRITE setBackgroundScaledMode)
2305 Q_PROPERTY(Qt::Orientations rangeDrag READ rangeDrag WRITE setRangeDrag)
2306 Q_PROPERTY(Qt::Orientations rangeZoom READ rangeZoom WRITE setRangeZoom)
2316 return mBackgroundScaledMode;
2327 Qt::AspectRatioMode mode = Qt::KeepAspectRatioByExpanding);
2341 QList<QCPAxis *>
axes(QCPAxis::AxisTypes types)
const;
2344 QList<QCPAxis *>
addAxes(QCPAxis::AxisTypes types);
2354 int left()
const {
return mRect.left(); }
2355 int right()
const {
return mRect.right(); }
2356 int top()
const {
return mRect.top(); }
2357 int bottom()
const {
return mRect.bottom(); }
2358 int width()
const {
return mRect.width(); }
2359 int height()
const {
return mRect.height(); }
2360 QSize
size()
const {
return mRect.size(); }
2361 QPoint
topLeft()
const {
return mRect.topLeft(); }
2365 QPoint
center()
const {
return mRect.center(); }
2369 virtual QList<QCPLayoutElement *>
elements(
bool recursive)
const;
2388 QHash<QCPAxis::AxisType, QList<QCPAxis *> >
mAxes;
2413 Q_PROPERTY(
QCPLegend *parentLegend READ parentLegend)
2414 Q_PROPERTY(QFont font READ font WRITE setFont)
2415 Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor)
2416 Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont)
2417 Q_PROPERTY(QColor selectedTextColor READ selectedTextColor WRITE
2418 setSelectedTextColor)
2419 Q_PROPERTY(
bool selectable READ selectable WRITE setSelectable NOTIFY
2422 bool selected READ selected WRITE setSelected NOTIFY selectableChanged)
2429 QFont
font()
const {
return mFont; }
2445 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2446 QVariant *details = 0)
const;
2468 const QVariant &details,
2469 bool *selectionStateChanged);
2503 Q_PROPERTY(QPen borderPen READ borderPen WRITE setBorderPen)
2504 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
2505 Q_PROPERTY(QFont font READ font WRITE setFont)
2506 Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor)
2507 Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize)
2508 Q_PROPERTY(
int iconTextPadding READ iconTextPadding WRITE setIconTextPadding)
2509 Q_PROPERTY(QPen iconBorderPen READ iconBorderPen WRITE setIconBorderPen)
2510 Q_PROPERTY(SelectableParts selectableParts READ selectableParts WRITE
2511 setSelectableParts NOTIFY selectionChanged)
2512 Q_PROPERTY(SelectableParts selectedParts READ selectedParts WRITE
2513 setSelectedParts NOTIFY selectableChanged)
2515 QPen selectedBorderPen READ selectedBorderPen WRITE setSelectedBorderPen)
2516 Q_PROPERTY(QPen selectedIconBorderPen READ selectedIconBorderPen WRITE
2517 setSelectedIconBorderPen)
2518 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
2519 Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont)
2520 Q_PROPERTY(QColor selectedTextColor READ selectedTextColor WRITE
2521 setSelectedTextColor)
2537 Q_FLAGS(SelectablePart SelectableParts)
2538 Q_DECLARE_FLAGS(SelectableParts, SelectablePart)
2544 QPen borderPen()
const {
return mBorderPen; }
2546 QFont
font()
const {
return mFont; }
2577 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2578 QVariant *details = 0)
const;
2618 const QVariant &details,
2619 bool *selectionStateChanged);
2632 Q_DECLARE_OPERATORS_FOR_FLAGS(
QCPLegend::SelectableParts)
2638 Q_PROPERTY(QString text READ text WRITE setText)
2639 Q_PROPERTY(QFont font READ font WRITE setFont)
2640 Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor)
2641 Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont)
2642 Q_PROPERTY(QColor selectedTextColor READ selectedTextColor WRITE
2643 setSelectedTextColor)
2644 Q_PROPERTY(
bool selectable READ selectable WRITE setSelectable NOTIFY
2647 bool selected READ selected WRITE setSelected NOTIFY selectionChanged)
2654 QString
text()
const {
return mText; }
2655 QFont
font()
const {
return mFont; }
2672 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
2673 QVariant *details = 0)
const;
2696 const QVariant &details,
2697 bool *selectionStateChanged);
2736 Q_PROPERTY(
QCPRange dataRange READ dataRange WRITE setDataRange NOTIFY
2739 setDataScaleType NOTIFY dataScaleTypeChanged)
2740 Q_PROPERTY(
QCPColorGradient gradient READ gradient WRITE setGradient NOTIFY
2742 Q_PROPERTY(QString label READ label WRITE setLabel)
2743 Q_PROPERTY(
int barWidth READ barWidth WRITE setBarWidth)
2744 Q_PROPERTY(
bool rangeDrag READ rangeDrag WRITE setRangeDrag)
2745 Q_PROPERTY(
bool rangeZoom READ rangeZoom WRITE setRangeZoom)
2836 Q_PROPERTY(
LineStyle lineStyle READ lineStyle WRITE setLineStyle)
2839 Q_PROPERTY(
ErrorType errorType READ errorType WRITE setErrorType)
2840 Q_PROPERTY(QPen errorPen READ errorPen WRITE setErrorPen)
2841 Q_PROPERTY(
double errorBarSize READ errorBarSize WRITE setErrorBarSize)
2842 Q_PROPERTY(
bool errorBarSkipSymbol READ errorBarSkipSymbol WRITE
2843 setErrorBarSkipSymbol)
2844 Q_PROPERTY(
QCPGraph *channelFillGraph READ channelFillGraph WRITE
2845 setChannelFillGraph)
2847 bool adaptiveSampling READ adaptiveSampling WRITE setAdaptiveSampling)
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;
3055 typedef QMutableMapIterator<double, QCPCurveData>
3063 Q_PROPERTY(
LineStyle lineStyle READ lineStyle WRITE setLineStyle)
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;
3160 Q_PROPERTY(
SpacingType spacingType READ spacingType WRITE setSpacingType)
3161 Q_PROPERTY(
double spacing READ spacing WRITE setSpacing)
3191 QList<QCPBars *>
bars()
const {
return mBars; }
3193 int size()
const {
return mBars.size(); }
3244 Q_PROPERTY(
double width READ width WRITE setWidth)
3245 Q_PROPERTY(
WidthType widthType READ widthType WRITE setWidthType)
3246 Q_PROPERTY(
QCPBarsGroup *barsGroup READ barsGroup WRITE setBarsGroup)
3247 Q_PROPERTY(
double baseValue READ baseValue WRITE setBaseValue)
3248 Q_PROPERTY(
QCPBars *barBelow READ barBelow)
3249 Q_PROPERTY(
QCPBars *barAbove READ barAbove)
3272 double width()
const {
return mWidth; }
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;
3340 Q_PROPERTY(
double key READ key WRITE setKey)
3341 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum)
3342 Q_PROPERTY(
double lowerQuartile READ lowerQuartile WRITE setLowerQuartile)
3343 Q_PROPERTY(
double median READ median WRITE setMedian)
3344 Q_PROPERTY(
double upperQuartile READ upperQuartile WRITE setUpperQuartile)
3345 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum)
3346 Q_PROPERTY(QVector<double> outliers READ outliers WRITE setOutliers)
3347 Q_PROPERTY(
double width READ width WRITE setWidth)
3348 Q_PROPERTY(
double whiskerWidth READ whiskerWidth WRITE setWhiskerWidth)
3349 Q_PROPERTY(QPen whiskerPen READ whiskerPen WRITE setWhiskerPen)
3350 Q_PROPERTY(QPen whiskerBarPen READ whiskerBarPen WRITE setWhiskerBarPen)
3351 Q_PROPERTY(QPen medianPen READ medianPen WRITE setMedianPen)
3359 double key()
const {
return mKey; }
3381 void setData(
double key,
double minimum,
double lowerQuartile,
double median,
3382 double upperQuartile,
double maximum);
3392 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3393 QVariant *details = 0)
const;
3398 double mKey, mMinimum, mLowerQuartile, mMedian, mUpperQuartile, mMaximum;
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;
3476 Q_PROPERTY(
QCPRange dataRange READ dataRange WRITE setDataRange NOTIFY
3479 setDataScaleType NOTIFY dataScaleTypeChanged)
3480 Q_PROPERTY(
QCPColorGradient gradient READ gradient WRITE setGradient NOTIFY
3482 Q_PROPERTY(
bool interpolate READ interpolate WRITE setInterpolate)
3483 Q_PROPERTY(
bool tightBoundary READ tightBoundary WRITE setTightBoundary)
3484 Q_PROPERTY(
QCPColorScale *colorScale READ colorScale WRITE setColorScale)
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;
3573 typedef QMutableMapIterator<double, QCPFinancialData>
3579 Q_PROPERTY(
ChartStyle chartStyle READ chartStyle WRITE setChartStyle)
3580 Q_PROPERTY(
double width READ width WRITE setWidth)
3581 Q_PROPERTY(
bool twoColored READ twoColored WRITE setTwoColored)
3582 Q_PROPERTY(QBrush brushPositive READ brushPositive WRITE setBrushPositive)
3583 Q_PROPERTY(QBrush brushNegative READ brushNegative WRITE setBrushNegative)
3584 Q_PROPERTY(QPen penPositive READ penPositive WRITE setPenPositive)
3585 Q_PROPERTY(QPen penNegative READ penNegative WRITE setPenNegative)
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;
3689 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3690 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3697 QPen
pen()
const {
return mPen; }
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;
3730 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3731 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3740 QPen
pen()
const {
return mPen; }
3752 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3753 QVariant *details = 0)
const;
3768 const QRect &rect)
const;
3775 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3776 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3785 QPen
pen()
const {
return mPen; }
3797 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3798 QVariant *details = 0)
const;
3820 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3821 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3822 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
3823 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
3830 QPen
pen()
const {
return mPen; }
3842 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3843 QVariant *details = 0)
const;
3880 Q_PROPERTY(QColor color READ color WRITE setColor)
3881 Q_PROPERTY(QColor selectedColor READ selectedColor WRITE setSelectedColor)
3882 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3883 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3884 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
3885 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
3886 Q_PROPERTY(QFont font READ font WRITE setFont)
3887 Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont)
3888 Q_PROPERTY(QString text READ text WRITE setText)
3889 Q_PROPERTY(Qt::Alignment positionAlignment READ positionAlignment WRITE
3890 setPositionAlignment)
3892 Qt::Alignment textAlignment READ textAlignment WRITE setTextAlignment)
3893 Q_PROPERTY(
double rotation READ rotation WRITE setRotation)
3894 Q_PROPERTY(QMargins padding READ padding WRITE setPadding)
3903 QPen
pen()
const {
return mPen; }
3907 QFont
font()
const {
return mFont; }
3909 QString
text()
const {
return mText; }
3931 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
3932 QVariant *details = 0)
const;
3973 Qt::Alignment positionAlignment)
const;
3983 Q_PROPERTY(QPen pen READ pen WRITE setPen)
3984 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
3985 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
3986 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
3993 QPen
pen()
const {
return mPen; }
4005 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4006 QVariant *details = 0)
const;
4049 Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
4050 Q_PROPERTY(
bool scaled READ scaled WRITE setScaled)
4051 Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode)
4052 Q_PROPERTY(Qt::TransformationMode transformationMode READ transformationMode)
4053 Q_PROPERTY(QPen pen READ pen WRITE setPen)
4054 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
4065 return mTransformationMode;
4067 QPen
pen()
const {
return mPen; }
4073 bool scaled, Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio,
4074 Qt::TransformationMode transformationMode = Qt::SmoothTransformation);
4079 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4080 QVariant *details = 0)
const;
4116 bool flipVert =
false);
4124 Q_PROPERTY(QPen pen READ pen WRITE setPen)
4125 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
4126 Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
4127 Q_PROPERTY(QBrush selectedBrush READ selectedBrush WRITE setSelectedBrush)
4128 Q_PROPERTY(
double size READ size WRITE setSize)
4129 Q_PROPERTY(
TracerStyle style READ style WRITE setStyle)
4130 Q_PROPERTY(
QCPGraph *graph READ graph WRITE setGraph)
4131 Q_PROPERTY(
double graphKey READ graphKey WRITE setGraphKey)
4132 Q_PROPERTY(
bool interpolating READ interpolating WRITE setInterpolating)
4152 Q_ENUMS(TracerStyle)
4158 QPen pen()
const {
return mPen; }
4162 double size()
const {
return mSize; }
4180 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4181 QVariant *details = 0)
const;
4209 Q_PROPERTY(QPen pen READ pen WRITE setPen)
4210 Q_PROPERTY(QPen selectedPen READ selectedPen WRITE setSelectedPen)
4211 Q_PROPERTY(
double length READ length WRITE setLength)
4212 Q_PROPERTY(
BracketStyle style READ style WRITE setStyle)
4230 QPen
pen()
const {
return mPen; }
4242 virtual double selectTest(
const QPointF &pos,
bool onlySelectable,
4243 QVariant *details = 0)
const;
Definition: qcustomplot.h:1847
QList< QCPItemPosition * > positions() const
Definition: qcustomplot.h:1878
virtual void deselectEvent(bool *selectionStateChanged)
virtual void applyDefaultAntialiasingHint(QCPPainter *painter) const
virtual QPointF anchorPixelPoint(int anchorId) 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
QList< QCPItemAnchor * > anchors() const
Definition: qcustomplot.h:1879
void setClipToAxisRect(bool clip)
QList< QCPItemPosition * > mPositions
Definition: qcustomplot.h:1892
bool clipToAxisRect() const
Definition: qcustomplot.h:1862
void selectableChanged(bool selectable)
virtual QCP::Interaction selectionCategory() const
void setClipAxisRect(QCPAxisRect *rect)
QCPAxisRect * clipAxisRect() const
bool hasAnchor(const QString &name) const
QCPItemPosition * position(const QString &name) const
double distSqrToLine(const QPointF &start, const QPointF &end, const QPointF &point) const
QCPItemAnchor * createAnchor(const QString &name, int anchorId)
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)
QCPItemPosition * createPosition(const QString &name)
Q_SLOT void setSelectable(bool selectable)
QCPItemAnchor * anchor(const QString &name) const
bool mClipToAxisRect
Definition: qcustomplot.h:1890
bool mSelectable
Definition: qcustomplot.h:1894
bool selectable() const
Definition: qcustomplot.h:1864
virtual ~QCPAbstractItem()
virtual void draw(QCPPainter *painter)=0
virtual QRect clipRect() const
Definition: qcustomplot.h:2410
virtual QCP::Interaction selectionCategory() const
QColor selectedTextColor() const
Definition: qcustomplot.h:2432
QCPLegend * parentLegend() const
Definition: qcustomplot.h:2428
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
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
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
bool antialiasedFill() const
Definition: qcustomplot.h:1620
void applyErrorBarsAntialiasingHint(QCPPainter *painter) const
void setAntialiasedFill(bool enabled)
bool selected() const
Definition: qcustomplot.h:1630
void rescaleAxes(bool onlyEnlarge=false) const
virtual bool removeFromLegend() const
Q_SLOT void setSelected(bool selected)
void pixelsToCoords(const QPointF &pixelPos, double &key, double &value) const
QCPAxis * keyAxis() const
Definition: qcustomplot.h:1627
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)
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
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)
void setKeyAxis(QCPAxis *axis)
QBrush brush() const
Definition: qcustomplot.h:1625
void applyFillAntialiasingHint(QCPPainter *painter) const
void rescaleValueAxis(bool onlyEnlarge=false) const
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
virtual void selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
QCPAxis * valueAxis() const
Definition: qcustomplot.h:1628
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
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
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
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
QCache< QString, CachedLabel > mLabelCache
Definition: qcustomplot.h:1578
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
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
QPoint mDragStart
Definition: qcustomplot.h:2386
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
QCPAxis * rangeDragAxis(Qt::Orientation orientation)
virtual void wheelEvent(QWheelEvent *event)
QList< QCPAbstractItem * > items() const
virtual int calculateAutoMargin(QCP::MarginSide side)
virtual QList< QCPLayoutElement * > elements(bool recursive) const
int width() const
Definition: qcustomplot.h:2358
void setBackground(const QBrush &brush)
QCPAxis * rangeZoomAxis(Qt::Orientation orientation)
QPoint bottomRight() const
Definition: qcustomplot.h:2364
QPixmap mBackgroundPixmap
Definition: qcustomplot.h:2374
QList< QCPAxis * > axes(QCPAxis::AxisTypes types) const
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
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)
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)
void setRangeZoomAxes(QCPAxis *horizontal, QCPAxis *vertical)
virtual void draw(QCPPainter *painter)
QCPAxis * axis(QCPAxis::AxisType type, int index=0) const
virtual void mousePressEvent(QMouseEvent *event)
QList< QCPGraph * > graphs() const
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)
QCPAxis * addAxis(QCPAxis::AxisType type, QCPAxis *axis=0)
void setBackground(const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding)
QList< QCPAxis * > axes() const
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
QList< QCPAxis * > addAxes(QCPAxis::AxisTypes types)
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)
QList< QCPAbstractPlottable * > plottables() const
void setRangeZoomFactor(double factor)
virtual void mouseMoveEvent(QMouseEvent *event)
QCPLayoutInset * mInsetLayout
Definition: qcustomplot.h:2378
QPointer< QCPAxis > mRangeZoomVertAxis
Definition: qcustomplot.h:2381
QCPLayoutInset * insetLayout() const
Definition: qcustomplot.h:2346
void setBackground(const QPixmap &pm)
int left() const
Definition: qcustomplot.h:2354
Definition: qcustomplot.h:1137
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)
QVector< QString > tickVectorLabels() const
Definition: qcustomplot.h:1313
void setTickLabelRotation(double degrees)
SelectableParts selectableParts() const
Definition: qcustomplot.h:1329
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
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)
QList< QCPAbstractItem * > items() const
QString label() const
Definition: qcustomplot.h:1324
void setLabel(const QString &str)
void scaleTypeChanged(QCPAxis::ScaleType scaleType)
ScaleType
Definition: qcustomplot.h:1259
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
int autoTickCount() const
Definition: qcustomplot.h:1295
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
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)
QVector< double > tickVector() const
Definition: qcustomplot.h:1312
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)
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
QCPGrid * grid() const
Definition: qcustomplot.h:1339
void setAutoTickCount(int approximateCount)
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
void setTickVectorLabels(const QVector< QString > &vec)
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
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
void rangeChanged(const QCPRange &newRange, const QCPRange &oldRange)
static AxisType marginSideToAxisType(QCP::MarginSide side)
QPen getSubTickPen() const
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
int mHighestVisibleTick
Definition: qcustomplot.h:1477
double mScaleLogBase
Definition: qcustomplot.h:1472
SelectablePart
Definition: qcustomplot.h:1271
const QCPRange range() const
Definition: qcustomplot.h:1292
void setSubTickLengthIn(int inside)
QList< QCPAbstractPlottable * > plottables() const
Q_SLOT void setScaleType(QCPAxis::ScaleType 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
QPen mBasePen
Definition: qcustomplot.h:1439
ScaleType mScaleType
Definition: qcustomplot.h:1471
void setTickPen(const QPen &pen)
void setAutoSubTicks(bool on)
AxisType
Definition: qcustomplot.h:1211
bool autoSubTicks() const
Definition: qcustomplot.h:1298
bool tickLabels() const
Definition: qcustomplot.h:1300
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)
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)
QCPAxisRect * axisRect() const
Definition: qcustomplot.h:1289
void setRangeLower(double lower)
QList< QCPGraph * > graphs() const
QPen tickPen() const
Definition: qcustomplot.h:1320
Definition: qcustomplot.h:3222
QCPBarData(double key, double value)
double key
Definition: qcustomplot.h:3226
Definition: qcustomplot.h:3157
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
double mSpacing
Definition: qcustomplot.h:3205
SpacingType mSpacingType
Definition: qcustomplot.h:3204
void registerBars(QCPBars *bars)
void append(QCPBars *bars)
SpacingType spacingType() const
Definition: qcustomplot.h:3183
double keyPixelOffset(const QCPBars *bars, double keyCoord)
QCPBars * bars(int index) const
QList< QCPBars * > bars() const
Definition: qcustomplot.h:3191
QCPBarsGroup(QCustomPlot *parentPlot)
void setSpacing(double spacing)
bool isEmpty() const
Definition: qcustomplot.h:3194
void unregisterBars(QCPBars *bars)
bool contains(QCPBars *bars) const
Definition: qcustomplot.h:3196
QList< QCPBars * > mBars
Definition: qcustomplot.h:3206
Definition: qcustomplot.h:3241
QCPBars * barAbove() const
Definition: qcustomplot.h:3277
double getStackedBaseValue(double key, bool positive) const
void addData(const QCPBarData &data)
QCPBarDataMap * data() const
Definition: qcustomplot.h:3278
static void connectBars(QCPBars *lower, QCPBars *upper)
void addData(const QCPBarDataMap &dataMap)
void removeData(double fromKey, double toKey)
double baseValue() const
Definition: qcustomplot.h:3275
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
WidthType
Definition: qcustomplot.h:3258
void addData(double key, double value)
QPointer< QCPBars > mBarAbove
Definition: qcustomplot.h:3312
void moveBelow(QCPBars *bars)
virtual QCPRange getValueRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
QCPBars * barBelow() const
Definition: qcustomplot.h:3276
double mWidth
Definition: qcustomplot.h:3308
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)
void moveAbove(QCPBars *bars)
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
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)
QMap< double, QColor > colorStops() const
Definition: qcustomplot.h:2264
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
QVector< QRgb > mColorBuffer
Definition: qcustomplot.h:2293
GradientPreset
Definition: qcustomplot.h:2214
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
QCPColorMapData & operator=(const QCPColorMapData &other)
QCPRange mDataBounds
Definition: qcustomplot.h:3467
QCPRange keyRange() const
Definition: qcustomplot.h:3434
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)
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)
Definition: qcustomplot.h:3473
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
void rescaleDataRange(bool recalculateDataBounds=false)
void dataScaleTypeChanged(QCPAxis::ScaleType scaleType)
QCPColorScale * colorScale() const
Definition: qcustomplot.h:3497
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
QCPColorMapData * data() const
Definition: qcustomplot.h:3491
void gradientChanged(QCPColorGradient newGradient)
bool mTightBoundary
Definition: qcustomplot.h:3531
bool mMapImageInvalidated
Definition: qcustomplot.h:3536
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
Definition: qcustomplot.h:2708
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
int mBarWidth
Definition: qcustomplot.h:2790
void rescaleDataRange(bool onlyVisibleMaps)
Q_SLOT void setGradient(const QCPColorGradient &gradient)
QCPRange dataRange() const
Definition: qcustomplot.h:2754
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
QList< QCPColorMap * > colorMaps() const
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
QCPAxis * axis() const
Definition: qcustomplot.h:2752
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 key
Definition: qcustomplot.h:3041
Definition: qcustomplot.h:3058
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
void addData(double t, double key, double value)
virtual void draw(QCPPainter *painter)
LineStyle
Definition: qcustomplot.h:3070
void addData(const QVector< double > &ts, const QVector< double > &keys, const QVector< double > &values)
virtual void drawScatterPlot(QCPPainter *painter, const QVector< QPointF > *pointData) 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)
QCPCurveDataMap * data() const
Definition: qcustomplot.h:3079
bool getTraverse(double prevKey, double prevValue, double key, double value, double rectLeft, double rectTop, double rectRight, double rectBottom, QPointF &crossA, QPointF &crossB) 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 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 keyErrorMinus
Definition: qcustomplot.h:2817
Definition: qcustomplot.h:3555
QCPFinancialData(double key, double open, double high, double low, double close)
double close
Definition: qcustomplot.h:3560
Definition: qcustomplot.h:3576
void removeData(double fromKey, double toKey)
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void removeDataBefore(double key)
ChartStyle
Definition: qcustomplot.h:3593
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)
ChartStyle chartStyle() const
Definition: qcustomplot.h:3605
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
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)
ChartStyle mChartStyle
Definition: qcustomplot.h:3652
void getVisibleDataBounds(QCPFinancialDataMap::const_iterator &lower, QCPFinancialDataMap::const_iterator &upper) const
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
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
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
QCPDataMap * data() const
Definition: qcustomplot.h:2894
void addData(const QCPData &data)
bool errorBarSkipSymbol() const
Definition: qcustomplot.h:2900
QCPGraph * channelFillGraph() const
Definition: qcustomplot.h:2901
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)
QPointF lowerFillBasePoint(double lowerKey) const
bool mErrorBarSkipSymbol
Definition: qcustomplot.h:2970
ErrorType
Definition: qcustomplot.h:2878
virtual void drawLegendIcon(QCPPainter *painter, const QRectF &rect) const
LineStyle
Definition: qcustomplot.h:2854
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
virtual void draw(QCPPainter *painter)
void removeFillBasePoints(QVector< QPointF > *lineData) const
Definition: qcustomplot.h:1087
QPen mPen
Definition: qcustomplot.h:1122
QPen pen() const
Definition: qcustomplot.h:1106
void setZeroLinePen(const QPen &pen)
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
void setSubGridPen(const QPen &pen)
void setPen(const QPen &pen)
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
Definition: qcustomplot.h:1724
int mAnchorId
Definition: qcustomplot.h:1741
virtual QPointF pixelPoint() const
void removeChildX(QCPItemPosition *pos)
QString mName
Definition: qcustomplot.h:1736
virtual QCPItemPosition * toQCPItemPosition()
Definition: qcustomplot.h:1745
QCPAbstractItem * mParentItem
Definition: qcustomplot.h:1740
QCustomPlot * mParentPlot
Definition: qcustomplot.h:1739
void removeChildY(QCPItemPosition *pos)
QString name() const
Definition: qcustomplot.h:1731
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)
Definition: qcustomplot.h:4206
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
AnchorIndex
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
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
Definition: qcustomplot.h:3772
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
void setTail(const QCPLineEnding &tail)
QCPItemCurve(QCustomPlot *parentPlot)
QPen pen() const
Definition: qcustomplot.h:3785
QCPLineEnding mHead
Definition: qcustomplot.h:3808
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
Definition: qcustomplot.h:3980
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
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
void setBrush(const QBrush &brush)
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
Definition: qcustomplot.h:3727
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
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)
Definition: qcustomplot.h:4046
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
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
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
QCPAxis * valueAxis() const
Definition: qcustomplot.h:1812
QCPItemPosition(QCustomPlot *parentPlot, QCPAbstractItem *parentItem, const QString name)
virtual QPointF pixelPoint() const
double mKey
Definition: qcustomplot.h:1837
virtual QCPItemPosition * toQCPItemPosition()
Definition: qcustomplot.h:1841
QCPItemAnchor * parentAnchorX() const
Definition: qcustomplot.h:1806
QPointer< QCPAxisRect > mAxisRect
Definition: qcustomplot.h:1836
double key() const
Definition: qcustomplot.h:1808
QCPAxis * keyAxis() const
Definition: qcustomplot.h:1811
QCPItemAnchor * parentAnchorY() const
Definition: qcustomplot.h:1807
void setType(PositionType type)
QPointF coords() const
Definition: qcustomplot.h:1810
void setCoords(double key, double value)
PositionType
Definition: qcustomplot.h:1771
void setPixelPoint(const QPointF &pixelPoint)
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
QCPItemAnchor * parentAnchor() const
Definition: qcustomplot.h:1805
PositionType typeY() const
Definition: qcustomplot.h:1804
QCPAxisRect * axisRect() const
virtual ~QCPItemPosition()
Definition: qcustomplot.h:3817
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QCPItemAnchor *const topRight
Definition: qcustomplot.h:3848
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
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
Definition: qcustomplot.h:3686
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
Definition: qcustomplot.h:3877
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
@ 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
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
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 mColor
Definition: qcustomplot.h:3957
QPen selectedPen() const
Definition: qcustomplot.h:3904
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
Definition: qcustomplot.h:4121
void setSelectedBrush(const QBrush &brush)
void setBrush(const QBrush &brush)
TracerStyle
Definition: qcustomplot.h:4141
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)
QBrush mBrush
Definition: qcustomplot.h:4191
void setGraphKey(double key)
void setInterpolating(bool enabled)
QBrush brush() const
Definition: qcustomplot.h:4160
double mGraphKey
Definition: qcustomplot.h:4195
QCPGraph * mGraph
Definition: qcustomplot.h:4194
double graphKey() const
Definition: qcustomplot.h:4165
QCPGraph * graph() const
Definition: qcustomplot.h:4164
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
QPen selectedPen() const
Definition: qcustomplot.h:4159
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
QList< QCPLayerable * > mChildren
Definition: qcustomplot.h:508
int mIndex
Definition: qcustomplot.h:507
bool mVisible
Definition: qcustomplot.h:509
QString name() const
Definition: qcustomplot.h:495
QCustomPlot * parentPlot() const
Definition: qcustomplot.h:494
void addChild(QCPLayerable *layerable, bool prepend)
QCPLayer(QCustomPlot *parentPlot, const QString &layerName)
QList< QCPLayerable * > children() const
Definition: qcustomplot.h:497
QCustomPlot * mParentPlot
Definition: qcustomplot.h:505
QString mName
Definition: qcustomplot.h:506
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
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
bool mAntialiased
Definition: qcustomplot.h:565
QCustomPlot * parentPlot() const
Definition: qcustomplot.h:538
void setAntialiased(bool enabled)
QCPLayer * layer() const
Definition: qcustomplot.h:540
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)
void setParentLayerable(QCPLayerable *parentLayerable)
bool realVisibility() const
bool setLayer(const QString &layerName)
QCPLayer * mLayer
Definition: qcustomplot.h:564
void layerChanged(QCPLayer *newLayer)
QCPLayerable * parentLayerable() const
Definition: qcustomplot.h:539
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
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
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)
void setMarginGroup(QCP::MarginSides sides, QCPMarginGroup *group)
virtual void draw(QCPPainter *painter)
Definition: qcustomplot.h:845
virtual void parentPlotInitialized(QCustomPlot *parentPlot)
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
virtual QList< QCPLayoutElement * > elements(bool recursive) const
void setMaximumSize(const QSize &size)
virtual int calculateAutoMargin(QCP::MarginSide side)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
Definition: qcustomplot.h:838
QHash< QCP::MarginSide, QCPMarginGroup * > marginGroups() const
Definition: qcustomplot.h:798
QCPMarginGroup * marginGroup(QCP::MarginSide side) const
Definition: qcustomplot.h:795
void setMinimumSize(int width, int height)
void setMargins(const QMargins &margins)
virtual QSize maximumSizeHint() const
virtual QSize minimumSizeHint() const
QMargins mMargins
Definition: qcustomplot.h:828
QCPLayout * mParentLayout
Definition: qcustomplot.h:825
void setAutoMargins(QCP::MarginSides sides)
virtual void wheelEvent(QWheelEvent *event)
Definition: qcustomplot.h:839
virtual void update(UpdatePhase phase)
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
Definition: qcustomplot.h:894
virtual bool take(QCPLayoutElement *element)
void insertColumn(int newIndex)
void setRowStretchFactors(const QList< double > &factors)
virtual int elementCount() const
void setColumnSpacing(int pixels)
QCPLayoutElement * element(int row, int column) const
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
virtual QCPLayoutElement * elementAt(int index) const
void setColumnStretchFactors(const QList< double > &factors)
virtual QCPLayoutElement * takeAt(int index)
void setRowStretchFactor(int row, double factor)
void expandTo(int newRowCount, int newColumnCount)
QList< QList< QCPLayoutElement * > > mElements
Definition: qcustomplot.h:947
QList< double > columnStretchFactors() const
Definition: qcustomplot.h:913
virtual void updateLayout()
void getMaximumRowColSizes(QVector< int > *maxColWidths, QVector< int > *maxRowHeights) const
QList< double > mColumnStretchFactors
Definition: qcustomplot.h:948
QList< double > rowStretchFactors() const
Definition: qcustomplot.h:914
void setRowSpacing(int pixels)
bool hasElement(int row, int column)
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
virtual QList< QCPLayoutElement * > elements(bool recursive) const
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)
InsetPlacement
Definition: qcustomplot.h:969
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)
virtual QCPLayoutElement * takeAt(int index)
InsetPlacement insetPlacement(int index) const
Definition: qcustomplot.h:856
virtual QList< QCPLayoutElement * > elements(bool recursive) const
virtual QCPLayoutElement * takeAt(int index)=0
void releaseElement(QCPLayoutElement *el)
virtual void update(UpdatePhase phase)
bool remove(QCPLayoutElement *element)
QVector< int > getSectionSizes(QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const
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
SelectableParts mSelectableParts
Definition: qcustomplot.h:2605
int iconTextPadding() const
Definition: qcustomplot.h:2549
QPen getBorderPen() const
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)
QCPAbstractLegendItem * item(int index) const
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
QList< QCPAbstractLegendItem * > selectedItems() const
QPen mBorderPen
Definition: qcustomplot.h:2599
SelectablePart
Definition: qcustomplot.h:2529
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
void setSelectedTextColor(const QColor &color)
QBrush selectedBrush() const
Definition: qcustomplot.h:2555
virtual QCP::Interaction selectionCategory() const
void selectionChanged(QCPLegend::SelectableParts parts)
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)
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)
bool removeItem(int index)
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
QCPPlottableLegendItem * itemWithPlottable(const QCPAbstractPlottable *plottable) const
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
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 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
Definition: qcustomplot.h:726
void removeChild(QCP::MarginSide side, QCPLayoutElement *element)
QList< QCPLayoutElement * > elements(QCP::MarginSide side) const
Definition: qcustomplot.h:733
QCustomPlot * mParentPlot
Definition: qcustomplot.h:741
QHash< QCP::MarginSide, QList< QCPLayoutElement * > > mChildren
Definition: qcustomplot.h:742
QCPMarginGroup(QCustomPlot *parentPlot)
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
QStack< bool > mAntialiasingStack
Definition: qcustomplot.h:476
void setPen(Qt::PenStyle penStyle)
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)
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
QCPPlottableLegendItem(QCPLegend *parent, QCPAbstractPlottable *plottable)
QCPAbstractPlottable * plottable()
Definition: qcustomplot.h:2484
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
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
Definition: qcustomplot.h:3337
double key() const
Definition: qcustomplot.h:3359
QVector< double > outliers() const
Definition: qcustomplot.h:3365
virtual QCPRange getKeyRange(bool &foundRange, SignDomain inSignDomain=sdBoth) const
void setWidth(double width)
QPen mMedianPen
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)
void setMedianPen(const QPen &pen)
QCPStatisticalBox(QCPAxis *keyAxis, QCPAxis *valueAxis)
virtual void drawOutliers(QCPPainter *painter) const
void setMinimum(double value)
double mKey
Definition: qcustomplot.h:3398
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const
virtual void drawMedian(QCPPainter *painter) const
void setWhiskerBarPen(const QPen &pen)
double whiskerWidth() const
Definition: qcustomplot.h:3367
double minimum() const
Definition: qcustomplot.h:3360
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 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)
void drawBackground(QCPPainter *painter)
QPixmap mScaledBackgroundPixmap
Definition: qcustomplot.h:2151
Qt::KeyboardModifier mMultiSelectModifier
Definition: qcustomplot.h:2156
QList< QCPGraph * > mGraphs
Definition: qcustomplot.h:2141
void setBackground(const QPixmap &pm)
QRect viewport() const
Definition: qcustomplot.h:1980
void toPainter(QCPPainter *painter, int width=0, int height=0)
void titleClick(QMouseEvent *event, QCPPlotTitle *title)
bool setCurrentLayer(QCPLayer *layer)
virtual void legendRemoved(QCPLegend *legend)
Qt::KeyboardModifier multiSelectModifier() const
Definition: qcustomplot.h:1998
const QCP::Interactions interactions() const
Definition: qcustomplot.h:1994
QCPLayerable * layerableAt(const QPointF &pos, bool onlySelectable, QVariant *selectionDetails=0) const
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
QList< QCPGraph * > selectedGraphs() const
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
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
QCPAbstractItem * item() const
void selectionChangedByUser()
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
QCPLayer * layer(const QString &name) const
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())
QCPLayer * currentLayer() const
bool saveBmp(const QString &fileName, int width=0, int height=0, double scale=1.0)
void axisDoubleClick(QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event)
QList< QCPAbstractPlottable * > selectedPlottables() const
virtual QSize sizeHint() const
bool hasPlottable(QCPAbstractPlottable *plottable) const
bool setCurrentLayer(const QString &name)
virtual QSize minimumSizeHint() const
void mouseMove(QMouseEvent *event)
QPixmap mPaintBuffer
Definition: qcustomplot.h:2159
QCP::AntialiasedElements notAntialiasedElements() const
Definition: qcustomplot.h:1990
LayerInsertMode
Definition: qcustomplot.h:1950
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)
void updateLayerIndices() const
QCPGraph * addGraph(QCPAxis *keyAxis=0, QCPAxis *valueAxis=0)
void setBackground(const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding)
QCPLayoutGrid * plotLayout() const
Definition: qcustomplot.h:1986
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)
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)
QList< QCPLegend * > selectedLegends() const
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
QCPLayoutElement * layoutElementAt(const QPointF &pos) const
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
QCPLayer * layer(int index) const
QList< QCPAxis * > selectedAxes() const
QCPLayoutGrid * mPlotLayout
Definition: qcustomplot.h:2138
int mSelectionTolerance
Definition: qcustomplot.h:2147
bool removeItem(int index)
QCPAbstractItem * item(int index) const
void axisClick(QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event)
QRect mViewport
Definition: qcustomplot.h:2137
virtual void resizeEvent(QResizeEvent *event)
QCPAbstractPlottable * plottableAt(const QPointF &pos, bool onlySelectable=false) const
QCPAbstractPlottable * plottable()
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
void mouseRelease(QMouseEvent *event)
QCPAbstractItem * itemAt(const QPointF &pos, bool onlySelectable=false) const
bool noAntialiasingOnDrag() const
Definition: qcustomplot.h:1996
virtual void axisRemoved(QCPAxis *axis)
void mousePress(QMouseEvent *event)
QList< QCPLayer * > mLayers
Definition: qcustomplot.h:2144
QCPAbstractPlottable * plottable(int index)
void titleDoubleClick(QMouseEvent *event, QCPPlotTitle *title)
bool addLayer(const QString &name, QCPLayer *otherLayer=0, LayerInsertMode insertMode=limAbove)
QList< QCPAbstractItem * > selectedItems() const
QCP::Interactions mInteractions
Definition: qcustomplot.h:2146
void setAutoAddPlottableToLegend(bool on)
bool removeItem(QCPAbstractItem *item)
void setNotAntialiasedElements(const QCP::AntialiasedElements ¬AntialiasedElements)
void itemClick(QCPAbstractItem *item, QMouseEvent *event)
bool moveLayer(QCPLayer *layer, QCPLayer *otherLayer, LayerInsertMode insertMode=limAbove)
QPixmap mBackgroundPixmap
Definition: qcustomplot.h:2150
QCPGraph * graph(int index) const
void setAntialiasedElement(QCP::AntialiasedElement antialiasedElement, bool enabled=true)
bool hasItem(QCPAbstractItem *item) const
QCPAxisRect * axisRect(int index=0) const
void plottableDoubleClick(QCPAbstractPlottable *plottable, QMouseEvent *event)
bool removePlottable(QCPAbstractPlottable *plottable)
void setAntialiasedElements(const QCP::AntialiasedElements &antialiasedElements)
QList< QCPAxisRect * > axisRects() const
Qt::AspectRatioMode backgroundScaledMode() const
Definition: qcustomplot.h:1983
bool removePlottable(int index)
void setNotAntialiasedElement(QCP::AntialiasedElement notAntialiasedElement, bool enabled=true)
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
@ sdNegative
The negative sign domain, i.e. numbers smaller than zero.
Definition: qcustomplot.h:208
@ sdPositive
The positive sign domain, i.e. numbers greater than zero.
Definition: qcustomplot.h:212
@ sdBoth
Both sign domains, including zero, i.e. all numbers.
Definition: qcustomplot.h:210
QMapIterator< double, QCPData > QCPDataMapIterator
Definition: qcustomplot.h:2830
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
#define QCP_LIB_DECL
Definition: qcustomplot.h:87
QMutableMapIterator< double, QCPBarData > QCPBarDataMutableMapIterator
Definition: qcustomplot.h:3239
QMap< double, QCPFinancialData > QCPFinancialDataMap
Definition: qcustomplot.h:3571
const QCPRange operator-(const QCPRange &range, double value)
Definition: qcustomplot.h:693
QMap< double, QCPData > QCPDataMap
Definition: qcustomplot.h:2829
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
Definition: qcustomplot.h:1566
QPixmap pixmap
Definition: qcustomplot.h:1568
QPointF offset
Definition: qcustomplot.h:1567
Definition: qcustomplot.h:1570
QFont baseFont
Definition: qcustomplot.h:1573
QRect baseBounds
Definition: qcustomplot.h:1572
QString basePart
Definition: qcustomplot.h:1571