26 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged REVISION(6, 5))
27 Q_PROPERTY(
bool smoothShading READ smoothShading WRITE setSmoothShading NOTIFY smoothShadingChanged)
28 Q_PROPERTY(QVector3D extents READ extents WRITE setExtents NOTIFY extentsChanged)
29 QML_NAMED_ELEMENT(HeightFieldGeometry)
31 HeightFieldGeometry();
33 const QUrl &source()
const;
34 void setSource(
const QUrl &newSource);
36 bool smoothShading()
const;
37 void setSmoothShading(
bool smooth);
38 const QVector3D &extents()
const;
39 void setExtents(
const QVector3D &newExtents);
43 void smoothShadingChanged();
44 void extentsChanged();
48 QVector3D m_extents = { 100, 100, 100 };
49 QUrl m_heightMapSource;
50 bool m_smoothShading =
true;
51 bool m_extentsSetExplicitly =
false;
53#if QT_DEPRECATED_SINCE(6
, 5
)
54 Q_PROPERTY(QUrl heightMap READ source WRITE setSource NOTIFY sourceChanged)