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_QGOOCHMATERIAL_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DRender/qmaterial.h> |
9 | #include <QtGui/QColor> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DExtras { |
14 | |
15 | class ; |
16 | |
17 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QMaterial |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(QColor diffuse READ diffuse WRITE setDiffuse NOTIFY diffuseChanged) |
21 | Q_PROPERTY(QColor specular READ specular WRITE setSpecular NOTIFY specularChanged) |
22 | Q_PROPERTY(QColor cool READ cool WRITE setCool NOTIFY coolChanged) |
23 | Q_PROPERTY(QColor warm READ warm WRITE setWarm NOTIFY warmChanged) |
24 | Q_PROPERTY(float alpha READ alpha WRITE setAlpha NOTIFY alphaChanged) |
25 | Q_PROPERTY(float beta READ beta WRITE setBeta NOTIFY betaChanged) |
26 | Q_PROPERTY(float shininess READ shininess WRITE setShininess NOTIFY shininessChanged) |
27 | |
28 | public: |
29 | explicit (Qt3DCore::QNode *parent = nullptr); |
30 | (); |
31 | |
32 | QColor () const; |
33 | QColor () const; |
34 | QColor () const; |
35 | QColor () const; |
36 | float () const; |
37 | float () const; |
38 | float () const; |
39 | |
40 | public Q_SLOTS: |
41 | void (const QColor &diffuse); |
42 | void (const QColor &specular); |
43 | void (const QColor &cool); |
44 | void (const QColor &warm); |
45 | void (float alpha); |
46 | void (float beta); |
47 | void (float shininess); |
48 | |
49 | Q_SIGNALS: |
50 | void (const QColor &diffuse); |
51 | void (const QColor &specular); |
52 | void (const QColor &cool); |
53 | void (const QColor &warm); |
54 | void (float alpha); |
55 | void (float beta); |
56 | void (float shininess); |
57 | |
58 | protected: |
59 | explicit (QGoochMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
60 | |
61 | private: |
62 | Q_DECLARE_PRIVATE(QGoochMaterial) |
63 | }; |
64 | |
65 | } // namespace Qt3DExtras |
66 | |
67 | QT_END_NAMESPACE |
68 | |
69 | #endif // QT3DEXTRAS_QGOOCHMATERIAL_H |
70 | |