Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dfrustumcamera_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
6#ifndef QSSGFRUSTUMCAMERA_H
7#define QSSGFRUSTUMCAMERA_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtQuick3D/private/qquick3dperspectivecamera_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSSGRenderCamera;
25class Q_QUICK3D_EXPORT QQuick3DFrustumCamera : public QQuick3DPerspectiveCamera
26{
27 Q_OBJECT
28 Q_PROPERTY(float top READ top WRITE setTop NOTIFY topChanged)
29 Q_PROPERTY(float bottom READ bottom WRITE setBottom NOTIFY bottomChanged)
30 Q_PROPERTY(float right READ right WRITE setRight NOTIFY rightChanged)
31 Q_PROPERTY(float left READ left WRITE setLeft NOTIFY leftChanged)
32
33 QML_NAMED_ELEMENT(FrustumCamera)
34
35public:
36 explicit QQuick3DFrustumCamera(QQuick3DNode *parent = nullptr);
37
38 float top() const;
39 float bottom() const;
40 float right() const;
41 float left() const;
42
43public Q_SLOTS:
44 void setTop(float top);
45 void setBottom(float bottom);
46 void setRight(float right);
47 void setLeft(float left);
48
49Q_SIGNALS:
50 void topChanged();
51 void bottomChanged();
52 void rightChanged();
53 void leftChanged();
54
55protected:
56 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
57
58private:
59 float m_top = 0.0f;
60 float m_bottom = 0.0f;
61 float m_right = 0.0f;
62 float m_left = 0.0f;
63};
64
65QT_END_NAMESPACE
66
67#endif // QSSGFRUSTUMCAMERA_H
Combined button and popup list for selecting options.