xydomain_p.h
65 lines
| 2.1 KiB
| text/x-c
|
CLexer
|
r2845 | /****************************************************************************** | ||
|
r794 | ** | ||
|
r2845 | ** Copyright (C) 2015 The Qt Company Ltd. | ||
** Contact: http://www.qt.io/licensing/ | ||||
|
r794 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r794 | ** | ||
|
r2845 | ** $QT_BEGIN_LICENSE:COMM$ | ||
|
r794 | ** | ||
|
r2845 | ** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||||
** accordance with the commercial license agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and The Qt Company. For licensing terms | ||||
** and conditions see http://www.qt.io/terms-conditions. For further | ||||
** information use the contact form at http://www.qt.io/contact-us. | ||||
|
r794 | ** | ||
|
r2845 | ** $QT_END_LICENSE$ | ||
** | ||||
******************************************************************************/ | ||||
|
r794 | |||
|
r1366 | // W A R N I N G | ||
// ------------- | ||||
// | ||||
|
r2807 | // This file is not part of the Qt Chart API. It exists purely as an | ||
|
r1366 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r2275 | #ifndef XYDOMAIN_H | ||
#define XYDOMAIN_H | ||||
|
r2714 | #include <private/abstractdomain_p.h> | ||
#include <QtCore/QRectF> | ||||
#include <QtCore/QSizeF> | ||||
|
r131 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r131 | |||
|
r2712 | class QT_CHARTS_AUTOTEST_EXPORT XYDomain: public AbstractDomain | ||
|
r2097 | { | ||
|
r439 | Q_OBJECT | ||
|
r131 | public: | ||
|
r2275 | explicit XYDomain(QObject *object = 0); | ||
virtual ~XYDomain(); | ||||
|
r2273 | |||
|
r2284 | DomainType type(){ return AbstractDomain::XYDomain;} | ||
|
r439 | void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY); | ||
|
r2273 | |||
|
r2712 | friend bool QT_CHARTS_AUTOTEST_EXPORT operator== (const XYDomain &Domain1, const XYDomain &Domain2); | ||
friend bool QT_CHARTS_AUTOTEST_EXPORT operator!= (const XYDomain &Domain1, const XYDomain &Domain2); | ||||
friend QDebug QT_CHARTS_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYDomain &AbstractDomain); | ||||
|
r439 | |||
|
r2273 | void zoomIn(const QRectF &rect); | ||
void zoomOut(const QRectF &rect); | ||||
void move(qreal dx, qreal dy); | ||||
|
r2356 | QPointF calculateGeometryPoint(const QPointF &point, bool &ok) const; | ||
|
r2273 | QPointF calculateDomainPoint(const QPointF &point) const; | ||
|
r2820 | QVector<QPointF> calculateGeometryPoints(const QVector<QPointF> &vector) const; | ||
|
r131 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r131 | |||
|
r2275 | #endif // XYDOMAIN_H | ||