Gra zręcznościowa „Straszna Epidemia"  V1.2
Projekt Wizualizacja Danych Sensorycznych Kewin Gałuszka rok akademicki 2019/2020
Dokumentacja pliku qcustomplot.h
#include <QtCore/qglobal.h>
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer>
#include <QtGui/QPainter>
#include <QtGui/QPaintEvent>
#include <QtGui/QMouseEvent>
#include <QtGui/QWheelEvent>
#include <QtGui/QPixmap>
#include <QtCore/QVector>
#include <QtCore/QString>
#include <QtCore/QDateTime>
#include <QtCore/QMultiMap>
#include <QtCore/QFlags>
#include <QtCore/QDebug>
#include <QtCore/QStack>
#include <QtCore/QCache>
#include <QtCore/QMargins>
#include <qmath.h>
#include <limits>
#include <algorithm>
#include <QtNumeric>
#include <QtWidgets/QWidget>
#include <QtPrintSupport/QtPrintSupport>
Wykres zależności załączania dla qcustomplot.h:
Ten wykres pokazuje, które pliki bezpośrednio lub pośrednio załączają ten plik:

Idź do kodu źródłowego tego pliku.

Komponenty

class  QCPVector2D
 Represents two doubles as a mathematical 2D vector. Więcej...
 
class  QCPPainter
 QPainter subclass used internally. Więcej...
 
class  QCPAbstractPaintBuffer
 The abstract base class for paint buffers, which define the rendering backend. Więcej...
 
class  QCPPaintBufferPixmap
 A paint buffer based on QPixmap, using software raster rendering. Więcej...
 
class  QCPLayer
 A layer that may contain objects, to control the rendering order. Więcej...
 
class  QCPLayerable
 Base class for all drawable objects. Więcej...
 
class  QCPRange
 Represents the range an axis is encompassing. Więcej...
 
class  QCPDataRange
 Describes a data range given by begin and end index. Więcej...
 
class  QCPDataSelection
 Describes a data set by holding multiple QCPDataRange instances. Więcej...
 
class  QCPSelectionRect
 Provides rect/rubber-band data selection and range zoom interaction. Więcej...
 
class  QCPMarginGroup
 A margin group allows synchronization of margin sides if working with multiple layout elements. Więcej...
 
class  QCPLayoutElement
 The abstract base class for all objects that form the layout system. Więcej...
 
class  QCPLayout
 The abstract base class for layouts. Więcej...
 
class  QCPLayoutGrid
 A layout that arranges child elements in a grid. Więcej...
 
class  QCPLayoutInset
 A layout that places child elements aligned to the border or arbitrarily positioned. Więcej...
 
class  QCPLineEnding
 Handles the different ending decorations for line-like items. Więcej...
 
class  QCPAxisTicker
 The base class tick generator used by QCPAxis to create tick positions and tick labels. Więcej...
 
class  QCPAxisTickerDateTime
 Specialized axis ticker for calendar dates and times as axis ticks. Więcej...
 
class  QCPAxisTickerTime
 Specialized axis ticker for time spans in units of milliseconds to days. Więcej...
 
class  QCPAxisTickerFixed
 Specialized axis ticker with a fixed tick step. Więcej...
 
class  QCPAxisTickerText
 Specialized axis ticker which allows arbitrary labels at specified coordinates. Więcej...
 
class  QCPAxisTickerPi
 Specialized axis ticker to display ticks in units of an arbitrary constant, for example pi. Więcej...
 
class  QCPAxisTickerLog
 Specialized axis ticker suited for logarithmic axes. Więcej...
 
class  QCPGrid
 Responsible for drawing the grid of a QCPAxis. Więcej...
 
class  QCPAxis
 Manages a single axis inside a QCustomPlot. Więcej...
 
class  QCPAxisPainterPrivate
 
struct  QCPAxisPainterPrivate::CachedLabel
 
struct  QCPAxisPainterPrivate::TickLabelData
 
