1// Copyright (C) 2023 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 QtGraphs 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 "qabstract3dseries_p.h"
18#include "qbar3dseries.h"
19
20QT_BEGIN_NAMESPACE
21
22class QBar3DSeriesPrivate : public QAbstract3DSeriesPrivate
23{
24 Q_DECLARE_PUBLIC(QBar3DSeries)
25
26public:
27 static QBar3DSeriesPrivate *get(QBar3DSeries *item) { return item->d_func(); }
28 QBar3DSeriesPrivate();
29 ~QBar3DSeriesPrivate() override;
30
31 void setDataProxy(QAbstractDataProxy *proxy) override;
32 void connectGraphAndProxy(QQuickGraphsItem *newGraph) override;
33 void createItemLabel() override;
34
35 void setSelectedBar(QPoint position);
36
37 void setRowColors(const QList<QColor> &colors);
38
39 void setValueColoringEnabled(bool enabled);
40
41 void setDataArray(const QBarDataArray &newDataArray);
42 void clearRow(qsizetype rowIndex);
43 void clearArray();
44
45 void setRowLabels(const QStringList &labels);
46 void setColumnLabels(const QStringList &labels);
47 void fixRowLabels(qsizetype startIndex,
48 qsizetype count,
49 const QStringList &newLabels,
50 bool isInsert);
51
52private:
53 QBarDataArray m_dataArray;
54 QStringList m_rowLabels;
55 QStringList m_columnLabels;
56 QPoint m_selectedBar;
57 QList<QColor> m_rowColors;
58 bool m_valueColoring;
59
60 friend class QQuickGraphsBars;
61};
62
63QT_END_NAMESPACE
64
65#endif
66

source code of qtgraphs/src/graphs3d/data/qbar3dseries_p.h