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