Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
heightfieldgeometry_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef HEIGHTFIELDGEOMETRY_H
16#define HEIGHTFIELDGEOMETRY_H
17
18#include <QtQuick3D/private/qquick3dgeometry_p.h>
19
20// Workaround for QTBUG-94099, ensures qml_register_types...() is exported
22
24
26{
28 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged REVISION(6, 5))
32public:
34
35 const QUrl &source() const;
36 void setSource(const QUrl &newSource);
37
38 bool smoothShading() const;
39 void setSmoothShading(bool smooth);
40 const QVector3D &extents() const;
41 void setExtents(const QVector3D &newExtents);
42
47
49 void updateData();
50 QVector3D m_extents = { 100, 100, 100 };
51 QUrl m_heightMapSource;
52 bool m_smoothShading = true;
53 bool m_extentsSetExplicitly = false;
54
55#if QT_DEPRECATED_SINCE(6, 5)
56 Q_PROPERTY(QUrl heightMap READ source WRITE setSource NOTIFY sourceChanged)
57#endif
58};
59
61
62#endif
void setSource(const QUrl &newSource)
void setExtents(const QVector3D &newExtents)
void setSmoothShading(bool smooth)
\qmltype Geometry \inherits Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DGeometry
\inmodule QtCore
Definition qurl.h:94
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define signals