class  QCPScatterStyle
 Represents the visual appearance of scatter points. Więcej...
 
class  QCPDataContainer< DataType >
 The generic data container for one-dimensional plottables. Więcej...
 
class  QCPSelectionDecorator
 Controls how a plottable's data selection is drawn. Więcej...
 
class  QCPAbstractPlottable
 The abstract base class for all data representing objects in a plot. Więcej...
 
class  QCPItemAnchor
 An anchor of an item to which positions can be attached to. Więcej...
 
class  QCPItemPosition
 Manages the position of an item. Więcej...
 
class  QCPAbstractItem
 The abstract base class for all items in a plot. Więcej...
 
class  QCustomPlot
 The central class of the library. This is the QWidget which displays the plot and interacts with the user. Więcej...
 
class  QCPPlottableInterface1D
 Defines an abstract interface for one-dimensional plottables. Więcej...
 
class  QCPAbstractPlottable1D< DataType >
 A template base class for plottables with one-dimensional data. Więcej...
 
class  QCPColorGradient
 Defines a color gradient for use with e.g. QCPColorMap. Więcej...
 
class  QCPSelectionDecoratorBracket
 A selection decorator which draws brackets around each selected data segment. Więcej...
 
class  QCPAxisRect
 Holds multiple axes and arranges them in a rectangular shape. Więcej...
 
class  QCPAbstractLegendItem
 The abstract base class for all entries in a QCPLegend. Więcej...
 
class  QCPPlottableLegendItem
 A legend item representing a plottable with an icon and the plottable name. Więcej...
 
class  QCPLegend
 Manages a legend inside a QCustomPlot. Więcej...
 
class  QCPTextElement
 A layout element displaying a text. Więcej...
 
class  QCPColorScaleAxisRectPrivate
 
class  QCPColorScale
 A color scale for use with color coding data such as QCPColorMap. Więcej...
 
class  QCPGraphData
 Holds the data of one single data point for QCPGraph. Więcej...
 
class  QCPGraph
 A plottable representing a graph in a plot. Więcej...
 
class  QCPCurveData
 Holds the data of one single data point for QCPCurve. Więcej...
 
class  QCPCurve
 A plottable representing a parametric curve in a plot. Więcej...
 
class  QCPBarsGroup
 Groups multiple QCPBars together so they appear side by side. Więcej...
 
class  QCPBarsData
 Holds the data of one single data point (one bar) for QCPBars. Więcej...
 
class  QCPBars
 A plottable representing a bar chart in a plot. Więcej...
 
class  QCPStatisticalBoxData
 Holds the data of one single data point for QCPStatisticalBox. Więcej...
 
class  QCPStatisticalBox
 A plottable representing a single statistical box in a plot. Więcej...
 
class  QCPColorMapData
 Holds the two-dimensional data of a QCPColorMap plottable. Więcej...
 
class  QCPColorMap
 A plottable representing a two-dimensional color map in a plot. Więcej...
 
class  QCPFinancialData
 Holds the data of one single data point for QCPFinancial. Więcej...
 
class  QCPFinancial
 A plottable representing a financial stock chart. Więcej...
 
class  QCPErrorBarsData
 Holds the data of one single error bar for QCPErrorBars. Więcej...
 
class  QCPErrorBars
 A plottable that adds a set of error bars to other plottables. Więcej...
 
class  QCPItemStraightLine
 A straight line that spans infinitely in both directions. Więcej...
 
class  QCPItemLine
 A line from one point to another. Więcej...
 
class  QCPItemCurve
 A curved line from one point to another. Więcej...
 
class  QCPItemRect
 A rectangle. Więcej...
 
class  QCPItemText
 A text label. Więcej...
 
class  QCPItemEllipse
 An ellipse. Więcej...
 
class  QCPItemPixmap
 An arbitrary pixmap. Więcej...
 
class  QCPItemTracer
 Item that sticks to QCPGraph data points. Więcej...
 
class  QCPItemBracket
 A bracket for referencing/highlighting certain parts in the plot. Więcej...
 

