1 | // Copyright (C) 2014 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_QPLANEGEOMETRYVIEW_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DCore/qgeometryview.h> |
9 | #include <QtCore/QSize> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DExtras { |
14 | |
15 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QGeometryView |
16 | { |
17 | Q_OBJECT |
18 | Q_PROPERTY(float width READ width WRITE setWidth NOTIFY widthChanged) |
19 | Q_PROPERTY(float height READ height WRITE setHeight NOTIFY heightChanged) |
20 | Q_PROPERTY(QSize meshResolution READ meshResolution WRITE setMeshResolution NOTIFY meshResolutionChanged) |
21 | Q_PROPERTY(bool mirrored READ mirrored WRITE setMirrored NOTIFY mirroredChanged REVISION 9) |
22 | |
23 | public: |
24 | explicit (Qt3DCore::QNode *parent = nullptr); |
25 | (); |
26 | |
27 | float () const; |
28 | float () const; |
29 | QSize () const; |
30 | bool () const; |
31 | |
32 | public Q_SLOTS: |
33 | void (float width); |
34 | void (float height); |
35 | void (const QSize &resolution); |
36 | void (bool mirrored); |
37 | |
38 | Q_SIGNALS: |
39 | void (const QSize &meshResolution); |
40 | void (float width); |
41 | void (float height); |
42 | void (bool mirrored); |
43 | |
44 | private: |
45 | // As this is a default provided geometry renderer, no one should be able |
46 | // to modify the QGeometryRenderer's properties |
47 | |
48 | void (int instanceCount); |
49 | void (int vertexCount); |
50 | void (int indexOffset); |
51 | void (int firstInstance); |
52 | void (int index); |
53 | void (bool enabled); |
54 | void (Qt3DCore::QGeometry *geometry); |
55 | void (PrimitiveType primitiveType); |
56 | }; |
57 | |
58 | } // namespace Qt3DExtras |
59 | |
60 | QT_END_NAMESPACE |
61 | |
62 | #endif // QT3DEXTRAS_QPLANEGEOMETRYVIEW_H |
63 | |