| 1 | // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QT3DCORE_QGEOMETRY_P_H |
| 5 | #define QT3DCORE_QGEOMETRY_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists for the convenience |
| 12 | // of other Qt classes. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <Qt3DCore/private/qt3dcore_global_p.h> |
| 19 | #include <Qt3DCore/private/qnode_p.h> |
| 20 | #include <Qt3DCore/qgeometry.h> |
| 21 | #include <QVector3D> |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | namespace Qt3DCore { |
| 26 | |
| 27 | class QAttribute; |
| 28 | |
| 29 | class Q_3DCORESHARED_EXPORT QGeometryPrivate : public QNodePrivate |
| 30 | { |
| 31 | public: |
| 32 | Q_DECLARE_PUBLIC(QGeometry) |
| 33 | QGeometryPrivate(); |
| 34 | ~QGeometryPrivate(); |
| 35 | |
| 36 | void setScene(QScene *scene) override; |
| 37 | void update() override; |
| 38 | void setExtent(const QVector3D &minExtent, const QVector3D &maxExtent); |
| 39 | static QGeometryPrivate *get(QGeometry *q); |
| 40 | |
| 41 | QList<QAttribute *> m_attributes; |
| 42 | QAttribute *m_boundingVolumePositionAttribute; |
| 43 | QVector3D m_minExtent; |
| 44 | QVector3D m_maxExtent; |
| 45 | bool m_dirty; |
| 46 | }; |
| 47 | |
| 48 | } // namespace Qt3DCore |
| 49 | |
| 50 | QT_END_NAMESPACE |
| 51 | |
| 52 | #endif // QT3DCORE_QGEOMETRY_P_H |
| 53 | |
| 54 | |