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_QSPHEREGEOMETRYVIEW_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DCore/QGeometryView> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DExtras { |
13 | |
14 | class ; |
15 | |
16 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QGeometryView |
17 | { |
18 | Q_OBJECT |
19 | Q_PROPERTY(int rings READ rings WRITE setRings NOTIFY ringsChanged) |
20 | Q_PROPERTY(int slices READ slices WRITE setSlices NOTIFY slicesChanged) |
21 | Q_PROPERTY(float radius READ radius WRITE setRadius NOTIFY radiusChanged) |
22 | Q_PROPERTY(bool generateTangents READ generateTangents WRITE setGenerateTangents NOTIFY generateTangentsChanged) |
23 | |
24 | public: |
25 | explicit (Qt3DCore::QNode *parent = nullptr); |
26 | (); |
27 | |
28 | int () const; |
29 | int () const; |
30 | float () const; |
31 | bool () const; |
32 | |
33 | public Q_SLOTS: |
34 | void (int rings); |
35 | void (int slices); |
36 | void (float radius); |
37 | void (bool gen); |
38 | |
39 | Q_SIGNALS: |
40 | void (float radius); |
41 | void (int rings); |
42 | void (int slices); |
43 | void (bool generateTangents); |
44 | |
45 | private: |
46 | // As this is a default provided geometry renderer, no one should be able |
47 | // to modify the QGeometryRenderer's properties |
48 | |
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_QSPHEREGEOMETRYVIEW_H |
63 | |