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)
33 HeightFieldGeometry();
35 const QUrl &source()
const;
36 void setSource(
const QUrl &newSource);
38 bool smoothShading()
const;
39 void setSmoothShading(
bool smooth);
40 const QVector3D &extents()
const;
41 void setExtents(
const QVector3D &newExtents);
45 void smoothShadingChanged();
46 void extentsChanged();
50 QVector3D m_extents = { 100, 100, 100 };
51 QUrl m_heightMapSource;
52 bool m_smoothShading =
true;
53 bool m_extentsSetExplicitly =
false;
55#if QT_DEPRECATED_SINCE(6
, 5
)
56 Q_PROPERTY(QUrl heightMap READ source WRITE setSource NOTIFY sourceChanged)