Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 845e36bb3ecce380666d628d88446962 > files > 83

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" />
<!-- q3dsurface.cpp -->
  <title>Q3DSurface 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 >Q3DSurface</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>
<li class="level2"><a href="#how-to-construct-a-minimal-q3dsurface-graph">How to construct a minimal Q3DSurface graph</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Q3DSurface Class</h1>
<!-- $$$Q3DSurface-brief -->
<p>The <a href="q3dsurface.html">Q3DSurface</a> class provides methods for rendering 3D surface plots. <a href="#details">More...</a></p>
<!-- @@@Q3DSurface -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;Q3DSurface&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"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qabstract3dgraph.html">QAbstract3DGraph</a></td></tr></table></div><ul>
<li><a href="q3dsurface-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="q3dsurface.html#axisX-prop">axisX</a></b> : QValue3DAxis*</li>
<li class="fn"><b><a href="q3dsurface.html#axisY-prop">axisY</a></b> : QValue3DAxis*</li>
<li class="fn"><b><a href="q3dsurface.html#axisZ-prop">axisZ</a></b> : QValue3DAxis*</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3dsurface.html#flipHorizontalGrid-prop">flipHorizontalGrid</a></b> : bool</li>
<li class="fn"><b><a href="q3dsurface.html#selectedSeries-prop">selectedSeries</a></b> : QSurface3DSeries* const</li>
</ul>
</td></tr>
</table></div>
<ul>
<li class="fn">19 properties inherited from <a href="qabstract3dgraph.html#properties">QAbstract3DGraph</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="q3dsurface.html#Q3DSurface">Q3DSurface</a></b>(const QSurfaceFormat *<i>format</i> = nullptr, QWindow *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#dtor.Q3DSurface">~Q3DSurface</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#addAxis">addAxis</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#addSeries">addSeries</a></b>(QSurface3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QValue3DAxis *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axes">axes</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axisX-prop">axisX</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axisY-prop">axisY</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axisZ-prop">axisZ</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#flipHorizontalGrid-prop">flipHorizontalGrid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#releaseAxis">releaseAxis</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#removeSeries">removeSeries</a></b>(QSurface3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSurface3DSeries *</td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#selectedSeries-prop">selectedSeries</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QSurface3DSeries *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#seriesList">seriesList</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#setAxisX">setAxisX</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#setAxisY">setAxisY</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#setAxisZ">setAxisZ</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#flipHorizontalGrid-prop">setFlipHorizontalGrid</a></b>(bool <i>flip</i>)</td></tr>
</table></div>
<ul>
<li class="fn">54 public functions inherited from <a href="qabstract3dgraph.html#public-functions">QAbstract3DGraph</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="q3dsurface.html#axisX-prop">axisXChanged</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axisY-prop">axisYChanged</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#axisZ-prop">axisZChanged</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#flipHorizontalGrid-prop">flipHorizontalGridChanged</a></b>(bool <i>flip</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dsurface.html#selectedSeries-prop">selectedSeriesChanged</a></b>(QSurface3DSeries *<i>series</i>)</td></tr>
</table></div>
<ul>
<li class="fn">18 signals inherited from <a href="qabstract3dgraph.html#signals">QAbstract3DGraph</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="q3dsurface.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$Q3DSurface-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="q3dsurface.html">Q3DSurface</a> class provides methods for rendering 3D surface plots.</p>
<p>This class enables developers to render 3D surface plots and to view them by rotating the scene freely. The visual properties of the surface such as draw mode and shading can be controlled via <a href="qsurface3dseries.html">QSurface3DSeries</a>.</p>
<p>The <a href="q3dsurface.html">Q3DSurface</a> supports selection by showing a highlighted ball on the data point where the user has clicked with left mouse button (when default input handler is in use) or selected via <a href="qsurface3dseries.html">QSurface3DSeries</a>. The selection pointer is accompanied with a label which in default case shows the value of the data point and the coordinates of the point.</p>
<p>The value range and the label format shown on the axis can be controlled through <a href="qvalue3daxis.html">QValue3DAxis</a>.</p>
<p>To rotate the graph, hold down the right mouse button and move the mouse. Zooming is done using mouse wheel. Both assume the default input handler is in use.</p>
<p>If no axes are set explicitly to <a href="q3dsurface.html">Q3DSurface</a>, temporary default axes with no labels are created. These default axes can be modified via axis accessors, but as soon any axis is set explicitly for the orientation, the default axis for that orientation is destroyed.</p>
<a name="how-to-construct-a-minimal-q3dsurface-graph"></a>
<h3 id="how-to-construct-a-minimal-q3dsurface-graph">How to construct a minimal Q3DSurface graph</h3>
<p>First, construct <a href="q3dsurface.html">Q3DSurface</a>. Since we are running the graph as top level window in this example, we need to clear the <code>Qt::FramelessWindowHint</code> flag, which gets set by default:</p>
<pre class="cpp">

  <span class="type"><a href="q3dsurface.html#Q3DSurface">Q3DSurface</a></span> surface;
  surface<span class="operator">.</span>setFlags(surface<span class="operator">.</span>flags() <span class="operator">^</span> <span class="type">Qt</span><span class="operator">::</span>FramelessWindowHint);

</pre>
<p>Now <a href="q3dsurface.html">Q3DSurface</a> is ready to receive data to be rendered. Create data elements to receive values:</p>
<pre class="cpp">

  <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataArray-typedef">QSurfaceDataArray</a></span> <span class="operator">*</span>data <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataArray-typedef">QSurfaceDataArray</a></span>;
  <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span> <span class="operator">*</span>dataRow1 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span>;
  <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span> <span class="operator">*</span>dataRow2 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span>;

</pre>
<p>First feed the data to the row elements and then add their pointers to the data element:</p>
<pre class="cpp">

  <span class="operator">*</span>dataRow1 <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">0.0f</span><span class="operator">,</span> <span class="number">0.1f</span><span class="operator">,</span> <span class="number">0.5f</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">1.0f</span><span class="operator">,</span> <span class="number">0.5f</span><span class="operator">,</span> <span class="number">0.5f</span>);
  <span class="operator">*</span>dataRow2 <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">0.0f</span><span class="operator">,</span> <span class="number">1.8f</span><span class="operator">,</span> <span class="number">1.0f</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">1.0f</span><span class="operator">,</span> <span class="number">1.2f</span><span class="operator">,</span> <span class="number">1.0f</span>);
  <span class="operator">*</span>data <span class="operator">&lt;</span><span class="operator">&lt;</span> dataRow1 <span class="operator">&lt;</span><span class="operator">&lt;</span> dataRow2;

