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