1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4// W A R N I N G
5// -------------
6//
7// This file is not part of the Qt Chart API. It exists purely as an
8// implementation detail. This header file may change from version to
9// version without notice, or even be removed.
10//
11// We mean it.
12
13#ifndef XYPOLARDOMAIN_H
14#define XYPOLARDOMAIN_H
15#include <private/polardomain_p.h>
16#include <QtCharts/private/qchartglobal_p.h>
17#include <QtCore/QRectF>
18
19QT_BEGIN_NAMESPACE
20
21class Q_CHARTS_PRIVATE_EXPORT XYPolarDomain: public PolarDomain
22{
23 Q_OBJECT
24public:
25 explicit XYPolarDomain(QObject *object = 0);
26 virtual ~XYPolarDomain();
27
28 DomainType type() override { return AbstractDomain::XYPolarDomain; }
29
30 void setRange(qreal minX, qreal maxX, qreal minY, qreal maxY) override;
31
32 friend bool Q_AUTOTEST_EXPORT operator== (const XYPolarDomain &Domain1, const XYPolarDomain &Domain2);
33 friend bool Q_AUTOTEST_EXPORT operator!= (const XYPolarDomain &Domain1, const XYPolarDomain &Domain2);
34 friend QDebug Q_AUTOTEST_EXPORT operator<<(QDebug dbg, const XYPolarDomain &AbstractDomain);
35
36 void zoomIn(const QRectF &rect) override;
37 void zoomOut(const QRectF &rect) override;
38 void move(qreal dx, qreal dy) override;
39
40 QPointF calculateDomainPoint(const QPointF &point) const override;
41
42protected:
43 qreal toAngularCoordinate(qreal value, bool &ok) const override;
44 qreal toRadialCoordinate(qreal value, bool &ok) const override;
45};
46
47QT_END_NAMESPACE
48
49#endif // XYPOLARDOMAIN_H
50

source code of qtcharts/src/charts/domain/xypolardomain_p.h