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 QCUSTOMLABELITEM_P_H
15#define QCUSTOMLABELITEM_P_H
16
17#include "qcustom3dlabel.h"
18#include "qcustom3ditem_p.h"
19
20QT_BEGIN_NAMESPACE
21
22class QCustom3DLabelPrivate : public QCustom3DItemPrivate
23{
24 Q_DECLARE_PUBLIC(QCustom3DLabel)
25
26public:
27 QCustom3DLabelPrivate(QCustom3DLabel *q);
28 QCustom3DLabelPrivate(QCustom3DLabel *q, const QString &text, const QFont &font,
29 const QVector3D &position, const QVector3D &scaling,
30 const QQuaternion &rotation);
31 virtual ~QCustom3DLabelPrivate();
32
33 void resetDirtyBits();
34
35public:
36 QString m_text;
37 QFont m_font;
38 QColor m_bgrColor;
39 QColor m_txtColor;
40 bool m_background;
41 bool m_borders;
42 bool m_facingCamera;
43
44 bool m_customVisuals;
45
46 bool m_facingCameraDirty;
47};
48
49QT_END_NAMESPACE
50
51#endif
52

source code of qtgraphs/src/graphs/data/qcustom3dlabel_p.h