Sophie

Sophie

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

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" />
<!-- qtdatavisualization-qml-surface3d.qdoc -->
  <title>Surface3D QML Type | 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-qmlmodule.html">QML Types</a></td><td >Surface3D QML Type</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="#methods">Methods</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">Surface3D QML Type</h1>
<span class="subtitle"></span>
<!-- $$$Surface3D-brief -->
<p>Describes the usage of the 3D surface graph. <a href="#details">More...</a></p>
<!-- @@@Surface3D -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtDataVisualization 1.2</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"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtdatavisualization-abstractgraph3d.html">AbstractGraph3D</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtdatavisualization-surface3d-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#axisX-prop">axisX</a></b></b> : ValueAxis3D</li>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#axisY-prop">axisY</a></b></b> : ValueAxis3D</li>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#axisZ-prop">axisZ</a></b></b> : ValueAxis3D</li>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#flipHorizontalGrid-prop">flipHorizontalGrid</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#selectedSeries-prop">selectedSeries</a></b></b> : Surface3DSeries</li>
<li class="fn"><b><b><a href="qml-qtdatavisualization-surface3d.html#seriesList-prop">seriesList</a></b></b> : list&lt;Surface3DSeries&gt;</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">void <b><b><a href="qml-qtdatavisualization-surface3d.html#addSeries-method">addSeries</a></b></b>(Surface3DSeries <i>series</i>)</li>
<li class="fn">void <b><b><a href="qml-qtdatavisualization-surface3d.html#removeSeries-method">removeSeries</a></b></b>(Surface3DSeries <i>series</i>)</li>
</ul>
<!-- $$$Surface3D-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>This type enables developers to render surface plots in 3D with Qt Quick 2.</p>
<p>You will need to import the data visualization module to use this type:</p>
<pre class="cpp">

  import <span class="type">QtDataVisualization</span> <span class="number">1.2</span>

</pre>
<p>After that you can use <a href="qml-qtdatavisualization-surface3d.html">Surface3D</a> in your qml files:</p>
<pre class="cpp">

  import <span class="type">QtQuick</span> <span class="number">2.0</span>
  import <span class="type">QtDataVisualization</span> <span class="number">1.2</span>

  Item {
      width: <span class="number">640</span>
      height: <span class="number">480</span>

      Surface3D {
          width: parent<span class="operator">.</span>width
          height: parent<span class="operator">.</span>height
          Surface3DSeries {
              itemLabelFormat: <span class="string">&quot;Pop density at (@xLabel N, @zLabel E): @yLabel&quot;</span>
              ItemModelSurfaceDataProxy {
                  itemModel: dataModel
                  <span class="comment">// Mapping model roles to surface series rows, columns, and values.</span>
                  rowRole: <span class="string">&quot;longitude&quot;</span>
                  columnRole: <span class="string">&quot;latitude&quot;</span>
                  yPosRole: <span class="string">&quot;pop_density&quot;</span>
              }
          }
      }
      ListModel {
          id: dataModel
          ListElement{ longitude: <span class="string">&quot;20&quot;</span>; latitude: <span class="string">&quot;10&quot;</span>; pop_density: <span class="string">&quot;4.75&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;21&quot;</span>; latitude: <span class="string">&quot;10&quot;</span>; pop_density: <span class="string">&quot;3.00&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;22&quot;</span>; latitude: <span class="string">&quot;10&quot;</span>; pop_density: <span class="string">&quot;1.24&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;23&quot;</span>; latitude: <span class="string">&quot;10&quot;</span>; pop_density: <span class="string">&quot;2.53&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;20&quot;</span>; latitude: <span class="string">&quot;11&quot;</span>; pop_density: <span class="string">&quot;2.55&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;21&quot;</span>; latitude: <span class="string">&quot;11&quot;</span>; pop_density: <span class="string">&quot;2.03&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;22&quot;</span>; latitude: <span class="string">&quot;11&quot;</span>; pop_density: <span class="string">&quot;3.46&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;23&quot;</span>; latitude: <span class="string">&quot;11&quot;</span>; pop_density: <span class="string">&quot;5.12&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;20&quot;</span>; latitude: <span class="string">&quot;12&quot;</span>; pop_density: <span class="string">&quot;1.37&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;21&quot;</span>; latitude: <span class="string">&quot;12&quot;</span>; pop_density: <span class="string">&quot;2.98&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;22&quot;</span>; latitude: <span class="string">&quot;12&quot;</span>; pop_density: <span class="string">&quot;3.33&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;23&quot;</span>; latitude: <span class="string">&quot;12&quot;</span>; pop_density: <span class="string">&quot;3.23&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;20&quot;</span>; latitude: <span class="string">&quot;13&quot;</span>; pop_density: <span class="string">&quot;4.34&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;21&quot;</span>; latitude: <span class="string">&quot;13&quot;</span>; pop_density: <span class="string">&quot;3.54&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;22&quot;</span>; latitude: <span class="string">&quot;13&quot;</span>; pop_density: <span class="string">&quot;1.65&quot;</span>; }
          ListElement{ longitude: <span class="string">&quot;23&quot;</span>; latitude: <span class="string">&quot;13&quot;</span>; pop_density: <span class="string">&quot;2.67&quot;</span>; }
      }
  }

