<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- q3dobject.cpp --> <title>Q3DObject 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 >Q3DObject</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="#protected-functions">Protected Functions</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">Q3DObject Class</h1> <!-- $$$Q3DObject-brief --> <p>The <a href="q3dobject.html">Q3DObject</a> class is a simple base class for all the objects in a 3D scene. <a href="#details">More...</a></p> <!-- @@@Q3DObject --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <Q3DObject></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-object3d.html">Object3D</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="q3dcamera.html">Q3DCamera</a> and <a href="q3dlight.html">Q3DLight</a></p> </td></tr></table></div><ul> <li><a href="q3dobject-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><a href="q3dobject.html#parentScene-prop">parentScene</a></b> : Q3DScene* const</li> <li class="fn"><b><a href="q3dobject.html#position-prop">position</a></b> : QVector3D</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="q3dobject.html#Q3DObject">Q3DObject</a></b>(QObject *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#dtor.Q3DObject">~Q3DObject</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#copyValuesFrom">copyValuesFrom</a></b>(const Q3DObject &<i>source</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Q3DScene *</td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#parentScene-prop">parentScene</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#position-prop">position</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#position-prop">setPosition</a></b>(const QVector3D &<i>position</i>)</td></tr> </table></div> <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="q3dobject.html#position-prop">positionChanged</a></b>(const QVector3D &<i>position</i>)</td></tr> </table></div> <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="q3dobject.html#staticMetaObject-var">staticMetaObject</a></b></td></tr> </table></div> <a name="protected-functions"></a> <h2 id="protected-functions">Protected Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#isDirty">isDirty</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3dobject.html#setDirty">setDirty</a></b>(bool <i>dirty</i>)</td></tr> </table></div> <a name="details"></a> <!-- $$$Q3DObject-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="q3dobject.html">Q3DObject</a> class is a simple base class for all the objects in a 3D scene.</p> <p>Contains position information for an object in a 3D scene. The object is considered to be a single point in the coordinate space without dimensions.</p> </div> <!-- @@@Q3DObject --> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$parentScene-prop$$$parentScene --> <h3 class="fn" id="parentScene-prop"><a name="parentScene-prop"></a><span class="name">parentScene</span> : <span class="type"><a href="q3dscene.html">Q3DScene</a></span>* const</h3> <p>This property holds the parent scene as a read only value.</p> <p>If the object has no parent scene, the value is 0.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> Q3DScene *</td><td class="memItemRight bottomAlign"><span class="name"><b>parentScene</b></span>()</td></tr> </table></div> <!-- @@@parentScene --> <!-- $$$position-prop$$$position$$$setPositionconstQVector3D&$$$positionChangedconstQVector3D& --> <h3 class="fn" id="position-prop"><a name="position-prop"></a><span class="name">position</span> : <span class="type">QVector3D</span></h3> <p>This property holds the 3D position of the object.</p> <p><b>Note: </b>Currently setting this property has no effect for <a href="q3dcamera.html">Q3DCamera</a>, as the position is handled internally.</p><p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>position</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPosition</b></span>(const QVector3D &<i>position</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>positionChanged</b></span>(const QVector3D &<i>position</i>)</td></tr> </table></div> <!-- @@@position --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$Q3DObject[overload1]$$$Q3DObjectQObject* --> <h3 class="fn" id="Q3DObject"><a name="Q3DObject"></a>Q3DObject::<span class="name">Q3DObject</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3> <p>Constructs a new 3D object with the position set to origin by default. An optional <i>parent</i> parameter can be given and is then passed to the QObject constructor.</p> <!-- @@@Q3DObject --> <!-- $$$~Q3DObject[overload1]$$$~Q3DObject --> <h3 class="fn" id="dtor.Q3DObject"><a name="dtor.Q3DObject"></a><code>[virtual] </code>Q3DObject::<span class="name">~Q3DObject</span>()</h3> <p>Destroys the 3D object.</p> <!-- @@@~Q3DObject --> <!-- $$$copyValuesFrom[overload1]$$$copyValuesFromconstQ3DObject& --> <h3 class="fn" id="copyValuesFrom"><a name="copyValuesFrom"></a><code>[virtual] </code><span class="type">void</span> Q3DObject::<span class="name">copyValuesFrom</span>(const <span class="type"><a href="q3dobject.html#Q3DObject">Q3DObject</a></span> &<i>source</i>)</h3> <p>Copies the 3D object position from the given <i>source</i> 3D object to this 3D object instance.</p> <!-- @@@copyValuesFrom --> <!-- $$$isDirty[overload1]$$$isDirty --> <h3 class="fn" id="isDirty"><a name="isDirty"></a><code>[protected] </code><span class="type">bool</span> Q3DObject::<span class="name">isDirty</span>() const</h3> <p>Returns whether the 3D object has changed.</p> <!-- @@@isDirty --> <!-- $$$setDirty[overload1]$$$setDirtybool --> <h3 class="fn" id="setDirty"><a name="setDirty"></a><code>[protected] </code><span class="type">void</span> Q3DObject::<span class="name">setDirty</span>(<span class="type">bool</span> <i>dirty</i>)</h3> <p>Sets <i>dirty</i> to <code>true</code> if the 3D object has changed since the last update.</p> <p><b>See also </b><a href="q3dobject.html#isDirty">isDirty</a>().</p> <!-- @@@setDirty --> </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>