Przestrzenie nazw

 QCP
 

Definicje

#define QCP_DEVICEPIXELRATIO_SUPPORTED
 
#define QCP_DEVICEPIXELRATIO_FLOAT
 
#define QCUSTOMPLOT_VERSION_STR   "2.0.1"
 
#define QCUSTOMPLOT_VERSION   0x020001
 
#define QCP_LIB_DECL
 
#define Q_DECL_OVERRIDE
 

Definicje typów

typedef QCPDataContainer< QCPGraphDataQCPGraphDataContainer
 
typedef QCPDataContainer< QCPCurveDataQCPCurveDataContainer
 
typedef QCPDataContainer< QCPBarsDataQCPBarsDataContainer
 
typedef QCPDataContainer< QCPStatisticalBoxDataQCPStatisticalBoxDataContainer
 
typedef QCPDataContainer< QCPFinancialDataQCPFinancialDataContainer
 
typedef QVector< QCPErrorBarsDataQCPErrorBarsDataContainer
 

Wyliczenia

enum  QCP::ResolutionUnit { QCP::ruDotsPerMeter, QCP::ruDotsPerCentimeter, QCP::ruDotsPerInch }
 
enum  QCP::ExportPen { QCP::epNoCosmetic, QCP::epAllowCosmetic }
 
enum  QCP::SignDomain { QCP::sdNegative, QCP::sdBoth, QCP::sdPositive }
 
enum  QCP::MarginSide {
  QCP::msLeft = 0x01, QCP::msRight = 0x02, QCP::msTop = 0x04, QCP::msBottom = 0x08,
  QCP::msAll = 0xFF, QCP::msNone = 0x00
}
 
enum  QCP::AntialiasedElement {
  QCP::aeAxes = 0x0001, QCP::aeGrid = 0x0002, QCP::aeSubGrid = 0x0004, QCP::aeLegend = 0x0008,
  QCP::aeLegendItems = 0x0010, QCP::aePlottables = 0x0020, QCP::aeItems = 0x0040, QCP::aeScatters = 0x0080,
  QCP::aeFills = 0x0100, QCP::aeZeroLine = 0x0200, QCP::aeOther = 0x8000, QCP::aeAll = 0xFFFF,
  QCP::aeNone = 0x0000
}
 
enum  QCP::PlottingHint { QCP::phNone = 0x000, QCP::phFastPolylines = 0x001, QCP::phImmediateRefresh = 0x002, QCP::phCacheLabels = 0x004 }
 
enum  QCP::Interaction {
  QCP::iRangeDrag = 0x001, QCP::iRangeZoom = 0x002, QCP::iMultiSelect = 0x004, QCP::iSelectPlottables = 0x008,
  QCP::iSelectAxes = 0x010, QCP::iSelectLegend = 0x020, QCP::iSelectItems = 0x040, QCP::iSelectOther = 0x080
}
 
enum  QCP::SelectionRectMode { QCP::srmNone, QCP::srmZoom, QCP::srmSelect, QCP::srmCustom }
 
enum  QCP::SelectionType {
  QCP::stNone, QCP::stWhole, QCP::stSingleData, QCP::stDataRange,
  QCP::stMultipleDataRanges
}
 

Funkcje

bool QCP::isInvalidData (double value)
 
bool QCP::isInvalidData (double value1, double value2)
 
void QCP::setMarginValue (QMargins &margins, QCP::MarginSide side, int value)
 
int QCP::getMarginValue (const QMargins &margins, QCP::MarginSide side)
 
 Q_DECLARE_TYPEINFO (QCPVector2D, Q_MOVABLE_TYPE)
 
const QCPVector2D operator* (double factor, const QCPVector2D &vec)
 
const QCPVector2D operator* (const QCPVector2D &vec, double factor)
 
const QCPVector2D operator/ (const QCPVector2D &vec, double divisor)
 
