| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // |
| 5 | // W A R N I N G |
| 6 | // ------------- |
| 7 | // |
| 8 | // This file is not part of the QtDataVisualization API. It exists purely as an |
| 9 | // implementation detail. This header file may change from version to |
| 10 | // version without notice, or even be removed. |
| 11 | // |
| 12 | // We mean it. |
| 13 | |
| 14 | #ifndef QBAR3DSERIES_P_H |
| 15 | #define QBAR3DSERIES_P_H |
| 16 | |
| 17 | #include "qbar3dseries.h" |
| 18 | #include "qabstract3dseries_p.h" |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QQuaternion; |
| 23 | |
| 24 | class QBar3DSeriesPrivate : public QAbstract3DSeriesPrivate |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | public: |
| 28 | QBar3DSeriesPrivate(QBar3DSeries *q); |
| 29 | virtual ~QBar3DSeriesPrivate(); |
| 30 | |
| 31 | void setDataProxy(QAbstractDataProxy *proxy) override; |
| 32 | void connectControllerAndProxy(Abstract3DController *newController) override; |
| 33 | void createItemLabel() override; |
| 34 | |
| 35 | void handleMeshRotationChanged(const QQuaternion &rotation); |
| 36 | |
| 37 | void setSelectedBar(const QPoint &position); |
| 38 | |
| 39 | void connectSignals(); |
| 40 | |
| 41 | void setRowColors(const QList<QColor> &colors); |
| 42 | |
| 43 | private: |
| 44 | QBar3DSeries *qptr(); |
| 45 | |
| 46 | QPoint m_selectedBar; |
| 47 | |
| 48 | QList<QColor> m_rowColors; |
| 49 | |
| 50 | private: |
| 51 | friend class QBar3DSeries; |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | #endif |
| 57 | |