| 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 QT3DEXTRAS_QPLANEGEOMETRY_H |
| 5 | #define |
| 6 | |
| 7 | #include <Qt3DExtras/qt3dextras_global.h> |
| 8 | #include <Qt3DCore/qgeometry.h> |
| 9 | #include <QtCore/QSize> |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | namespace Qt3DCore { |
| 14 | |
| 15 | class QAttribute; |
| 16 | |
| 17 | } // Qt3DCore |
| 18 | |
| 19 | namespace Qt3DExtras { |
| 20 | |
| 21 | class ; |
| 22 | |
| 23 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QGeometry |
| 24 | { |
| 25 | Q_OBJECT |
| 26 | Q_PROPERTY(float width READ width WRITE setWidth NOTIFY widthChanged) |
| 27 | Q_PROPERTY(float height READ height WRITE setHeight NOTIFY heightChanged) |
| 28 | Q_PROPERTY(QSize resolution READ resolution WRITE setResolution NOTIFY resolutionChanged) |
| 29 | Q_PROPERTY(bool mirrored READ mirrored WRITE setMirrored NOTIFY mirroredChanged REVISION 9) |
| 30 | Q_PROPERTY(Qt3DCore::QAttribute *positionAttribute READ positionAttribute CONSTANT) |
| 31 | Q_PROPERTY(Qt3DCore::QAttribute *normalAttribute READ normalAttribute CONSTANT) |
| 32 | Q_PROPERTY(Qt3DCore::QAttribute *texCoordAttribute READ texCoordAttribute CONSTANT) |
| 33 | Q_PROPERTY(Qt3DCore::QAttribute *tangentAttribute READ tangentAttribute CONSTANT) |
| 34 | Q_PROPERTY(Qt3DCore::QAttribute *indexAttribute READ indexAttribute CONSTANT) |
| 35 | |
| 36 | public: |
| 37 | explicit (QNode *parent = nullptr); |
| 38 | (); |
| 39 | |
| 40 | void (); |
| 41 | void (); |
| 42 | |
| 43 | QSize () const; |
| 44 | float () const; |
| 45 | float () const; |
| 46 | bool () const; |
| 47 | |
| 48 | Qt3DCore::QAttribute *() const; |
| 49 | Qt3DCore::QAttribute *() const; |
| 50 | Qt3DCore::QAttribute *() const; |
| 51 | Qt3DCore::QAttribute *() const; |
| 52 | Qt3DCore::QAttribute *() const; |
| 53 | |
| 54 | public Q_SLOTS: |
| 55 | void (const QSize &resolution); |
| 56 | void (float width); |
| 57 | void (float height); |
| 58 | void (bool mirrored); |
| 59 | |
| 60 | Q_SIGNALS: |
| 61 | void (const QSize &resolution); |
| 62 | void (float width); |
| 63 | void (float height); |
| 64 | void (bool mirrored); |
| 65 | |
| 66 | protected: |
| 67 | (QPlaneGeometryPrivate &dd, QNode *parent = nullptr); |
| 68 | |
| 69 | private: |
| 70 | Q_DECLARE_PRIVATE(QPlaneGeometry) |
| 71 | }; |
| 72 | |
| 73 | } // Qt3DExpoerimental |
| 74 | |
| 75 | QT_END_NAMESPACE |
| 76 | |
| 77 | #endif // QT3DEXTRAS_QPLANEGEOMETRY_H |
| 78 | |