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
qquick3dcustomcamera_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 QSSGCUSTOMCAMERA_H
7#define QSSGCUSTOMCAMERA_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/qquick3dcamera_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSSGRenderCamera;
25class Q_QUICK3D_EXPORT QQuick3DCustomCamera : public QQuick3DCamera
26{
27 Q_OBJECT
28 Q_PROPERTY(QMatrix4x4 projection READ projection WRITE setProjection NOTIFY projectionChanged)
29
30 QML_NAMED_ELEMENT(CustomCamera)
31
32public:
33 explicit QQuick3DCustomCamera(QQuick3DNode *parent = nullptr);
34
35 QMatrix4x4 projection() const;
36
37public Q_SLOTS:
38 void setProjection(const QMatrix4x4 &projection);
39
40Q_SIGNALS:
41 void projectionChanged();
42
43protected:
44 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
45
46private:
47 QMatrix4x4 m_projection;
48};
49
50QT_END_NAMESPACE
51
52#endif // QSSGCUSTOMCAMERA_H
Combined button and popup list for selecting options.