<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qvalue3daxis.cpp --> <title>QValue3DAxis Class | Qt Data Visualization 5.12.2</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 >QValue3DAxis</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">QValue3DAxis Class</h1> <!-- $$$QValue3DAxis-brief --> <p>The <a href="qvalue3daxis.html">QValue3DAxis</a> class manipulates an axis of a graph. <a href="#details">More...</a></p> <!-- @@@QValue3DAxis --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QValue3DAxis></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-valueaxis3d.html">ValueAxis3D</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qabstract3daxis.html">QAbstract3DAxis</a></td></tr></table></div><ul> <li><a href="qvalue3daxis-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="qvalue3daxis.html#formatter-prop">formatter</a></b> : QValue3DAxisFormatter*</li> <li class="fn"><b><a href="qvalue3daxis.html#labelFormat-prop">labelFormat</a></b> : QString</li> <li class="fn"><b><a href="qvalue3daxis.html#reversed-prop">reversed</a></b> : bool</li> </ul></td><td class="topAlign"><ul> <li class="fn"><b><a href="qvalue3daxis.html#segmentCount-prop">segmentCount</a></b> : int</li> <li class="fn"><b><a href="qvalue3daxis.html#subSegmentCount-prop">subSegmentCount</a></b> : int</li> </ul> </td></tr> </table></div> <ul> <li class="fn">10 properties inherited from <a href="qabstract3daxis.html#properties">QAbstract3DAxis</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="qvalue3daxis.html#QValue3DAxis">QValue3DAxis</a></b>(QObject *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#dtor.QValue3DAxis">~QValue3DAxis</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QValue3DAxisFormatter *</td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#formatter-prop">formatter</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#labelFormat-prop">labelFormat</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#reversed-prop">reversed</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#segmentCount-prop">segmentCount</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#formatter-prop">setFormatter</a></b>(QValue3DAxisFormatter *<i>formatter</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#labelFormat-prop">setLabelFormat</a></b>(const QString &<i>format</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#reversed-prop">setReversed</a></b>(bool <i>enable</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#segmentCount-prop">setSegmentCount</a></b>(int <i>count</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#subSegmentCount-prop">setSubSegmentCount</a></b>(int <i>count</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#subSegmentCount-prop">subSegmentCount</a></b>() const</td></tr> </table></div> <ul> <li class="fn">19 public functions inherited from <a href="qabstract3daxis.html#public-functions">QAbstract3DAxis</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="qvalue3daxis.html#formatter-prop">formatterChanged</a></b>(QValue3DAxisFormatter *<i>formatter</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#labelFormat-prop">labelFormatChanged</a></b>(const QString &<i>format</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#reversed-prop">reversedChanged</a></b>(bool <i>enable</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#segmentCount-prop">segmentCountChanged</a></b>(int <i>count</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qvalue3daxis.html#subSegmentCount-prop">subSegmentCountChanged</a></b>(int <i>count</i>)</td></tr> </table></div> <ul> <li class="fn">10 signals inherited from <a href="qabstract3daxis.html#signals">QAbstract3DAxis</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="qvalue3daxis.html#staticMetaObject-var">staticMetaObject</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QValue3DAxis-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qvalue3daxis.html">QValue3DAxis</a> class manipulates an axis of a graph.</p> <p>A value axis can be given a range of values and segment and subsegment counts to divide the range into.</p> <p>Labels are drawn between each segment. Grid lines are drawn between each segment and each subsegment.</p> <p><b>Note: </b>If visible, there will always be at least two grid lines and labels indicating the minimum and the maximum values of the range, as there is always at least one segment.</p></div> <!-- @@@QValue3DAxis --> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$formatter-prop$$$formatter$$$setFormatterQValue3DAxisFormatter*$$$formatterChangedQValue3DAxisFormatter* --> <h3 class="fn" id="formatter-prop"><a name="formatter-prop"></a><span class="name">formatter</span> : <span class="type"><a href="qvalue3daxisformatter.html">QValue3DAxisFormatter</a></span>*</h3> <p>This property holds the axis formatter to be used.</p> <p>Any existing formatter is deleted when a new formatter is set.</p> <p>This property was introduced in QtDataVisualization 1.1.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QValue3DAxisFormatter *</td><td class="memItemRight bottomAlign"><span class="name"><b>formatter</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFormatter</b></span>(QValue3DAxisFormatter *<i>formatter</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>formatterChanged</b></span>(QValue3DAxisFormatter *<i>formatter</i>)</td></tr> </table></div> <!-- @@@formatter --> <!-- $$$labelFormat-prop$$$labelFormat$$$setLabelFormatconstQString&$$$labelFormatChangedconstQString& --> <h3 class="fn" id="labelFormat-prop"><a name="labelFormat-prop"></a><span class="name">labelFormat</span> : <span class="type">QString</span></h3> <p>This property holds the label format to be used for the labels on this axis.</p> <p>The format string supports the following conversion specifiers, length modifiers, and flags provided by <code>printf()</code> in the standard C++ library: d, i, o, x, X, f, F, e, E, g, G, c.</p> <p>If <a href="qabstract3dgraph.html#locale-prop">QAbstract3DGraph::locale</a> is anything else than <code>"C"</code>, the supported specifiers are limited to: d, e, E, f, g, G, and i. Also, only the precision modifier is supported. The rest of the formatting comes from the default QLocale of the application.</p> <p>Usage example:</p> <p><code>axis->setLabelFormat("%.2f mm");</code></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>labelFormat</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLabelFormat</b></span>(const QString &<i>format</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>labelFormatChanged</b></span>(const QString &<i>format</i>)</td></tr> </table></div> <p><b>See also </b><a href="qvalue3daxis.html#formatter-prop">formatter</a> and <a href="qabstract3dgraph.html#locale-prop">QAbstract3DGraph::locale</a>.</p> <!-- @@@labelFormat --> <!-- $$$reversed-prop$$$reversed$$$setReversedbool$$$reversedChangedbool --> <h3 class="fn" id="reversed-prop"><a name="reversed-prop"></a><span class="name">reversed</span> : <span class="type">bool</span></h3> <p>This property holds whether the axis is rendered in reverse.</p> <p>If <code>true</code>, the axis will be rendered in reverse, i.e. the positions of minimum and maximum values are swapped when the graph is rendered. This property doesn't affect the actual minimum and maximum values of the axis.</p> <p>This property was introduced in QtDataVisualization 1.1.</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>reversed</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setReversed</b></span>(bool <i>enable</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>reversedChanged</b></span>(bool <i>enable</i>)</td></tr> </table></div> <!-- @@@reversed --> <!-- $$$segmentCount-prop$$$segmentCount$$$setSegmentCountint$$$segmentCountChangedint --> <h3 class="fn" id="segmentCount-prop"><a name="segmentCount-prop"></a><span class="name">segmentCount</span> : <span class="type">int</span></h3> <p>This property holds the number of segments on the axis.</p> <p>This indicates how many labels are drawn. The number of grid lines to be drawn is calculated with formula: <code>segments * subsegments + 1</code>. The preset default is <code>5</code>. The value cannot be below <code>1</code>.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>segmentCount</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSegmentCount</b></span>(int <i>count</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>segmentCountChanged</b></span>(int <i>count</i>)</td></tr> </table></div> <p><b>See also </b><a href="qvalue3daxis.html#subSegmentCount-prop">setSubSegmentCount</a>().</p> <!-- @@@segmentCount --> <!-- $$$subSegmentCount-prop$$$subSegmentCount$$$setSubSegmentCountint$$$subSegmentCountChangedint --> <h3 class="fn" id="subSegmentCount-prop"><a name="subSegmentCount-prop"></a><span class="name">subSegmentCount</span> : <span class="type">int</span></h3> <p>This property holds the number of subsegments inside each segment on the axis.</p> <p>Grid lines are drawn between each subsegment, in addition to each segment. The preset default is <code>1</code>. The value cannot be below <code>1</code>.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>subSegmentCount</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSubSegmentCount</b></span>(int <i>count</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>subSegmentCountChanged</b></span>(int <i>count</i>)</td></tr> </table></div> <p><b>See also </b><a href="qvalue3daxis.html#segmentCount-prop">setSegmentCount</a>().</p> <!-- @@@subSegmentCount --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QValue3DAxis[overload1]$$$QValue3DAxisQObject* --> <h3 class="fn" id="QValue3DAxis"><a name="QValue3DAxis"></a>QValue3DAxis::<span class="name">QValue3DAxis</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3> <p>Constructs <a href="qvalue3daxis.html">QValue3DAxis</a> with the given <i>parent</i>.</p> <!-- @@@QValue3DAxis --> <!-- $$$~QValue3DAxis[overload1]$$$~QValue3DAxis --> <h3 class="fn" id="dtor.QValue3DAxis"><a name="dtor.QValue3DAxis"></a><code>[virtual] </code>QValue3DAxis::<span class="name">~QValue3DAxis</span>()</h3> <p>Destroys <a href="qvalue3daxis.html">QValue3DAxis</a>.</p> <!-- @@@~QValue3DAxis --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>