Sophie

Sophie

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

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" />
<!-- q3dbars.cpp -->
  <title>Q3DBars 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 >Q3DBars</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-q3dbars-graph">How to construct a minimal Q3DBars graph</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Q3DBars Class</h1>
<!-- $$$Q3DBars-brief -->
<p>The <a href="q3dbars.html">Q3DBars</a> class provides methods for rendering 3D bar graphs. <a href="#details">More...</a></p>
<!-- @@@Q3DBars -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;Q3DBars&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="q3dbars-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="q3dbars.html#barSpacing-prop">barSpacing</a></b> : QSizeF</li>
<li class="fn"><b><a href="q3dbars.html#barSpacingRelative-prop">barSpacingRelative</a></b> : bool</li>
<li class="fn"><b><a href="q3dbars.html#barThickness-prop">barThickness</a></b> : float</li>
<li class="fn"><b><a href="q3dbars.html#columnAxis-prop">columnAxis</a></b> : QCategory3DAxis*</li>
<li class="fn"><b><a href="q3dbars.html#floorLevel-prop">floorLevel</a></b> : float</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3dbars.html#multiSeriesUniform-prop">multiSeriesUniform</a></b> : bool</li>
<li class="fn"><b><a href="q3dbars.html#primarySeries-prop">primarySeries</a></b> : QBar3DSeries*</li>
<li class="fn"><b><a href="q3dbars.html#rowAxis-prop">rowAxis</a></b> : QCategory3DAxis*</li>
<li class="fn"><b><a href="q3dbars.html#selectedSeries-prop">selectedSeries</a></b> : QBar3DSeries* const</li>
<li class="fn"><b><a href="q3dbars.html#valueAxis-prop">valueAxis</a></b> : QValue3DAxis*</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="q3dbars.html#Q3DBars">Q3DBars</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="q3dbars.html#dtor.Q3DBars">~Q3DBars</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#addAxis">addAxis</a></b>(QAbstract3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#addSeries">addSeries</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QAbstract3DAxis *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#axes">axes</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSizeF </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barSpacing-prop">barSpacing</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barThickness-prop">barThickness</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCategory3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#columnAxis-prop">columnAxis</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#floorLevel-prop">floorLevel</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#insertSeries">insertSeries</a></b>(int <i>index</i>, QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barSpacingRelative-prop">isBarSpacingRelative</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#multiSeriesUniform-prop">isMultiSeriesUniform</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBar3DSeries *</td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#primarySeries-prop">primarySeries</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#releaseAxis">releaseAxis</a></b>(QAbstract3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#removeSeries">removeSeries</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCategory3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#rowAxis-prop">rowAxis</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBar3DSeries *</td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#selectedSeries-prop">selectedSeries</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QBar3DSeries *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#seriesList">seriesList</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barSpacing-prop">setBarSpacing</a></b>(const QSizeF &amp;<i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barSpacingRelative-prop">setBarSpacingRelative</a></b>(bool <i>relative</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barThickness-prop">setBarThickness</a></b>(float <i>thicknessRatio</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#setColumnAxis">setColumnAxis</a></b>(QCategory3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#floorLevel-prop">setFloorLevel</a></b>(float <i>level</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#multiSeriesUniform-prop">setMultiSeriesUniform</a></b>(bool <i>uniform</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#setPrimarySeries">setPrimarySeries</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#setRowAxis">setRowAxis</a></b>(QCategory3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#valueAxis-prop">setValueAxis</a></b>(QValue3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QValue3DAxis *</td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#valueAxis-prop">valueAxis</a></b>() const</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="q3dbars.html#barSpacing-prop">barSpacingChanged</a></b>(const QSizeF &amp;<i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barSpacingRelative-prop">barSpacingRelativeChanged</a></b>(bool <i>relative</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#barThickness-prop">barThicknessChanged</a></b>(float <i>thicknessRatio</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#columnAxis-prop">columnAxisChanged</a></b>(QCategory3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#floorLevel-prop">floorLevelChanged</a></b>(float <i>level</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#multiSeriesUniform-prop">multiSeriesUniformChanged</a></b>(bool <i>uniform</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#primarySeries-prop">primarySeriesChanged</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#rowAxis-prop">rowAxisChanged</a></b>(QCategory3DAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#selectedSeries-prop">selectedSeriesChanged</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dbars.html#valueAxis-prop">valueAxisChanged</a></b>(QValue3DAxis *<i>axis</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="q3dbars.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$Q3DBars-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="q3dbars.html">Q3DBars</a> class provides methods for rendering 3D bar graphs.</p>
<p>This class enables developers to render bar graphs in 3D and to view them by rotating the scene freely. Rotation is done by holding down the right mouse button and moving the mouse. Zooming is done by mouse wheel. Selection, if enabled, is done by left mouse button. The scene can be reset to default camera view by clicking mouse wheel. In touch devices rotation is done by tap-and-move, selection by tap-and-hold and zoom by pinch.</p>
<p>If no axes are set explicitly to <a href="q3dbars.html">Q3DBars</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>
<p><a href="q3dbars.html">Q3DBars</a> supports more than one series visible at the same time. It is not necessary for all series to have the same amount of rows and columns. Row and column labels are taken from the first added series, unless explicitly defined to row and column axes.</p>
<a name="how-to-construct-a-minimal-q3dbars-graph"></a>
<h3 id="how-to-construct-a-minimal-q3dbars-graph">How to construct a minimal Q3DBars graph</h3>
<p>First, construct an instance of <a href="q3dbars.html">Q3DBars</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="q3dbars.html#Q3DBars">Q3DBars</a></span> bars;
  bars<span class="operator">.</span>setFlags(bars<span class="operator">.</span>flags() <span class="operator">^</span> <span class="type">Qt</span><span class="operator">::</span>FramelessWindowHint);

