34 #include <QPaintEvent>
35 #include <QMouseEvent>
49 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
50 # include <qnumeric.h>
52 # include <QPrintEngine>
55 # include <QtPrintSupport>
60 #if defined(QCUSTOMPLOT_COMPILE_LIBRARY)
61 # define QCP_LIB_DECL Q_DECL_EXPORT
62 #elif defined(QCUSTOMPLOT_USE_LIBRARY)
63 # define QCP_LIB_DECL Q_DECL_IMPORT
152 return qIsNaN(value) || qIsInf(value);
177 case QCP::msTop: margins.setTop(value);
break;
179 case QCP::msAll: margins = QMargins(value, value, value, value);
break;
206 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::AntialiasedElements)
207 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::PlottingHints)
208 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::MarginSides)
209 Q_DECLARE_OPERATORS_FOR_FLAGS(QCP::Interactions)
211 #endif // QCP_GLOBAL_H
0x02 right margin
Definition: global.h:79
0x001 Axis ranges are draggable (see QCPAxisRect::setRangeDrag, QCPAxisRect::setRangeDragAxes) ...
Definition: global.h:133
0x0100 Error bars
Definition: global.h:104
0x0400 Zero-lines, see QCPGrid::setZeroLinePen
Definition: global.h:106
0x004 axis (tick) labels will be cached as pixmaps, increasing replot performance.
Definition: global.h:122
0x0000 No elements
Definition: global.h:108
0x04 top margin
Definition: global.h:80
0x0020 Main lines of plottables (excluding error bars, see element aeErrorBars)
Definition: global.h:101
0x004 The user can select multiple objects by holding the modifier set by QCustomPlot::setMultiSelect...
Definition: global.h:135
0xFF all margins
Definition: global.h:82
0x020 Legends are selectable (or their child items, see QCPLegend::setSelectableParts) ...
Definition: global.h:138
AntialiasedElement
Definition: global.h:96
0x0002 Grid lines
Definition: global.h:97
int getMarginValue(const QMargins &margins, QCP::MarginSide side)
Definition: global.h:191
void setMarginValue(QMargins &margins, QCP::MarginSide side, int value)
Definition: global.h:171
0x000 No hints are set
Definition: global.h:117
0x00 no margin
Definition: global.h:83
0x010 Axes are selectable (or parts of them, see QCPAxis::setSelectableParts)
Definition: global.h:137
0x0004 Sub grid lines
Definition: global.h:98
0x008 Plottables are selectable (e.g. graphs, curves, bars,... see QCPAbstractPlottable) ...
Definition: global.h:136
bool isInvalidData(double value)
Definition: global.h:150
0x0040 Main lines of items
Definition: global.h:102
0x08 bottom margin
Definition: global.h:81
0x0200 Borders of fills (e.g. under or between graphs)
Definition: global.h:105
0x0080 Scatter symbols of plottables (excluding scatter symbols of type ssPixmap) ...
Definition: global.h:103
0x080 All other objects are selectable (e.g. your own derived layerables, the plot title...
Definition: global.h:140
0x002 Axis ranges are zoomable with the mouse wheel (see QCPAxisRect::setRangeZoom, QCPAxisRect::setRangeZoomAxes)
Definition: global.h:134
0x0008 Legend box
Definition: global.h:99
0xFFFF All elements
Definition: global.h:107
0x040 Items are selectable (Rectangles, Arrows, Textitems, etc. see QCPAbstractItem) ...
Definition: global.h:139
0x0001 Axis base line and tick marks
Definition: global.h:96
PlottingHint
Definition: global.h:117
0x01 left margin
Definition: global.h:78
MarginSide
Definition: global.h:78
0x0010 Legend items
Definition: global.h:100
Interaction
Definition: global.h:133