Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
6
//
7
// W A R N I N G
8
// -------------
9
//
10
// This file is not part of the Qt API. It exists purely as an
11
// implementation detail. This header file may change from version to
12
// version without notice, or even be removed.
13
//
14
// We mean it.
15
//
16
17
#
ifndef
HEIGHTFIELDGEOMETRY_H
18
#
define
HEIGHTFIELDGEOMETRY_H
19
20
#
include
<
QtQuick3DHelpers
/
qtquick3dhelpersexports
.
h
>
21
#
include
<
QtQuick3D
/
private
/
qquick3dgeometry_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_QUICK3DHELPERS_EXPORT
HeightFieldGeometry
:
public
QQuick3DGeometry
26
{
27
Q_OBJECT
28
Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged REVISION(6, 5))
29
Q_PROPERTY(
bool
smoothShading READ smoothShading WRITE setSmoothShading NOTIFY smoothShadingChanged)
30
Q_PROPERTY(QVector3D extents READ extents WRITE setExtents NOTIFY extentsChanged)
31
QML_NAMED_ELEMENT(HeightFieldGeometry)
32
public
:
33
HeightFieldGeometry();
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
43
signals:
44
void
sourceChanged();
45
void
smoothShadingChanged();
46
void
extentsChanged();
47
48
private
:
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
60
QT_END_NAMESPACE
61
62
#
endif
HeightFieldGeometry
Definition
heightfieldgeometry_p.h:26
qtquick3d
src
helpers
heightfieldgeometry_p.h
Generated on
for Qt by
1.18.0