blob: 671fdf6e69b22cbfa6e966f208fce515157e48a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef QBAR3DSERIES_H
#define QBAR3DSERIES_H
#include <QtGraphs/qabstract3dseries.h>
#include <QtGraphs/qbardataproxy.h>
#include <QtCore/QPoint>
QT_BEGIN_NAMESPACE
class QBar3DSeriesPrivate;
class Q_GRAPHS_EXPORT QBar3DSeries : public QAbstract3DSeries
{
Q_OBJECT
Q_PROPERTY(QBarDataProxy *dataProxy READ dataProxy WRITE setDataProxy NOTIFY dataProxyChanged)
Q_PROPERTY(QPoint selectedBar READ selectedBar WRITE setSelectedBar NOTIFY selectedBarChanged)
Q_PROPERTY(float meshAngle READ meshAngle WRITE setMeshAngle NOTIFY meshAngleChanged)
Q_PROPERTY(QList<QColor> rowColors READ rowColors WRITE setRowColors NOTIFY rowColorsChanged)
public:
explicit QBar3DSeries(QObject *parent = nullptr);
explicit QBar3DSeries(QBarDataProxy *dataProxy, QObject *parent = nullptr);
virtual ~QBar3DSeries();
void setDataProxy(QBarDataProxy *proxy);
QBarDataProxy *dataProxy() const;
void setSelectedBar(const QPoint &position);
QPoint selectedBar() const;
static QPoint invalidSelectionPosition();
void setMeshAngle(float angle);
float meshAngle() const;
QList<QColor> rowColors() const;
void setRowColors(const QList<QColor> &colors);
Q_SIGNALS:
void dataProxyChanged(QBarDataProxy *proxy);
void selectedBarChanged(const QPoint &position);
void meshAngleChanged(float angle);
void rowColorsChanged(const QList<QColor> &rowcolors);
protected:
QBar3DSeriesPrivate *dptr();
const QBar3DSeriesPrivate *dptrc() const;
private:
Q_DISABLE_COPY(QBar3DSeries)
friend class Bars3DController;
friend class QQuickGraphsBars;
};
QT_END_NAMESPACE
#endif
|