Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 845e36bb3ecce380666d628d88446962 > files > 111

qtdatavis3d5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qheightmapsurfacedataproxy.cpp -->
  <title>QHeightMapSurfaceDataProxy Class | Qt Data Visualization 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtdatavisualization-index.html">Qt Data Visualization</a></td><td ><a href="qtdatavisualization-module.html">C++ Classes</a></td><td >QHeightMapSurfaceDataProxy</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdatavisualization-index.html">Qt Data Visualization | Commercial or GPLv3</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QHeightMapSurfaceDataProxy Class</h1>
<!-- $$$QHeightMapSurfaceDataProxy-brief -->
<p>Base proxy class for <a href="q3dsurface.html">Q3DSurface</a>. <a href="#details">More...</a></p>
<!-- @@@QHeightMapSurfaceDataProxy -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QHeightMapSurfaceDataProxy&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  QtDataVisualization 1.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qtdatavisualization-heightmapsurfacedataproxy.html">HeightMapSurfaceDataProxy</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qsurfacedataproxy.html">QSurfaceDataProxy</a></td></tr></table></div><ul>
<li><a href="qheightmapsurfacedataproxy-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a></b> : QImage</li>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFile</a></b> : QString</li>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#maxXValue-prop">maxXValue</a></b> : float</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#maxZValue-prop">maxZValue</a></b> : float</li>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#minXValue-prop">minXValue</a></b> : float</li>
<li class="fn"><b><a href="qheightmapsurfacedataproxy.html#minZValue-prop">minZValue</a></b> : float</li>
</ul>
</td></tr>
</table></div>
<ul>
<li class="fn">3 properties inherited from <a href="qsurfacedataproxy.html#properties">QSurfaceDataProxy</a></li>
<li class="fn">1 property inherited from <a href="qabstractdataproxy.html#properties">QAbstractDataProxy</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#QHeightMapSurfaceDataProxy">QHeightMapSurfaceDataProxy</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#QHeightMapSurfaceDataProxy-1">QHeightMapSurfaceDataProxy</a></b>(const QImage &amp;<i>image</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#QHeightMapSurfaceDataProxy-2">QHeightMapSurfaceDataProxy</a></b>(const QString &amp;<i>filename</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#dtor.QHeightMapSurfaceDataProxy">~QHeightMapSurfaceDataProxy</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QImage </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFile</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxXValue-prop">maxXValue</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxZValue-prop">maxZValue</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minXValue-prop">minXValue</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minZValue-prop">minZValue</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#setHeightMap">setHeightMap</a></b>(const QImage &amp;<i>image</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#setHeightMapFile">setHeightMapFile</a></b>(const QString &amp;<i>filename</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxXValue-prop">setMaxXValue</a></b>(float <i>max</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxZValue-prop">setMaxZValue</a></b>(float <i>max</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minXValue-prop">setMinXValue</a></b>(float <i>min</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minZValue-prop">setMinZValue</a></b>(float <i>min</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#setValueRanges">setValueRanges</a></b>(float <i>minX</i>, float <i>maxX</i>, float <i>minZ</i>, float <i>maxZ</i>)</td></tr>
</table></div>
<ul>
<li class="fn">16 public functions inherited from <a href="qsurfacedataproxy.html#public-functions">QSurfaceDataProxy</a></li>
<li class="fn">1 public function inherited from <a href="qabstractdataproxy.html#public-functions">QAbstractDataProxy</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMapChanged</a></b>(const QImage &amp;<i>image</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFileChanged</a></b>(const QString &amp;<i>filename</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxXValue-prop">maxXValueChanged</a></b>(float <i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#maxZValue-prop">maxZValueChanged</a></b>(float <i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minXValue-prop">minXValueChanged</a></b>(float <i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#minZValue-prop">minZValueChanged</a></b>(float <i>value</i>)</td></tr>
</table></div>
<ul>
<li class="fn">9 signals inherited from <a href="qsurfacedataproxy.html#signals">QSurfaceDataProxy</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qheightmapsurfacedataproxy.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QHeightMapSurfaceDataProxy-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>Base proxy class for <a href="q3dsurface.html">Q3DSurface</a>.</p>
<p><a href="qheightmapsurfacedataproxy.html">QHeightMapSurfaceDataProxy</a> takes care of surface related height map data handling. It provides a way to give a height map to be visualized as a surface plot.</p>
<p>Since height maps do not contain values for X or Z axes, those values need to be given separately using <a href="qheightmapsurfacedataproxy.html#minXValue-prop">minXValue</a>, <a href="qheightmapsurfacedataproxy.html#maxXValue-prop">maxXValue</a>, <a href="qheightmapsurfacedataproxy.html#minZValue-prop">minZValue</a>, and <a href="qheightmapsurfacedataproxy.html#maxZValue-prop">maxZValue</a> properties. X-value corresponds to image horizontal direction and Z-value to the vertical. Setting any of these properties triggers asynchronous re-resolving of any existing height map.</p>
</div>
<p><b>See also </b><a href="qsurfacedataproxy.html">QSurfaceDataProxy</a> and <a href="qtdatavisualization-data-handling.html">Qt Data Visualization Data Handling</a>.</p>
<!-- @@@QHeightMapSurfaceDataProxy -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$heightMap-prop$$$heightMap$$$setHeightMapconstQImage&$$$heightMapChangedconstQImage& -->
<h3 class="fn" id="heightMap-prop"><a name="heightMap-prop"></a><span class="name">heightMap</span> : <span class="type">QImage</span></h3>
<p>This property holds the height map image to be visualized.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QImage </td><td class="memItemRight bottomAlign"><span class="name"><b>heightMap</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qheightmapsurfacedataproxy.html#setHeightMap">setHeightMap</a></b></span>(const QImage &amp;<i>image</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>heightMapChanged</b></span>(const QImage &amp;<i>image</i>)</td></tr>
</table></div>
<!-- @@@heightMap -->
<!-- $$$heightMapFile-prop$$$heightMapFile$$$setHeightMapFileconstQString&$$$heightMapFileChangedconstQString& -->
<h3 class="fn" id="heightMapFile-prop"><a name="heightMapFile-prop"></a><span class="name">heightMapFile</span> : <span class="type">QString</span></h3>
<p>This property holds the name of the file with a height map image to be visualized.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>heightMapFile</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qheightmapsurfacedataproxy.html#setHeightMapFile">setHeightMapFile</a></b></span>(const QString &amp;<i>filename</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>heightMapFileChanged</b></span>(const QString &amp;<i>filename</i>)</td></tr>
</table></div>
<!-- @@@heightMapFile -->
<!-- $$$maxXValue-prop$$$maxXValue$$$setMaxXValuefloat$$$maxXValueChangedfloat -->
<h3 class="fn" id="maxXValue-prop"><a name="maxXValue-prop"></a><span class="name">maxXValue</span> : <span class="type">float</span></h3>
<p>This property holds the maximum X value for the generated surface points.</p>
<p>Defaults to <code>10.0</code>.</p>
<p>When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>maxXValue</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxXValue</b></span>(float <i>max</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>maxXValueChanged</b></span>(float <i>value</i>)</td></tr>
</table></div>
<!-- @@@maxXValue -->
<!-- $$$maxZValue-prop$$$maxZValue$$$setMaxZValuefloat$$$maxZValueChangedfloat -->
<h3 class="fn" id="maxZValue-prop"><a name="maxZValue-prop"></a><span class="name">maxZValue</span> : <span class="type">float</span></h3>
<p>This property holds the maximum Z value for the generated surface points.</p>
<p>Defaults to <code>10.0</code>.</p>
<p>When setting this property the corresponding minimum value is adjusted if necessary, to ensure that the range remains valid.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>maxZValue</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxZValue</b></span>(float <i>max</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>maxZValueChanged</b></span>(float <i>value</i>)</td></tr>
</table></div>
<!-- @@@maxZValue -->
<!-- $$$minXValue-prop$$$minXValue$$$setMinXValuefloat$$$minXValueChangedfloat -->
<h3 class="fn" id="minXValue-prop"><a name="minXValue-prop"></a><span class="name">minXValue</span> : <span class="type">float</span></h3>
<p>This property holds the minimum X value for the generated surface points.</p>
<p>Defaults to <code>0.0</code>.</p>
<p>When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>minXValue</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinXValue</b></span>(float <i>min</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>minXValueChanged</b></span>(float <i>value</i>)</td></tr>
</table></div>
<!-- @@@minXValue -->
<!-- $$$minZValue-prop$$$minZValue$$$setMinZValuefloat$$$minZValueChangedfloat -->
<h3 class="fn" id="minZValue-prop"><a name="minZValue-prop"></a><span class="name">minZValue</span> : <span class="type">float</span></h3>
<p>This property holds the minimum Z value for the generated surface points.</p>
<p>Defaults to <code>0.0</code>.</p>
<p>When setting this property the corresponding maximum value is adjusted if necessary, to ensure that the range remains valid.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>minZValue</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinZValue</b></span>(float <i>min</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>minZValueChanged</b></span>(float <i>value</i>)</td></tr>
</table></div>
<!-- @@@minZValue -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QHeightMapSurfaceDataProxy[overload1]$$$QHeightMapSurfaceDataProxyQObject* -->
<h3 class="fn" id="QHeightMapSurfaceDataProxy"><a name="QHeightMapSurfaceDataProxy"></a>QHeightMapSurfaceDataProxy::<span class="name">QHeightMapSurfaceDataProxy</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs <a href="qheightmapsurfacedataproxy.html">QHeightMapSurfaceDataProxy</a> with the given <i>parent</i>.</p>
<!-- @@@QHeightMapSurfaceDataProxy -->
<!-- $$$QHeightMapSurfaceDataProxy$$$QHeightMapSurfaceDataProxyconstQImage&QObject* -->
<h3 class="fn" id="QHeightMapSurfaceDataProxy-1"><a name="QHeightMapSurfaceDataProxy-1"></a>QHeightMapSurfaceDataProxy::<span class="name">QHeightMapSurfaceDataProxy</span>(const <span class="type">QImage</span> &amp;<i>image</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs <a href="qheightmapsurfacedataproxy.html">QHeightMapSurfaceDataProxy</a> with the given <i>image</i> and <i>parent</i>. Height map is set by calling <a href="qheightmapsurfacedataproxy.html#setHeightMap">setHeightMap</a>() with <i>image</i>.</p>
<p><b>See also </b><a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a>.</p>
<!-- @@@QHeightMapSurfaceDataProxy -->
<!-- $$$QHeightMapSurfaceDataProxy$$$QHeightMapSurfaceDataProxyconstQString&QObject* -->
<h3 class="fn" id="QHeightMapSurfaceDataProxy-2"><a name="QHeightMapSurfaceDataProxy-2"></a>QHeightMapSurfaceDataProxy::<span class="name">QHeightMapSurfaceDataProxy</span>(const <span class="type">QString</span> &amp;<i>filename</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs <a href="qheightmapsurfacedataproxy.html">QHeightMapSurfaceDataProxy</a> from the given image <i>filename</i> and <i>parent</i>. Height map is set by calling <a href="qheightmapsurfacedataproxy.html#setHeightMapFile">setHeightMapFile</a>() with <i>filename</i>.</p>
<p><b>See also </b><a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFile</a>.</p>
<!-- @@@QHeightMapSurfaceDataProxy -->
<!-- $$$~QHeightMapSurfaceDataProxy[overload1]$$$~QHeightMapSurfaceDataProxy -->
<h3 class="fn" id="dtor.QHeightMapSurfaceDataProxy"><a name="dtor.QHeightMapSurfaceDataProxy"></a><code>[virtual] </code>QHeightMapSurfaceDataProxy::<span class="name">~QHeightMapSurfaceDataProxy</span>()</h3>
<p>Destroys <a href="qheightmapsurfacedataproxy.html">QHeightMapSurfaceDataProxy</a>.</p>
<!-- @@@~QHeightMapSurfaceDataProxy -->
<!-- $$$setHeightMap -->
<h3 class="fn" id="setHeightMap"><a name="setHeightMap"></a><span class="type">void</span> QHeightMapSurfaceDataProxy::<span class="name">setHeightMap</span>(const <span class="type">QImage</span> &amp;<i>image</i>)</h3>
<p>Replaces current data with the height map data specified by <i>image</i>.</p>
<p>There are several formats the <i>image</i> can be given in, but if it is not in a directly usable format, a conversion is made.</p>
<p><b>Note: </b>If the result seems wrong, the automatic conversion failed and you should try converting the <i>image</i> yourself before setting it. Preferred format is QImage::Format_RGB32 in grayscale.</p><p>The height of the <i>image</i> is read from the red component of the pixels if the <i>image</i> is in grayscale, otherwise it is an average calculated from red, green, and blue components of the pixels. Using grayscale images may improve data conversion speed for large images.</p>
<p>Not recommended formats: all mono formats (for example QImage::Format_Mono).</p>
<p>The height map is resolved asynchronously. <a href="qsurfacedataproxy.html#arrayReset">QSurfaceDataProxy::arrayReset</a>() is emitted when the data has been resolved.</p>
<p><b>Note:</b> Setter function for property <a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a>. </p><p><b>See also </b><a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a>().</p>
<!-- @@@setHeightMap -->
<!-- $$$setHeightMapFile -->
<h3 class="fn" id="setHeightMapFile"><a name="setHeightMapFile"></a><span class="type">void</span> QHeightMapSurfaceDataProxy::<span class="name">setHeightMapFile</span>(const <span class="type">QString</span> &amp;<i>filename</i>)</h3>
<p>Replaces current data with height map data from the file specified by <i>filename</i>.</p>
<p><b>Note:</b> Setter function for property <a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFile</a>. </p><p><b>See also </b><a href="qheightmapsurfacedataproxy.html#heightMapFile-prop">heightMapFile</a>() and <a href="qheightmapsurfacedataproxy.html#heightMap-prop">heightMap</a>.</p>
<!-- @@@setHeightMapFile -->
<!-- $$$setValueRanges[overload1]$$$setValueRangesfloatfloatfloatfloat -->
<h3 class="fn" id="setValueRanges"><a name="setValueRanges"></a><span class="type">void</span> QHeightMapSurfaceDataProxy::<span class="name">setValueRanges</span>(<span class="type">float</span> <i>minX</i>, <span class="type">float</span> <i>maxX</i>, <span class="type">float</span> <i>minZ</i>, <span class="type">float</span> <i>maxZ</i>)</h3>
<p>A convenience function for setting all minimum (<i>minX</i> and <i>minZ</i>) and maximum (<i>maxX</i> and <i>maxZ</i>) values at the same time. The minimum values must be smaller than the corresponding maximum value. Otherwise the values get adjusted so that they are valid.</p>
<!-- @@@setValueRanges -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>