QCP
Typedefs | |
typedef QFlags< AntialiasedElement > | AntialiasedElements |
typedef QFlags< Interaction > | Interactions |
typedef QFlags< MarginSide > | MarginSides |
typedef QFlags< PlottingHint > | PlottingHints |
Functions | |
int | getMarginValue (const QMargins &margins, QCP::MarginSide side) |
bool | isInvalidData (double value) |
bool | isInvalidData (double value1, double value2) |
void | setMarginValue (QMargins &margins, QCP::MarginSide side, int value) |
Variables | |
const QMetaObject | staticMetaObject |
Detailed Description
The QCP Namespace contains general enums, QFlags and functions used throughout the QCustomPlot library.
It provides QMetaObject-based reflection of its enums and flags via QCP::staticMetaObject.
Typedef Documentation
◆ AntialiasedElements
typedef QFlags< AntialiasedElement > QCP::AntialiasedElements |
Definition at line 258 of file qcustomplot.h.
◆ Interactions
typedef QFlags< Interaction > QCP::Interactions |
Definition at line 292 of file qcustomplot.h.
◆ MarginSides
typedef QFlags< MarginSide > QCP::MarginSides |
Definition at line 233 of file qcustomplot.h.
◆ PlottingHints
typedef QFlags< PlottingHint > QCP::PlottingHints |
Definition at line 272 of file qcustomplot.h.
Enumeration Type Documentation
◆ AntialiasedElement
Defines what objects of a plot can be forcibly drawn antialiased/not antialiased. If an object is neither forcibly drawn antialiased nor forcibly drawn not antialiased, it is up to the respective element how it is drawn. Typically it provides a setAntialiased function for this.
AntialiasedElements
is a flag of or-combined elements of this enum type.
Enumerator | |
---|---|
aeAxes |
|
aeGrid |
|
aeSubGrid |
|
aeLegend |
|
aeLegendItems |
|
aePlottables |
|
aeItems |
|
aeScatters |
|
aeFills |
|
aeZeroLine |
|
aeOther |
|
aeAll |
|
aeNone |
|
Definition at line 244 of file qcustomplot.h.
◆ ExportPen
enum QCP::ExportPen |
Defines how cosmetic pens (pens with numerical width 0) are handled during export.
- See also
- QCustomPlot::savePdf
Definition at line 205 of file qcustomplot.h.
◆ Interaction
enum QCP::Interaction |
Defines the mouse interactions possible with QCustomPlot.
Interactions
is a flag of or-combined elements of this enum type.
- See also
- QCustomPlot::setInteractions
Enumerator | |
---|---|
iNone |
|
iRangeDrag |
|
iRangeZoom |
|
iMultiSelect |
|
iSelectPlottables |
|
iSelectAxes |
|
iSelectLegend |
|
iSelectItems |
|
iSelectOther |
|
iSelectPlottablesBeyondAxisRect |
|
Definition at line 281 of file qcustomplot.h.
◆ MarginSide
enum QCP::MarginSide |
Defines the sides of a rectangular entity to which margins can be applied.
Enumerator | |
---|---|
msLeft |
|
msRight |
|
msTop |
|
msBottom |
|
msAll |
|
msNone |
|
Definition at line 226 of file qcustomplot.h.
◆ PlottingHint
enum QCP::PlottingHint |
Defines plotting hints that control various aspects of the quality and speed of plotting.
- See also
- QCustomPlot::setPlottingHints
Enumerator | |
---|---|
phNone |
|
phFastPolylines |
This reduces the quality especially of the line segment joins, thus is most effective for pen sizes larger than 1. It is only used for solid line pens. |
phImmediateRefresh |
This is set by default to prevent the plot from freezing on fast consecutive replots (e.g. user drags ranges with mouse). |
phCacheLabels |
|
Definition at line 265 of file qcustomplot.h.
◆ ResolutionUnit
enum QCP::ResolutionUnit |
Defines the different units in which the image resolution can be specified in the export functions.
Enumerator | |
---|---|
ruDotsPerMeter | Resolution is given in dots per meter (dpm) |
ruDotsPerCentimeter | Resolution is given in dots per centimeter (dpcm) |
ruDotsPerInch | Resolution is given in dots per inch (DPI/PPI) |
Definition at line 195 of file qcustomplot.h.
◆ SelectionRectMode
Defines the behaviour of the selection rect.
Enumerator | |
---|---|
srmNone | The selection rect is disabled, and all mouse events are forwarded to the underlying objects, e.g. for axis range dragging. |
srmZoom | When dragging the mouse, a selection rect becomes active. Upon releasing, the axes that are currently set as range zoom axes (QCPAxisRect::setRangeZoomAxes) will have their ranges zoomed accordingly. |
srmSelect | When dragging the mouse, a selection rect becomes active. Upon releasing, plottable data points that were within the selection rect are selected, if the plottable's selectability setting permits. (See data selection mechanism for details.) |
srmCustom | When dragging the mouse, a selection rect becomes active. It is the programmer's responsibility to connect according slots to the selection rect's signals (e.g. QCPSelectionRect::accepted) in order to process the user interaction. |
Definition at line 299 of file qcustomplot.h.
◆ SelectionType
enum QCP::SelectionType |
Defines the different ways a plottable can be selected. These images show the effect of the different selection types, when the indicated selection rect was dragged:
Enumerator | |
---|---|
stNone | The plottable is not selectable. |
stWhole | Selection behaves like stMultipleDataRanges, but if there are any data points selected, the entire plottable is drawn as selected. |
stSingleData | One individual data point can be selected at a time. |
stDataRange | Multiple contiguous data points (a data range) can be selected. |
stMultipleDataRanges | Any combination of data points/ranges can be selected. |
Definition at line 323 of file qcustomplot.h.
◆ SignDomain
enum QCP::SignDomain |
Represents negative and positive sign domain, e.g. for passing to QCPAbstractPlottable::getKeyRange and QCPAbstractPlottable::getValueRange.
This is primarily needed when working with logarithmic axis scales, since only one of the sign domains can be visible at a time.
Definition at line 216 of file qcustomplot.h.
Function Documentation
◆ getMarginValue()
|
inline |
Returns the value of the specified side of margins. If side is QCP::msNone or QCP::msAll, returns 0.
- See also
- setMarginValue
Definition at line 377 of file qcustomplot.h.
◆ isInvalidData() [1/2]
|
inline |
Returns whether the specified value is considered an invalid data value for plottables (i.e. is nan or +/-inf). This function is used to check data validity upon replots, when the compiler flag QCUSTOMPLOT_CHECK_DATA
is set.
Definition at line 336 of file qcustomplot.h.
◆ isInvalidData() [2/2]
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Checks two arguments instead of one.
Definition at line 346 of file qcustomplot.h.
◆ setMarginValue()
|
inline |
Sets the specified side of margins to value
- See also
- getMarginValue
Definition at line 357 of file qcustomplot.h.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.