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_QSPHEREGEOMETRY_H |
5 | #define |
6 | |
7 | #include <Qt3DCore/qgeometry.h> |
8 | #include <Qt3DExtras/qt3dextras_global.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DCore { |
13 | |
14 | class QAttribute; |
15 | |
16 | } // Qt3DCore |
17 | |
18 | namespace Qt3DExtras { |
19 | |
20 | class ; |
21 | |
22 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QGeometry |
23 | { |
24 | Q_OBJECT |
25 | Q_PROPERTY(int rings READ rings WRITE setRings NOTIFY ringsChanged) |
26 | Q_PROPERTY(int slices READ slices WRITE setSlices NOTIFY slicesChanged) |
27 | Q_PROPERTY(float radius READ radius WRITE setRadius NOTIFY radiusChanged) |
28 | Q_PROPERTY(bool generateTangents READ generateTangents WRITE setGenerateTangents NOTIFY generateTangentsChanged) |
29 | Q_PROPERTY(Qt3DCore::QAttribute *positionAttribute READ positionAttribute CONSTANT) |
30 | Q_PROPERTY(Qt3DCore::QAttribute *normalAttribute READ normalAttribute CONSTANT) |
31 | Q_PROPERTY(Qt3DCore::QAttribute *texCoordAttribute READ texCoordAttribute CONSTANT) |
32 | Q_PROPERTY(Qt3DCore::QAttribute *tangentAttribute READ tangentAttribute CONSTANT) |
33 | Q_PROPERTY(Qt3DCore::QAttribute *indexAttribute READ indexAttribute CONSTANT) |
34 | |
35 | public: |
36 | explicit (QNode *parent = nullptr); |
37 | (); |
38 | |
39 | void (); |
40 | void (); |
41 | |
42 | bool () const; |
43 | int () const; |
44 | int () const; |
45 | float () const; |
46 | |
47 | Qt3DCore::QAttribute *() const; |
48 | Qt3DCore::QAttribute *() const; |
49 | Qt3DCore::QAttribute *() const; |
50 | Qt3DCore::QAttribute *() const; |
51 | Qt3DCore::QAttribute *() const; |
52 | |
53 | public Q_SLOTS: |
54 | void (int rings); |
55 | void (int slices); |
56 | void (float radius); |
57 | void (bool gen); |
58 | |
59 | Q_SIGNALS: |
60 | void (float radius); |
61 | void (int rings); |
62 | void (int slices); |
63 | void (bool generateTangents); |
64 | |
65 | protected: |
66 | (QSphereGeometryPrivate &dd, QNode *parent = nullptr); |
67 | |
68 | private: |
69 | Q_DECLARE_PRIVATE(QSphereGeometry) |
70 | }; |
71 | |
72 | } // Qt3DExtras |
73 | |
74 | QT_END_NAMESPACE |
75 | |
76 | #endif // QT3DEXTRAS_QSPHEREGEOMETRY_H |
77 | |