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.
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) |
Defines how cosmetic pens (pens with numerical width 0) are handled during export.
| Enumerator | |
|---|---|
| epNoCosmetic | Cosmetic pens are converted to pens with pixel width 1 when exporting. |
| epAllowCosmetic | Cosmetic pens are exported normally (e.g. in PDF exports, cosmetic pens always appear as 1 pixel on screen, independent of viewer zoom level) |
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.
| Enumerator | |
|---|---|
| sdNegative | The negative sign domain, i.e. numbers smaller than zero. |
| sdBoth | Both sign domains, including zero, i.e. all numbers. |
| sdPositive | The positive sign domain, i.e. numbers greater than zero. |
Defines the sides of a rectangular entity to which margins can be applied.
| Enumerator | |
|---|---|
| msLeft |
|
| msRight |
|
| msTop |
|
| msBottom |
|
| msAll |
|
| msNone |
|
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 |
|
Defines plotting hints that control various aspects of the quality and speed of plotting.
| Enumerator | |
|---|---|
| phNone |
|
| phFastPolylines |
|
| phImmediateRefresh |
|
| phCacheLabels |
|
Defines the mouse interactions possible with QCustomPlot.
Interactions is a flag of or-combined elements of this enum type.
| Enumerator | |
|---|---|
| iNone |
|
| iRangeDrag |
|
| iRangeZoom |
|
| iMultiSelect |
|
| iSelectPlottables |
|
| iSelectAxes |
|
| iSelectLegend |
|
| iSelectItems |
|
| iSelectOther |
|
| iSelectPlottablesBeyondAxisRect |
|
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. |
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. |
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.
This is an overloaded function.
Checks two arguments instead of one.
Sets the specified side of margins to value
Returns the value of the specified side of margins. If side is QCP::msNone or QCP::msAll, returns 0.