</pre>
<p>After constructing <a href="q3dbars.html">Q3DBars</a>, you can set the data window by changing the range on the row and column axes. It is not mandatory, as data window will default to showing all of the data in the series. If the amount of data is large, it is usually preferable to show just a portion of it. For the example, let's set the data window to show first five rows and columns:</p>
<pre class="cpp">

  bars<span class="operator">.</span>rowAxis()<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">4</span>);
  bars<span class="operator">.</span>columnAxis()<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">4</span>);

</pre>
<p>Now <a href="q3dbars.html">Q3DBars</a> is ready to receive data to be rendered. Create a series with one row of 5 values:</p>
<pre class="cpp">

  QBar3DSeries <span class="operator">*</span>series <span class="operator">=</span> <span class="keyword">new</span> QBar3DSeries;
  <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> <span class="operator">*</span>data <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span>;
  <span class="operator">*</span>data <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">1.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">3.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">7.5f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">5.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">2.2f</span>;
  series<span class="operator">-</span><span class="operator">&gt;</span>dataProxy()<span class="operator">-</span><span class="operator">&gt;</span>addRow(data);
  bars<span class="operator">.</span>addSeries(series);

</pre>
<p><b>Note: </b>We set the data window to 5 x 5, but we are adding only one row of data. This is ok, the rest of the rows will just be blank.</p><p>Finally you will need to set it visible:</p>
<pre class="cpp">

  bars<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="q3dbars.html#Q3DBars">Q3DBars</a></span> bars;
      bars<span class="operator">.</span>setFlags(bars<span class="operator">.</span>flags() <span class="operator">^</span> <span class="type">Qt</span><span class="operator">::</span>FramelessWindowHint);
      bars<span class="operator">.</span>rowAxis()<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">4</span>);
      bars<span class="operator">.</span>columnAxis()<span class="operator">-</span><span class="operator">&gt;</span>setRange(<span class="number">0</span><span class="operator">,</span> <span class="number">4</span>);
      QBar3DSeries <span class="operator">*</span>series <span class="operator">=</span> <span class="keyword">new</span> QBar3DSeries;
      <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> <span class="operator">*</span>data <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span>;
      <span class="operator">*</span>data <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">1.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">3.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">7.5f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">5.0f</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="number">2.2f</span>;
      series<span class="operator">-</span><span class="operator">&gt;</span>dataProxy()<span class="operator">-</span><span class="operator">&gt;</span>addRow(data);
      bars<span class="operator">.</span>addSeries(series);
      bars<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/q3dbars-minimal.png" alt="" /></p><p>The scene can be rotated, zoomed into, and a bar can be selected to view its value, 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-bars-example.html">Bars Example</a>.</p>
