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_QTORUSMESH_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DRender/qgeometryrenderer.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DExtras { |
13 | |
14 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QGeometryRenderer |
15 | { |
16 | Q_OBJECT |
17 | Q_PROPERTY(int rings READ rings WRITE setRings NOTIFY ringsChanged) |
18 | Q_PROPERTY(int slices READ slices WRITE setSlices NOTIFY slicesChanged) |
19 | Q_PROPERTY(float radius READ radius WRITE setRadius NOTIFY radiusChanged) |
20 | Q_PROPERTY(float minorRadius READ minorRadius WRITE setMinorRadius NOTIFY minorRadiusChanged) |
21 | public: |
22 | explicit (Qt3DCore::QNode *parent = nullptr); |
23 | (); |
24 | |
25 | int () const; |
26 | int () const; |
27 | float () const; |
28 | float () const; |
29 | |
30 | public Q_SLOTS: |
31 | void (int rings); |
32 | void (int slices); |
33 | void (float radius); |
34 | void (float minorRadius); |
35 | |
36 | Q_SIGNALS: |
37 | void (float radius); |
38 | void (int rings); |
39 | void (int slices); |
40 | void (float minorRadius); |
41 | |
42 | private: |
43 | // As this is a default provided geometry renderer, no one should be able |
44 | // to modify the QGeometryRenderer's properties |
45 | |
46 | void (int instanceCount); |
47 | void (int vertexCount); |
48 | void (int indexOffset); |
49 | void (int firstInstance); |
50 | void (int index); |
51 | void (bool enabled); |
52 | void (Qt3DCore::QGeometry *geometry); |
53 | void (PrimitiveType primitiveType); |
54 | }; |
55 | |
56 | } // namespace Qt3DExtras |
57 | |
58 | QT_END_NAMESPACE |
59 | |
60 | #endif // QT3DEXTRAS_QTORUSMESH_H |
61 | |