26 Q_PROPERTY(
float clipNear READ clipNear WRITE setClipNear NOTIFY clipNearChanged)
27 Q_PROPERTY(
float clipFar READ clipFar WRITE setClipFar NOTIFY clipFarChanged)
28 Q_PROPERTY(
float fieldOfView READ fieldOfView WRITE setFieldOfView NOTIFY fieldOfViewChanged)
29 Q_PROPERTY(FieldOfViewOrientation fieldOfViewOrientation READ fieldOfViewOrientation WRITE setFieldOfViewOrientation NOTIFY fieldOfViewOrientationChanged)
31 QML_NAMED_ELEMENT(PerspectiveCamera)
34 enum FieldOfViewOrientation {
38 Q_ENUM(FieldOfViewOrientation)
40 explicit QQuick3DPerspectiveCamera(QQuick3DNode *parent =
nullptr);
42 float clipNear()
const;
43 float clipFar()
const;
44 float fieldOfView()
const;
45 FieldOfViewOrientation fieldOfViewOrientation()
const;
48 void setClipNear(
float clipNear);
49 void setClipFar(
float clipFar);
50 void setFieldOfView(
float fieldOfView);
51 void setFieldOfViewOrientation(QQuick3DPerspectiveCamera::FieldOfViewOrientation fieldOfViewOrientation);
54 void clipNearChanged();
55 void clipFarChanged();
56 void fieldOfViewChanged();
57 void fieldOfViewOrientationChanged();
60 explicit QQuick3DPerspectiveCamera(QQuick3DNodePrivate &dd, QQuick3DNode *parent =
nullptr);
61 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
64 float m_clipNear = 10.0f;
65 float m_clipFar = 10000.0f;
66 float m_fieldOfView = 60.0f;
67 FieldOfViewOrientation m_fieldOfViewOrientation = Vertical;