const QCPVector2D operator+ (const QCPVector2D &vec1, const QCPVector2D &vec2)
 
const QCPVector2D operator- (const QCPVector2D &vec1, const QCPVector2D &vec2)
 
const QCPVector2D operator- (const QCPVector2D &vec)
 
 Q_DECLARE_TYPEINFO (QCPRange, Q_MOVABLE_TYPE)
 
const QCPRange operator+ (const QCPRange &range, double value)
 
const QCPRange operator+ (double value, const QCPRange &range)
 
const QCPRange operator- (const QCPRange &range, double value)
 
const QCPRange operator* (const QCPRange &range, double value)
 
const QCPRange operator* (double value, const QCPRange &range)
 
const QCPRange operator/ (const QCPRange &range, double value)
 
 Q_DECLARE_TYPEINFO (QCPDataRange, Q_MOVABLE_TYPE)
 
const QCPDataSelection operator+ (const QCPDataSelection &a, const QCPDataSelection &b)
 
const QCPDataSelection operator+ (const QCPDataRange &a, const QCPDataSelection &b)
 
const QCPDataSelection operator+ (const QCPDataSelection &a, const QCPDataRange &b)
 
const QCPDataSelection operator+ (const QCPDataRange &a, const QCPDataRange &b)
 
const QCPDataSelection operator- (const QCPDataSelection &a, const QCPDataSelection &b)
 
const QCPDataSelection operator- (const QCPDataRange &a, const QCPDataSelection &b)
 
const QCPDataSelection operator- (const QCPDataSelection &a, const QCPDataRange &b)
 
const QCPDataSelection operator- (const QCPDataRange &a, const QCPDataRange &b)
 
 Q_DECLARE_TYPEINFO (QCPLineEnding, Q_MOVABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPScatterStyle, Q_MOVABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPGraphData, Q_PRIMITIVE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPCurveData, Q_PRIMITIVE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPBarsData, Q_PRIMITIVE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPStatisticalBoxData, Q_MOVABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPFinancialData, Q_PRIMITIVE_TYPE)
 
 Q_DECLARE_TYPEINFO (QCPErrorBarsData, Q_PRIMITIVE_TYPE)
 

Zmienne

const QMetaObject QCP::staticMetaObject
 

Dokumentacja definicji

◆ Q_DECL_OVERRIDE

#define Q_DECL_OVERRIDE

Definicja w linii 135 pliku qcustomplot.h.

◆ QCP_DEVICEPIXELRATIO_FLOAT

#define QCP_DEVICEPIXELRATIO_FLOAT

Definicja w linii 47 pliku qcustomplot.h.

◆ QCP_DEVICEPIXELRATIO_SUPPORTED

#define QCP_DEVICEPIXELRATIO_SUPPORTED

Definicja w linii 45 pliku qcustomplot.h.

◆ QCP_LIB_DECL

#define QCP_LIB_DECL

Definicja w linii 130 pliku qcustomplot.h.

◆ QCUSTOMPLOT_VERSION

#define QCUSTOMPLOT_VERSION   0x020001

Definicja w linii 120 pliku qcustomplot.h.

◆ QCUSTOMPLOT_VERSION_STR

#define QCUSTOMPLOT_VERSION_STR   "2.0.1"

Definicja w linii 119 pliku qcustomplot.h.

Dokumentacja definicji typów

◆ QCPBarsDataContainer

Container for storing QCPBarsData points. The data is stored sorted by key.

This template instantiation is the container in which QCPBars holds its data. For details about the generic container, see the documentation of the class template QCPDataContainer.

Zobacz również
QCPBarsData, QCPBars::setData

Definicja w linii 5480 pliku qcustomplot.h.

◆ QCPCurveDataContainer

Container for storing QCPCurveData points. The data is stored sorted by t, so the sortKey() (returning t) is different from mainKey() (returning key).

This template instantiation is the container in which QCPCurve holds its data. For details about the generic container, see the documentation of the class template QCPDataContainer.

