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 QT3DRENDER_QRENDERSETTINGS_P_H |
5 | #define QT3DRENDER_QRENDERSETTINGS_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <Qt3DCore/private/qcomponent_p.h> |
19 | #include <Qt3DRender/qrendersettings.h> |
20 | #include <Qt3DRender/qpickingsettings.h> |
21 | #include <Qt3DRender/qrendercapabilities.h> |
22 | #include <Qt3DRender/private/qt3drender_global_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace Qt3DRender { |
27 | |
28 | class Q_3DRENDERSHARED_PRIVATE_EXPORT QRenderSettingsPrivate : public Qt3DCore::QComponentPrivate |
29 | { |
30 | public: |
31 | QRenderSettingsPrivate(); |
32 | |
33 | void init(); |
34 | |
35 | QPickingSettings m_pickingSettings; |
36 | QFrameGraphNode *m_activeFrameGraph; |
37 | QRenderSettings::RenderPolicy m_renderPolicy; |
38 | QRenderCapabilities m_renderCapabilities; |
39 | |
40 | void invalidateFrame(); |
41 | |
42 | void _q_onPickingMethodChanged(QPickingSettings::PickMethod pickMethod); |
43 | void _q_onPickResultModeChanged(QPickingSettings::PickResultMode pickResultMode); |
44 | void _q_onFaceOrientationPickingModeChanged(QPickingSettings::FaceOrientationPickingMode faceOrientationPickingMode); |
45 | void _q_onWorldSpaceToleranceChanged(float worldSpaceTolerance); |
46 | |
47 | Q_DECLARE_PUBLIC(QRenderSettings) |
48 | }; |
49 | |
50 | struct QRenderSettingsData |
51 | { |
52 | Qt3DCore::QNodeId activeFrameGraphId; |
53 | QRenderSettings::RenderPolicy renderPolicy; |
54 | QPickingSettings::PickMethod pickMethod; |
55 | QPickingSettings::PickResultMode pickResultMode; |
56 | QPickingSettings::FaceOrientationPickingMode faceOrientationPickingMode; |
57 | float pickWorldSpaceTolerance; |
58 | }; |
59 | |
60 | } // namespace Qt3Drender |
61 | |
62 | QT_END_NAMESPACE |
63 | |
64 | #endif // QT3DRENDER_QRENDERSETTINGS_P_H |
65 |