</pre>
<p>See <a href="qtdatavisualization-qmlsurface-example.html">Qt Quick 2 Surface Example</a> for more thorough usage example.</p>
<p><b>See also </b><a href="qml-qtdatavisualization-surface3dseries.html">Surface3DSeries</a>, <a href="qml-qtdatavisualization-itemmodelsurfacedataproxy.html">ItemModelSurfaceDataProxy</a>, <a href="qml-qtdatavisualization-bars3d.html">Bars3D</a>, <a href="qml-qtdatavisualization-scatter3d.html">Scatter3D</a>, and <a href="qtdatavisualization-module.html">Qt Data Visualization C++ Classes</a>.</p>
<!-- @@@Surface3D -->
<h2>Property Documentation</h2>
<!-- $$$axisX -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisX-prop">
<td class="tblQmlPropNode"><p>
<a name="axisX-prop"></a><span class="name">axisX</span> : <span class="type"><a href="qml-qtdatavisualization-valueaxis3d.html">ValueAxis3D</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The active x-axis.</p>
<p>If an axis is not given, a temporary default axis with no labels and an automatically adjusting range is created. This temporary axis is destroyed if another axis is explicitly set to the same orientation.</p>
</div></div><!-- @@@axisX -->
<br/>
<!-- $$$axisY -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisY-prop">
<td class="tblQmlPropNode"><p>
<a name="axisY-prop"></a><span class="name">axisY</span> : <span class="type"><a href="qml-qtdatavisualization-valueaxis3d.html">ValueAxis3D</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The active y-axis.</p>
<p>If an axis is not given, a temporary default axis with no labels and an automatically adjusting range is created. This temporary axis is destroyed if another axis is explicitly set to the same orientation.</p>
</div></div><!-- @@@axisY -->
<br/>
<!-- $$$axisZ -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisZ-prop">
<td class="tblQmlPropNode"><p>
<a name="axisZ-prop"></a><span class="name">axisZ</span> : <span class="type"><a href="qml-qtdatavisualization-valueaxis3d.html">ValueAxis3D</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The active z-axis.</p>
<p>If an axis is not given, a temporary default axis with no labels and an automatically adjusting range is created. This temporary axis is destroyed if another axis is explicitly set to the same orientation.</p>
</div></div><!-- @@@axisZ -->
<br/>
<!-- $$$flipHorizontalGrid -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="flipHorizontalGrid-prop">
<td class="tblQmlPropNode"><p>
<a name="flipHorizontalGrid-prop"></a><span class="name">flipHorizontalGrid</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>In some use cases the horizontal axis grid is mostly covered by the surface, so it can be more useful to display the horizontal axis grid on top of the graph rather than on the bottom. A typical use case for this is showing 2D spectrograms using orthoGraphic projection with a top-down viewpoint.</p>
<p>If <code>false</code>, the horizontal axis grid and labels are drawn on the horizontal background of the graph. If <code>true</code>, the horizontal axis grid and labels are drawn on the opposite side of the graph from the horizontal background. Defaults to <code>false</code>.</p>
<p>This property was introduced in  QtDataVisualization 1.2.</p>
</div></div><!-- @@@flipHorizontalGrid -->
<br/>
<!-- $$$selectedSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="selectedSeries-prop">
<td class="tblQmlPropNode"><p>
<a name="selectedSeries-prop"></a><span class="name">selectedSeries</span> : <span class="type"><a href="qml-qtdatavisualization-surface3dseries.html">Surface3DSeries</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The selected series or null. If <a href="qabstract3dgraph.html#selectionMode-prop">selectionMode</a> has the <code>SelectionMultiSeries</code> flag set, this property holds the series which owns the selected point.</p>
</div></div><!-- @@@selectedSeries -->
<br/>
<!-- $$$seriesList -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="seriesList-prop">
<td class="tblQmlPropNode"><p>
<a name="seriesList-prop"></a><span class="qmldefault">[default] </span><span class="name">seriesList</span> : <span class="type">list</span>&lt;<span class="type"><a href="qml-qtdatavisualization-surface3dseries.html">Surface3DSeries</a></span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the series of the graph. By default, this property contains an empty list. To set the series, either use the <a href="qml-qtdatavisualization-surface3d.html#addSeries-method">addSeries()</a> function or define them as children of the graph.</p>
</div></div><!-- @@@seriesList -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$addSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="addSeries-method">
<td class="tblQmlFuncNode"><p>
<a name="addSeries-method"></a><span class="type">void</span> <span class="name">addSeries</span>(<span class="type"><a href="qml-qtdatavisualization-surface3dseries.html">Surface3DSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Adds the <i>series</i> to the graph.</p>
</div></div><!-- @@@addSeries -->
<br/>
<!-- $$$removeSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removeSeries-method">
<td class="tblQmlFuncNode"><p>
<a name="removeSeries-method"></a><span class="type">void</span> <span class="name">removeSeries</span>(<span class="type"><a href="qml-qtdatavisualization-surface3dseries.html">Surface3DSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the <i>series</i> from the graph.</p>
</div></div><!-- @@@removeSeries -->
<br/>
        </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>