1 | // Copyright (C) 2016 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_QCONEGEOMETRY_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 | class QAttribute; |
14 | } // Render |
15 | |
16 | namespace Qt3DExtras { |
17 | |
18 | class ; |
19 | |
20 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QGeometry |
21 | { |
22 | Q_OBJECT |
23 | Q_PROPERTY( bool hasTopEndcap READ hasTopEndcap WRITE setHasTopEndcap NOTIFY hasTopEndcapChanged ) |
24 | Q_PROPERTY( bool hasBottomEndcap READ hasBottomEndcap WRITE setHasBottomEndcap NOTIFY hasBottomEndcapChanged ) |
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 topRadius READ topRadius WRITE setTopRadius NOTIFY topRadiusChanged ) |
28 | Q_PROPERTY( float bottomRadius READ bottomRadius WRITE setBottomRadius NOTIFY bottomRadiusChanged ) |
29 | Q_PROPERTY(float length READ length WRITE setLength NOTIFY lengthChanged) |
30 | Q_PROPERTY(Qt3DCore::QAttribute *positionAttribute READ positionAttribute CONSTANT) |
31 | Q_PROPERTY(Qt3DCore::QAttribute *normalAttribute READ normalAttribute CONSTANT) |
32 | Q_PROPERTY(Qt3DCore::QAttribute *texCoordAttribute READ texCoordAttribute 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 | bool () const; |
44 | float () const; |
45 | float () const; |
46 | int () const; |
47 | int () const; |
48 | float () const; |
49 | |
50 | Qt3DCore::QAttribute *() const; |
51 | Qt3DCore::QAttribute *() const; |
52 | Qt3DCore::QAttribute *() const; |
53 | Qt3DCore::QAttribute *() const; |
54 | |
55 | public Q_SLOTS: |
56 | void ( bool hasTopEndcap ); |
57 | void ( bool hasBottomEndcap ); |
58 | void ( float topRadius ); |
59 | void ( float bottomRadius ); |
60 | void ( int rings ); |
61 | void ( int slices ); |
62 | void ( float length ); |
63 | |
64 | Q_SIGNALS: |
65 | void ( bool hasTopEndcap ); |
66 | void ( bool hasBottomEndcap ); |
67 | void ( float topRadius ); |
68 | void ( float bottomRadius ); |
69 | void ( int rings ); |
70 | void ( int slices ); |
71 | void ( float length ); |
72 | |
73 | protected: |
74 | (QConeGeometryPrivate &dd, QNode *parent = nullptr); |
75 | |
76 | private: |
77 | Q_DECLARE_PRIVATE(QConeGeometry) |
78 | }; |
79 | |
80 | } // namespace Qt3DExtras |
81 | |
82 | QT_END_NAMESPACE |
83 | |
84 | #endif // QT3DEXTRAS_QCONEGEOMETRY_H |
85 | |