Zobacz również
QCPCurveData, QCPCurve::setData

Definicja w linii 5301 pliku qcustomplot.h.

◆ QCPErrorBarsDataContainer

Container for storing QCPErrorBarsData points. It is a typedef for QVector<QCPErrorBarsData>.

This is the container in which QCPErrorBars holds its data. Unlike most other data containers for plottables, it is not based on QCPDataContainer. This is because the error bars plottable is special in that it doesn't store its own key and value coordinate per error bar. It adopts the key and value from the plottable to which the error bars shall be applied (QCPErrorBars::setDataPlottable). So the stored QCPErrorBarsData doesn't need a sortable key, but merely an index (as QVector provides), which maps one-to-one to the indices of the other plottable's data.

Zobacz również
QCPErrorBarsData, QCPErrorBars::setData

Definicja w linii 5993 pliku qcustomplot.h.

◆ QCPFinancialDataContainer

Container for storing QCPFinancialData points. The data is stored sorted by key.

This template instantiation is the container in which QCPFinancial holds its data. For details about the generic container, see the documentation of the class template QCPDataContainer.

Zobacz również
QCPFinancialData, QCPFinancial::setData

Definicja w linii 5856 pliku qcustomplot.h.

◆ QCPGraphDataContainer

Container for storing QCPGraphData points. The data is stored sorted by key.

This template instantiation is the container in which QCPGraph holds its data. For details about the generic container, see the documentation of the class template QCPDataContainer.

Zobacz również
QCPGraphData, QCPGraph::setData

Definicja w linii 5161 pliku qcustomplot.h.

◆ QCPStatisticalBoxDataContainer

Container for storing QCPStatisticalBoxData points. The data is stored sorted by key.

This template instantiation is the container in which QCPStatisticalBox holds its data. For details about the generic container, see the documentation of the class template QCPDataContainer.

Zobacz również
QCPStatisticalBoxData, QCPStatisticalBox::setData

Definicja w linii 5611 pliku qcustomplot.h.

Dokumentacja funkcji

◆ operator*() [1/4]

const QCPRange operator* ( const QCPRange range,
double  value 
)
inline

Multiplies both boundaries of the range by value.

Definicja w linii 862 pliku qcustomplot.h.

◆ operator*() [2/4]

const QCPVector2D operator* ( const QCPVector2D vec,
double  factor 
)
inline

Definicja w linii 439 pliku qcustomplot.h.

◆ operator*() [3/4]

const QCPVector2D operator* ( double  factor,
const QCPVector2D vec 
)
inline

Definicja w linii 438 pliku qcustomplot.h.

◆ operator*() [4/4]

const QCPRange operator* ( double  value,
const QCPRange range 
)
inline

Multiplies both boundaries of the range by value.

Definicja w linii 872 pliku qcustomplot.h.

◆ operator+() [1/7]

const QCPDataSelection operator+ ( const QCPDataRange a,
const QCPDataRange b 
)
inline

Return a QCPDataSelection with the data points in a joined with the data points in b. The resulting data selection is already simplified (see QCPDataSelection::simplify).

Definicja w linii 1017 pliku qcustomplot.h.

◆ operator+() [2/7]

const QCPDataSelection operator+ ( const QCPDataRange a,
const QCPDataSelection b 
)
inline

Return a QCPDataSelection with the data points in a joined with the data points in b. The resulting data selection is already simplified (see QCPDataSelection::simplify).

Definicja w linii 995 pliku qcustomplot.h.

◆ operator+() [3/7]

const QCPDataSelection operator+ ( const QCPDataSelection a,
const QCPDataRange b 
)
inline

Return a QCPDataSelection with the data points in a joined with the data points in b. The resulting data selection is already simplified (see QCPDataSelection::simplify).

Definicja w linii 1006 pliku qcustomplot.h.

◆ operator+() [4/7]

const QCPDataSelection operator+ ( const QCPDataSelection a,
const QCPDataSelection b 
)
inline