</pre>
<p>Create a new series and set data to it:</p>
<pre class="cpp">

  QSurface3DSeries <span class="operator">*</span>series <span class="operator">=</span> <span class="keyword">new</span> QSurface3DSeries;
  series<span class="operator">-</span><span class="operator">&gt;</span>dataProxy()<span class="operator">-</span><span class="operator">&gt;</span>resetArray(data);
  surface<span class="operator">.</span>addSeries(series);

</pre>
<p>Finally you will need to set it visible:</p>
<pre class="cpp">

  surface<span class="operator">.</span>show();

</pre>
<p>The complete code needed to create and display this graph is:</p>
<pre class="cpp">

  <span class="preprocessor">#include &lt;QtDataVisualization&gt;</span>

  <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="type">QtDataVisualization</span>;

  <span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span> <span class="operator">*</span><span class="operator">*</span>argv)
  {
      <span class="type">QGuiApplication</span> app(argc<span class="operator">,</span> argv);

      <span class="type"><a href="q3dsurface.html#Q3DSurface">Q3DSurface</a></span> surface;
      surface<span class="operator">.</span>setFlags(surface<span class="operator">.</span>flags() <span class="operator">^</span> <span class="type">Qt</span><span class="operator">::</span>FramelessWindowHint);
      <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataArray-typedef">QSurfaceDataArray</a></span> <span class="operator">*</span>data <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataArray-typedef">QSurfaceDataArray</a></span>;
      <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span> <span class="operator">*</span>dataRow1 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span>;
      <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span> <span class="operator">*</span>dataRow2 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qsurfacedataproxy.html#QSurfaceDataRow-typedef">QSurfaceDataRow</a></span>;

      <span class="operator">*</span>dataRow1 <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">0.0f</span><span class="operator">,</span> <span class="number">0.1f</span><span class="operator">,</span> <span class="number">0.5f</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">1.0f</span><span class="operator">,</span> <span class="number">0.5f</span><span class="operator">,</span> <span class="number">0.5f</span>);
      <span class="operator">*</span>dataRow2 <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">0.0f</span><span class="operator">,</span> <span class="number">1.8f</span><span class="operator">,</span> <span class="number">1.0f</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> QVector3D(<span class="number">1.0f</span><span class="operator">,</span> <span class="number">1.2f</span><span class="operator">,</span> <span class="number">1.0f</span>);
      <span class="operator">*</span>data <span class="operator">&lt;</span><span class="operator">&lt;</span> dataRow1 <span class="operator">&lt;</span><span class="operator">&lt;</span> dataRow2;

      QSurface3DSeries <span class="operator">*</span>series <span class="operator">=</span> <span class="keyword">new</span> QSurface3DSeries;
      series<span class="operator">-</span><span class="operator">&gt;</span>dataProxy()<span class="operator">-</span><span class="operator">&gt;</span>resetArray(data);
      surface<span class="operator">.</span>addSeries(series);
      surface<span class="operator">.</span>show();

      <span class="keyword">return</span> app<span class="operator">.</span>exec();
  }