</div>
<p><b>See also </b><a href="q3dscatter.html">Q3DScatter</a>, <a href="q3dsurface.html">Q3DSurface</a>, and <a href="qtdatavisualization-module.html">Qt Data Visualization C++ Classes</a>.</p>
<!-- @@@Q3DBars -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$barSpacing-prop$$$barSpacing$$$setBarSpacingconstQSizeF&$$$barSpacingChangedconstQSizeF& -->
<h3 class="fn" id="barSpacing-prop"><a name="barSpacing-prop"></a><span class="name">barSpacing</span> : <span class="type">QSizeF</span></h3>
<p>Bar spacing in the X and Z dimensions.</p>
<p>Preset to <code>(1.0, 1.0)</code> by default. Spacing is affected by the <a href="q3dbars.html#barSpacingRelative-prop">barSpacingRelative</a> property.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSizeF </td><td class="memItemRight bottomAlign"><span class="name"><b>barSpacing</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBarSpacing</b></span>(const QSizeF &amp;<i>spacing</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>barSpacingChanged</b></span>(const QSizeF &amp;<i>spacing</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="q3dbars.html#barSpacingRelative-prop">barSpacingRelative</a> and <a href="q3dbars.html#multiSeriesUniform-prop">multiSeriesUniform</a>.</p>
<!-- @@@barSpacing -->
<!-- $$$barSpacingRelative-prop$$$isBarSpacingRelative$$$setBarSpacingRelativebool$$$barSpacingRelativeChangedbool -->
<h3 class="fn" id="barSpacingRelative-prop"><a name="barSpacingRelative-prop"></a><span class="name">barSpacingRelative</span> : <span class="type">bool</span></h3>
<p>This property holds whether spacing is absolute or relative to bar thickness.</p>
<p>If it is <code>true</code>, the value of <code>0.0</code> means that the bars are placed side-to-side, <code>1.0</code> means that a space as wide as the thickness of one bar is left between the bars, and so on. Preset to <code>true</code>.</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>isBarSpacingRelative</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBarSpacingRelative</b></span>(bool <i>relative</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>barSpacingRelativeChanged</b></span>(bool <i>relative</i>)</td></tr>
</table></div>
<!-- @@@barSpacingRelative -->
<!-- $$$barThickness-prop$$$barThickness$$$setBarThicknessfloat$$$barThicknessChangedfloat -->
<h3 class="fn" id="barThickness-prop"><a name="barThickness-prop"></a><span class="name">barThickness</span> : <span class="type">float</span></h3>
<p>This property holds the bar thickness ratio between the X and Z dimensions.</p>
<p>The value <code>1.0</code> means that the bars are as wide as they are deep, whereas <code>0.5</code> makes them twice as deep as they are wide. Preset to <code>1.0</code> by default.</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>barThickness</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBarThickness</b></span>(float <i>thicknessRatio</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>barThicknessChanged</b></span>(float <i>thicknessRatio</i>)</td></tr>
</table></div>
<!-- @@@barThickness -->
<!-- $$$columnAxis-prop$$$columnAxis$$$setColumnAxisQCategory3DAxis*$$$columnAxisChangedQCategory3DAxis* -->
<h3 class="fn" id="columnAxis-prop"><a name="columnAxis-prop"></a><span class="name">columnAxis</span> : <span class="type"><a href="qcategory3daxis.html">QCategory3DAxis</a></span>*</h3>
<p>This property holds the axis attached to the active column.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QCategory3DAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b>columnAxis</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dbars.html#setColumnAxis">setColumnAxis</a></b></span>(QCategory3DAxis *<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>columnAxisChanged</b></span>(QCategory3DAxis *<i>axis</i>)</td></tr>
</table></div>
<!-- @@@columnAxis -->
<!-- $$$floorLevel-prop$$$floorLevel$$$setFloorLevelfloat$$$floorLevelChangedfloat -->
<h3 class="fn" id="floorLevel-prop"><a name="floorLevel-prop"></a><span class="name">floorLevel</span> : <span class="type">float</span></h3>
<p>This property holds the floor level for the bar graph in Y-axis data coordinates.</p>
<p>The actual floor level will be restricted by the Y-axis minimum and maximum values. Defaults to zero.</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>floorLevel</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFloorLevel</b></span>(float <i>level</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>floorLevelChanged</b></span>(float <i>level</i>)</td></tr>
</table></div>
<!-- @@@floorLevel -->
<!-- $$$multiSeriesUniform-prop$$$isMultiSeriesUniform$$$setMultiSeriesUniformbool$$$multiSeriesUniformChangedbool -->
<h3 class="fn" id="multiSeriesUniform-prop"><a name="multiSeriesUniform-prop"></a><span class="name">multiSeriesUniform</span> : <span class="type">bool</span></h3>
<p>This property holds whether bars are to be scaled with proportions set to a single series bar even if there are multiple series displayed.</p>
<p>If set to <code>true</code>, <a href="q3dbars.html#barSpacing-prop">bar spacing</a> will be correctly applied only to the X-axis. Preset to <code>false</code> by default.</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>isMultiSeriesUniform</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMultiSeriesUniform</b></span>(bool <i>uniform</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>multiSeriesUniformChanged</b></span>(bool <i>uniform</i>)</td></tr>
</table></div>
<!-- @@@multiSeriesUniform -->
<!-- $$$primarySeries-prop$$$primarySeries$$$setPrimarySeriesQBar3DSeries*$$$primarySeriesChangedQBar3DSeries* -->
<h3 class="fn" id="primarySeries-prop"><a name="primarySeries-prop"></a><span class="name">primarySeries</span> : <span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span>*</h3>
<p>This property holds the primary series of the graph.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QBar3DSeries *</td><td class="memItemRight bottomAlign"><span class="name"><b>primarySeries</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dbars.html#setPrimarySeries">setPrimarySeries</a></b></span>(QBar3DSeries *<i>series</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>primarySeriesChanged</b></span>(QBar3DSeries *<i>series</i>)</td></tr>
</table></div>
<!-- @@@primarySeries -->
<!-- $$$rowAxis-prop$$$rowAxis$$$setRowAxisQCategory3DAxis*$$$rowAxisChangedQCategory3DAxis* -->
<h3 class="fn" id="rowAxis-prop"><a name="rowAxis-prop"></a><span class="name">rowAxis</span> : <span class="type"><a href="qcategory3daxis.html">QCategory3DAxis</a></span>*</h3>
<p>This property holds the axis attached to the active row.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QCategory3DAxis *</td><td class="memItemRight bottomAlign"><span class="name"><b>rowAxis</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="q3dbars.html#setRowAxis">setRowAxis</a></b></span>(QCategory3DAxis *<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>rowAxisChanged</b></span>(QCategory3DAxis *<i>axis</i>)</td></tr>
</table></div>
<!-- @@@rowAxis -->
<!-- $$$selectedSeries-prop$$$selectedSeries$$$selectedSeriesChangedQBar3DSeries* -->
<h3 class="fn" id="selectedSeries-prop"><a name="selectedSeries-prop"></a><span class="name">selectedSeries</span> : <span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span>* const</h3>
<p>This property holds the selected series or a null value.</p>
<p>If <a href="qabstract3dgraph.html#selectionMode-prop">selectionMode</a> has the <code>SelectionMultiSeries</code> flag set, this property holds the series that owns the selected bar.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QBar3DSeries *</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>(QBar3DSeries *<i>series</i>)</td></tr>
</table></div>
<!-- @@@selectedSeries -->
<!-- $$$valueAxis-prop$$$valueAxis$$$setValueAxisQValue3DAxis*$$$valueAxisChangedQValue3DAxis* -->
<h3 class="fn" id="valueAxis-prop"><a name="valueAxis-prop"></a><span class="name">valueAxis</span> : <span class="type"><a href="qvalue3daxis.html">QValue3DAxis</a></span>*</h3>
<p>Sets the active value axis (the Y-axis) to <i>axis</i>. Implicitly calls <a href="q3dbars.html#addAxis">addAxis</a>() to transfer the ownership of <i>axis</i> 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. This temporary axis is destroyed if another axis is set explicitly to the same orientation.</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>valueAxis</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setValueAxis</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>valueAxisChanged</b></span>(QValue3DAxis *<i>axis</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="q3dbars.html#addAxis">addAxis</a>() and <a href="q3dbars.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@valueAxis -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3DBars[overload1]$$$Q3DBarsconstQSurfaceFormat*QWindow* -->
<h3 class="fn" id="Q3DBars"><a name="Q3DBars"></a>Q3DBars::<span class="name">Q3DBars</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 bar graph with optional <i>parent</i> window and surface <i>format</i>.</p>
<!-- @@@Q3DBars -->
<!-- $$$~Q3DBars[overload1]$$$~Q3DBars -->
<h3 class="fn" id="dtor.Q3DBars"><a name="dtor.Q3DBars"></a><code>[virtual] </code>Q3DBars::<span class="name">~Q3DBars</span>()</h3>
<p>Destroys the 3D bar graph.</p>
<!-- @@@~Q3DBars -->
<!-- $$$addAxis[overload1]$$$addAxisQAbstract3DAxis* -->
<h3 class="fn" id="addAxis"><a name="addAxis"></a><span class="type">void</span> Q3DBars::<span class="name">addAxis</span>(<span class="type"><a href="qabstract3daxis.html">QAbstract3DAxis</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="q3dbars.html#releaseAxis">releaseAxis</a>(), <a href="q3dbars.html#valueAxis-prop">setValueAxis</a>(), <a href="q3dbars.html#setRowAxis">setRowAxis</a>(), and <a href="q3dbars.html#setColumnAxis">setColumnAxis</a>().</p>
<!-- @@@addAxis -->
<!-- $$$addSeries[overload1]$$$addSeriesQBar3DSeries* -->
<h3 class="fn" id="addSeries"><a name="addSeries"></a><span class="type">void</span> Q3DBars::<span class="name">addSeries</span>(<span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span> *<i>series</i>)</h3>
<p>Adds the <i>series</i> to the graph. A graph can contain multiple series, but only one set of axes, so the rows and columns of all series must match for the visualized data to be meaningful. If the graph has multiple visible series, only the primary series will generate the row or column labels on the axes in cases where the labels are not explicitly set to the axes. If the newly added series has specified a selected bar, it will be highlighted and any existing selection will be cleared. Only one added series can have an active selection.</p>
<p>/sa <a href="q3dbars.html#seriesList">seriesList</a>(), <a href="q3dbars.html#primarySeries-prop">primarySeries</a></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="qabstract3daxis.html">QAbstract3DAxis</a></span> *&gt; Q3DBars::<span class="name">axes</span>() const</h3>
<p>Returns the list of all added axes.</p>
<p><b>See also </b><a href="q3dbars.html#addAxis">addAxis</a>().</p>
<!-- @@@axes -->
<!-- $$$insertSeries[overload1]$$$insertSeriesintQBar3DSeries* -->
<h3 class="fn" id="insertSeries"><a name="insertSeries"></a><span class="type">void</span> Q3DBars::<span class="name">insertSeries</span>(<span class="type">int</span> <i>index</i>, <span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span> *<i>series</i>)</h3>
<p>Inserts the <i>series</i> into the position <i>index</i> in the series list. If the <i>series</i> has already been added to the list, it is moved to the new <i>index</i>.</p>
<p><b>Note: </b>When moving a series to a new <i>index</i> that is after its old index, the new position in list is calculated as if the series was still in its old index, so the final index is actually the <i>index</i> decremented by one.</p><p><b>See also </b><a href="q3dbars.html#addSeries">addSeries</a>() and <a href="q3dbars.html#seriesList">seriesList</a>().</p>
<!-- @@@insertSeries -->
<!-- $$$releaseAxis[overload1]$$$releaseAxisQAbstract3DAxis* -->
<h3 class="fn" id="releaseAxis"><a name="releaseAxis"></a><span class="type">void</span> Q3DBars::<span class="name">releaseAxis</span>(<span class="type"><a href="qabstract3daxis.html">QAbstract3DAxis</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="q3dbars.html#addAxis">addAxis</a>(), <a href="q3dbars.html#valueAxis-prop">setValueAxis</a>(), <a href="q3dbars.html#setRowAxis">setRowAxis</a>(), and <a href="q3dbars.html#setColumnAxis">setColumnAxis</a>().</p>
<!-- @@@releaseAxis -->
<!-- $$$removeSeries[overload1]$$$removeSeriesQBar3DSeries* -->
<h3 class="fn" id="removeSeries"><a name="removeSeries"></a><span class="type">void</span> Q3DBars::<span class="name">removeSeries</span>(<span class="type"><a href="qbar3dseries.html">QBar3DSeries</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="qbar3dseries.html">QBar3DSeries</a></span> *&gt; Q3DBars::<span class="name">seriesList</span>() const</h3>
<p>Returns the list of series added to this graph.</p>
<!-- @@@seriesList -->
<!-- $$$setColumnAxis -->
<h3 class="fn" id="setColumnAxis"><a name="setColumnAxis"></a><span class="type">void</span> Q3DBars::<span class="name">setColumnAxis</span>(<span class="type"><a href="qcategory3daxis.html">QCategory3DAxis</a></span> *<i>axis</i>)</h3>
<p>Sets the axis of the active column to <i>axis</i>. Implicitly calls <a href="q3dbars.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 is created. 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="q3dbars.html#columnAxis-prop">columnAxis</a>. </p><p><b>See also </b><a href="q3dbars.html#columnAxis-prop">columnAxis</a>(), <a href="q3dbars.html#addAxis">addAxis</a>(), and <a href="q3dbars.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@setColumnAxis -->
<!-- $$$setPrimarySeries -->
<h3 class="fn" id="setPrimarySeries"><a name="setPrimarySeries"></a><span class="type">void</span> Q3DBars::<span class="name">setPrimarySeries</span>(<span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span> *<i>series</i>)</h3>
<p>Sets <i>series</i> as the primary series of the graph. The primary series determines the row and column axis labels when the labels are not explicitly set to the axes.</p>
<p>If the specified series is not yet added to the graph, setting it as the primary series will also implicitly add it to the graph.</p>
<p>If the primary series itself is removed from the graph, this property resets to default.</p>
<p>If <i>series</i> is null, this property resets to default. Defaults to the first added series or zero if no series are added to the graph.</p>
<p><b>Note:</b> Setter function for property <a href="q3dbars.html#primarySeries-prop">primarySeries</a>. </p><p><b>See also </b><a href="q3dbars.html#primarySeries-prop">primarySeries</a>().</p>
<!-- @@@setPrimarySeries -->
<!-- $$$setRowAxis -->
<h3 class="fn" id="setRowAxis"><a name="setRowAxis"></a><span class="type">void</span> Q3DBars::<span class="name">setRowAxis</span>(<span class="type"><a href="qcategory3daxis.html">QCategory3DAxis</a></span> *<i>axis</i>)</h3>
<p>Sets the axis of the active row to <i>axis</i>. Implicitly calls <a href="q3dbars.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 is created. 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="q3dbars.html#rowAxis-prop">rowAxis</a>. </p><p><b>See also </b><a href="q3dbars.html#rowAxis-prop">rowAxis</a>(), <a href="q3dbars.html#addAxis">addAxis</a>(), and <a href="q3dbars.html#releaseAxis">releaseAxis</a>().</p>
<!-- @@@setRowAxis -->
</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>