Return a QCPDataSelection with the data points in a joined with the data points in b. The resulting data selection is already simplified (see QCPDataSelection::simplify).

Definicja w linii 984 pliku qcustomplot.h.

◆ operator+() [5/7]

const QCPRange operator+ ( const QCPRange range,
double  value 
)
inline

Adds value to both boundaries of the range.

Definicja w linii 832 pliku qcustomplot.h.

◆ operator+() [6/7]

const QCPVector2D operator+ ( const QCPVector2D vec1,
const QCPVector2D vec2 
)
inline

Definicja w linii 441 pliku qcustomplot.h.

◆ operator+() [7/7]

const QCPRange operator+ ( double  value,
const QCPRange range 
)
inline

Adds value to both boundaries of the range.

Definicja w linii 842 pliku qcustomplot.h.

◆ operator-() [1/7]

const QCPDataSelection operator- ( const QCPDataRange a,
const QCPDataRange b 
)
inline

Return a QCPDataSelection with the data points which are in a but not in b.

Definicja w linii 1057 pliku qcustomplot.h.

◆ operator-() [2/7]

const QCPDataSelection operator- ( const QCPDataRange a,
const QCPDataSelection b 
)
inline

Return a QCPDataSelection with the data points which are in a but not in b.

Definicja w linii 1037 pliku qcustomplot.h.

◆ operator-() [3/7]

const QCPDataSelection operator- ( const QCPDataSelection a,
const QCPDataRange b 
)
inline

Return a QCPDataSelection with the data points which are in a but not in b.

Definicja w linii 1047 pliku qcustomplot.h.

◆ operator-() [4/7]

const QCPDataSelection operator- ( const QCPDataSelection a,
const QCPDataSelection b 
)
inline

Return a QCPDataSelection with the data points which are in a but not in b.

Definicja w linii 1027 pliku qcustomplot.h.

◆ operator-() [5/7]

const QCPRange operator- ( const QCPRange range,
double  value 
)
inline

Subtracts value from both boundaries of the range.

Definicja w linii 852 pliku qcustomplot.h.

◆ operator-() [6/7]

const QCPVector2D operator- ( const QCPVector2D vec)
inline

Definicja w linii 443 pliku qcustomplot.h.

◆ operator-() [7/7]

const QCPVector2D operator- ( const QCPVector2D vec1,
const QCPVector2D vec2 
)
inline

Definicja w linii 442 pliku qcustomplot.h.

◆ operator/() [1/2]

const QCPRange operator/ ( const QCPRange range,
double  value 
)
inline

Divides both boundaries of the range by value.

Definicja w linii 882 pliku qcustomplot.h.

◆ operator/() [2/2]

const QCPVector2D operator/ ( const QCPVector2D vec,
double  divisor 
)
inline

Definicja w linii 440 pliku qcustomplot.h.

◆ Q_DECLARE_TYPEINFO() [1/11]

Q_DECLARE_TYPEINFO ( QCPBarsData  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/11]

Q_DECLARE_TYPEINFO ( QCPCurveData  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [3/11]

Q_DECLARE_TYPEINFO ( QCPDataRange  ,
Q_MOVABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [4/11]

Q_DECLARE_TYPEINFO ( QCPErrorBarsData  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [5/11]

Q_DECLARE_TYPEINFO ( QCPFinancialData  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [6/11]

Q_DECLARE_TYPEINFO ( QCPGraphData  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [7/11]

Q_DECLARE_TYPEINFO ( QCPLineEnding  ,
Q_MOVABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [8/11]

Q_DECLARE_TYPEINFO ( QCPRange  ,
Q_MOVABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [9/11]

Q_DECLARE_TYPEINFO ( QCPScatterStyle  ,
Q_MOVABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [10/11]

Q_DECLARE_TYPEINFO ( QCPStatisticalBoxData  ,
Q_MOVABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [11/11]

Q_DECLARE_TYPEINFO ( QCPVector2D  ,
Q_MOVABLE_TYPE   
)