</pre>
<p>And this is what those few lines of code produce:</p>
<p class="centerAlign"><img src="images/q3dsurface-minimal.png" alt="" /></p><p>The scene can be rotated, zoomed into, and a surface point can be selected to view its position, but no other interaction is included in this minimal code example. You can learn more by familiarizing yourself with the examples provided, like the <a href="qtdatavisualization-surface-example.html">Surface Example</a>.</p>
</div>
<p><b>See also </b><a href="q3dbars.html">Q3DBars</a>, <a href="q3dscatter.html">Q3DScatter</a>, and <a href="qtdatavisualization-module.html">Qt Data Visualization C++ Classes</a>.</p>
<!-- @@@Q3DSurface -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$axisX-prop$$$axisX$$$setAxisXQValue3DAxis*$$$axisXChangedQValue3DAxis* -->
<h3 class="fn" id="axisX-prop"><a name="axisX-prop"></a><span class="name">axisX</span> : <span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span>*</h3>
<p>This property holds the active x-axis.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b>axisX</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dsurface.html#setAxisX">setAxisX</a></b></span>(QValue3DAxis *<i>axis</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>axisXChanged</b></span>(QValue3DAxis *<i>axis</i>)</td></tr>
</table></div>
<!-- @@@axisX -->
<!-- $$$axisY-prop$$$axisY$$$setAxisYQValue3DAxis*$$$axisYChangedQValue3DAxis* -->
<h3 class="fn" id="axisY-prop"><a name="axisY-prop"></a><span class="name">axisY</span> : <span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span>*</h3>
<p>This property holds the active y-axis.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b>axisY</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dsurface.html#setAxisY">setAxisY</a></b></span>(QValue3DAxis *<i>axis</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>axisYChanged</b></span>(QValue3DAxis *<i>axis</i>)</td></tr>
</table></div>
<!-- @@@axisY -->
<!-- $$$axisZ-prop$$$axisZ$$$setAxisZQValue3DAxis*$$$axisZChangedQValue3DAxis* -->
<h3 class="fn" id="axisZ-prop"><a name="axisZ-prop"></a><span class="name">axisZ</span> : <span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span>*</h3>
<p>This property holds the active z-axis.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b>axisZ</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dsurface.html#setAxisZ">setAxisZ</a></b></span>(QValue3DAxis *<i>axis</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>axisZChanged</b></span>(QValue3DAxis *<i>axis</i>)</td></tr>
</table></div>
<!-- @@@axisZ -->
<!-- $$$flipHorizontalGrid-prop$$$flipHorizontalGrid$$$setFlipHorizontalGridbool$$$flipHorizontalGridChangedbool -->
<h3 class="fn" id="flipHorizontalGrid-prop"><a name="flipHorizontalGrid-prop"></a><span class="name">flipHorizontalGrid</span> : <span class="type">bool</span></h3>
<p>This property holds whether the horizontal axis grid is displayed on top of the graph rather than on the bottom.</p>
<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>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>flipHorizontalGrid</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFlipHorizontalGrid</b></span>(bool <i>flip</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>flipHorizontalGridChanged</b></span>(bool <i>flip</i>)</td></tr>
</table></div>
<!-- @@@flipHorizontalGrid -->
<!-- $$$selectedSeries-prop$$$selectedSeries$$$selectedSeriesChangedQSurface3DSeries* -->
<h3 class="fn" id="selectedSeries-prop"><a name="selectedSeries-prop"></a><span class="name">selectedSeries</span> : <span class="type"><a href="qsurface3dseries.html">QSurface3DSeries</a></span>* const</h3>
<p>This property holds the selected series or null.</p>
<p>If <a href="qabstract3dgraph.html#selectionMode-prop">selectionMode</a> has <code>SelectionMultiSeries</code> set, this property holds the series which owns the selected point.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSurface3DSeries *</td><td class="memItemRight bottomAlign"><span class="name"><b>selectedSeries</b></span>() const</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>selectedSeriesChanged</b></span>(QSurface3DSeries *<i>series</i>)</td></tr>
</table></div>
<!-- @@@selectedSeries -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3DSurface[overload1]$$$Q3DSurfaceconstQSurfaceFormat*QWindow* -->
<h3 class="fn" id="Q3DSurface"><a name="Q3DSurface"></a>Q3DSurface::<span class="name">Q3DSurface</span>(const <span class="type">QSurfaceFormat</span> *<i>format</i> = nullptr, <span class="type">QWindow</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new 3D surface graph with optional <i>parent</i> window and surface <i>format</i>.</p>
<!-- @@@Q3DSurface -->
<!-- $$$~Q3DSurface[overload1]$$$~Q3DSurface -->
<h3 class="fn" id="dtor.Q3DSurface"><a name="dtor.Q3DSurface"></a><code>[virtual] </code>Q3DSurface::<span class="name">~Q3DSurface</span>()</h3>
<p>Destroys the 3D surface graph.</p>
<!-- @@@~Q3DSurface -->
<!-- $$$addAxis[overload1]$$$addAxisQValue3DAxis* -->
<h3 class="fn" id="addAxis"><a name="addAxis"></a><span class="type">void</span> Q3DSurface::<span class="name">addAxis</span>(<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *<i>axis</i>)</h3>
<p>Adds <i>axis</i> to the graph. The axes added via addAxis are not yet taken to use, addAxis is simply used to give the ownership of the <i>axis</i> to the graph. The <i>axis</i> must not be null or added to another graph.</p>
<p><b>See also </b><a href="q3dsurface.html#releaseAxis">releaseAxis</a>(), <a href="q3dsurface.html#setAxisX">setAxisX</a>(), <a href="q3dsurface.html#setAxisY">setAxisY</a>(), and <a href="q3dsurface.html#setAxisZ">setAxisZ</a>().</p>
<!-- @@@addAxis -->
<!-- $$$addSeries[overload1]$$$addSeriesQSurface3DSeries* -->
<h3 class="fn" id="addSeries"><a name="addSeries"></a><span class="type">void</span> Q3DSurface::<span class="name">addSeries</span>(<span class="type"><a href="qsurface3dseries.html">QSurface3DSeries</a></span> *<i>series</i>)</h3>
<p>Adds the <i>series</i> to the graph. A graph can contain multiple series, but has only one set of axes. If the newly added series has specified a selected item, it will be highlighted and any existing selection will be cleared. Only one added series can have an active selection.</p>
<!-- @@@addSeries -->
<!-- $$$axes[overload1]$$$axes -->
<h3 class="fn" id="axes"><a name="axes"></a><span class="type">QList</span>&lt;<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *&gt; Q3DSurface::<span class="name">axes</span>() const</h3>
<p>Returns the list of all added axes.</p>
<p><b>See also </b><a href="q3dsurface.html#addAxis">addAxis</a>().</p>
<!-- @@@axes -->
<!-- $$$releaseAxis[overload1]$$$releaseAxisQValue3DAxis* -->
<h3 class="fn" id="releaseAxis"><a name="releaseAxis"></a><span class="type">void</span> Q3DSurface::<span class="name">releaseAxis</span>(<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *<i>axis</i>)</h3>
<p>Releases the ownership of the <i>axis</i> back to the caller, if it is added to this graph. If the released <i>axis</i> is in use, a new default axis will be created and set active.</p>
<p>If the default axis is released and added back later, it behaves as any other axis would.</p>
<p><b>See also </b><a href="q3dsurface.html#addAxis">addAxis</a>(), <a href="q3dsurface.html#setAxisX">setAxisX</a>(), <a href="q3dsurface.html#setAxisY">setAxisY</a>(), and <a href="q3dsurface.html#setAxisZ">setAxisZ</a>().</p>
<!-- @@@releaseAxis -->
<!-- $$$removeSeries[overload1]$$$removeSeriesQSurface3DSeries* -->
<h3 class="fn" id="removeSeries"><a name="removeSeries"></a><span class="type">void</span> Q3DSurface::<span class="name">removeSeries</span>(<span class="type"><a href="qsurface3dseries.html">QSurface3DSeries</a></span> *<i>series</i>)</h3>
<p>Removes the <i>series</i> from the graph.</p>
<!-- @@@removeSeries -->
<!-- $$$seriesList[overload1]$$$seriesList -->
<h3 class="fn" id="seriesList"><a name="seriesList"></a><span class="type">QList</span>&lt;<span class="type"><a href="qsurface3dseries.html">QSurface3DSeries</a></span> *&gt; Q3DSurface::<span class="name">seriesList</span>() const</h3>
<p>Returns the list of series added to this graph.</p>
<!-- @@@seriesList -->
<!-- $$$setAxisX -->
<h3 class="fn" id="setAxisX"><a name="setAxisX"></a><span class="type">void</span> Q3DSurface::<span class="name">setAxisX</span>(<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *<i>axis</i>)</h3>
<p>Sets <i>axis</i> as the active x-axis. Implicitly calls <a href="q3dsurface.html#addAxis">addAxis</a>() to transfer the ownership of the axis to this graph.</p>
<p>If <i>axis</i> is null, a temporary default axis with no labels and an automatically adjusting range is created.</p>
<p>This temporary axis is destroyed if another axis is set explicitly to the same orientation.</p>
<p><b>Note:</b> Setter function for property <a href="q3dsurface.html#axisX-prop">axisX</a>. </p><p><b>See also </b><a href="q3dsurface.html#axisX-prop">axisX</a>(), <a href="q3dsurface.html#addAxis">addAxis</a>(), and <a href="q3dsurface.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@setAxisX -->
<!-- $$$setAxisY -->
<h3 class="fn" id="setAxisY"><a name="setAxisY"></a><span class="type">void</span> Q3DSurface::<span class="name">setAxisY</span>(<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *<i>axis</i>)</h3>
<p>Sets <i>axis</i> as the active y-axis. Implicitly calls <a href="q3dsurface.html#addAxis">addAxis</a>() to transfer the ownership of the axis to this graph.</p>
<p>If <i>axis</i> is null, a temporary default axis with no labels and an automatically adjusting range is created.</p>
<p>This temporary axis is destroyed if another axis is set explicitly to the same orientation.</p>
<p><b>Note:</b> Setter function for property <a href="q3dsurface.html#axisY-prop">axisY</a>. </p><p><b>See also </b><a href="q3dsurface.html#axisY-prop">axisY</a>(), <a href="q3dsurface.html#addAxis">addAxis</a>(), and <a href="q3dsurface.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@setAxisY -->
<!-- $$$setAxisZ -->
<h3 class="fn" id="setAxisZ"><a name="setAxisZ"></a><span class="type">void</span> Q3DSurface::<span class="name">setAxisZ</span>(<span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span> *<i>axis</i>)</h3>
<p>Sets <i>axis</i> as the active z-axis. Implicitly calls <a href="q3dsurface.html#addAxis">addAxis</a>() to transfer the ownership of the axis to this graph.</p>
<p>If <i>axis</i> is null, a temporary default axis with no labels and an automatically adjusting range is created.</p>
<p>This temporary axis is destroyed if another axis is set explicitly to the same orientation.</p>
<p><b>Note:</b> Setter function for property <a href="q3dsurface.html#axisZ-prop">axisZ</a>. </p><p><b>See also </b><a href="q3dsurface.html#axisZ-prop">axisZ</a>(), <a href="q3dsurface.html#addAxis">addAxis</a>(), and <a href="q3dsurface.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@setAxisZ -->
</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>