1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QBARDATAITEM_H
5#define QBARDATAITEM_H
6
7#include <QtDataVisualization/qdatavisualizationglobal.h>
8
9QT_BEGIN_NAMESPACE
10
11class QBarDataItemPrivate;
12
13class Q_DATAVISUALIZATION_EXPORT QBarDataItem
14{
15public:
16 QBarDataItem();
17 QBarDataItem(float value);
18 QBarDataItem(float value, float angle);
19 QBarDataItem(const QBarDataItem &other);
20 ~QBarDataItem();
21
22 QBarDataItem &operator=(const QBarDataItem &other);
23
24 inline void setValue(float val) { m_value = val; }
25 inline float value() const { return m_value; }
26 inline void setRotation(float angle) { m_angle = angle; }
27 inline float rotation() const { return m_angle; }
28
29protected:
30 void createExtraData();
31
32 QBarDataItemPrivate *d_ptr;
33
34private:
35 float m_value;
36 float m_angle;
37};
38
39QT_END_NAMESPACE
40
41#endif
42

source code of qtdatavis3d/src/datavisualization/data/qbardataitem.h