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 QCUSTOMLABELITEM_P_H |
15 | #define QCUSTOMLABELITEM_P_H |
16 | |
17 | #include "qcustom3dlabel.h" |
18 | #include "qcustom3ditem_p.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QCustom3DLabelPrivate : public QCustom3DItemPrivate |
23 | { |
24 | Q_OBJECT |
25 | |
26 | public: |
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 | void createTextureImage(); |
35 | void createTextureImage(const QColor &bgrColor, const QColor &txtColor, bool background, |
36 | bool borders); |
37 | void handleTextureChange(); |
38 | |
39 | public: |
40 | QString m_text; |
41 | QFont m_font; |
42 | QColor m_bgrColor; |
43 | QColor m_txtColor; |
44 | bool m_background; |
45 | bool m_borders; |
46 | bool m_facingCamera; |
47 | |
48 | bool m_customVisuals; |
49 | |
50 | bool m_facingCameraDirty; |
51 | |
52 | private: |
53 | friend class QCustom3DLabel; |
54 | }; |
55 | |
56 | QT_END_NAMESPACE |
57 | |
58 | #endif |
59 |