<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qgeometryrenderer.cpp --> <title>GeometryRenderer QML Type | Qt 3D 5.11</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 ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-qml.html">QML Types</a></td><td >GeometryRenderer QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</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="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">GeometryRenderer QML Type</h1> <span class="subtitle"></span> <!-- $$$GeometryRenderer-brief --> <p>Encapsulates geometry rendering. <a href="#details">More...</a></p> <!-- @@@GeometryRenderer --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt3D.Render 2.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.7</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-render-geometryrenderer.html"><a href="qt3drender-qgeometryrenderer.html">QGeometryRenderer</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qt3d-core-component3d.html">Component3D</a></p> </td></tr></table></div><ul> <li><a href="qml-qt3d-render-geometryrenderer-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#firstInstance-prop">firstInstance</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#firstVertex-prop">firstVertex</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#geometry-prop">geometry</a></b></b> : Geometry</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#indexBufferByteOffset-prop">indexBufferByteOffset</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#indexOffset-prop">indexOffset</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#instanceCount-prop">instanceCount</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#primitiveRestart-prop">primitiveRestart</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#primitiveType-prop">primitiveType</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#restartIndex-prop">restartIndex</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#vertexCount-prop">vertexCount</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qt3d-render-geometryrenderer.html#verticesPerPatch-prop">verticesPerPatch</a></b></b> : int</li> </ul> <!-- $$$GeometryRenderer-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>A <a href="qt3drender-geometry.html#geometryrenderer">GeometryRenderer</a> holds all the information necessary to draw a Geometry. A Geometry holds the coordinates of the geometry data - <a href="qt3drender-geometry.html#geometryrenderer">GeometryRenderer</a> specifies how to interpret that data.</p> <!-- @@@GeometryRenderer --> <h2>Property Documentation</h2> <!-- $$$firstInstance --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="firstInstance-prop"> <td class="tblQmlPropNode"><p> <a name="firstInstance-prop"></a><span class="name">firstInstance</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the first vertex.</p> </div></div><!-- @@@firstInstance --> <br/> <!-- $$$firstVertex --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="firstVertex-prop"> <td class="tblQmlPropNode"><p> <a name="firstVertex-prop"></a><span class="name">firstVertex</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the base instance.</p> </div></div><!-- @@@firstVertex --> <br/> <!-- $$$geometry --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="geometry-prop"> <td class="tblQmlPropNode"><p> <a name="geometry-prop"></a><span class="name">geometry</span> : <span class="type"><a href="qml-qt3d-render-geometry.html">Geometry</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the geometry.</p> </div></div><!-- @@@geometry --> <br/> <!-- $$$indexBufferByteOffset --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="indexBufferByteOffset-prop"> <td class="tblQmlPropNode"><p> <a name="indexBufferByteOffset-prop"></a><span class="name">indexBufferByteOffset</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the byte offset into the index buffer.</p> </div></div><!-- @@@indexBufferByteOffset --> <br/> <!-- $$$indexOffset --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="indexOffset-prop"> <td class="tblQmlPropNode"><p> <a name="indexOffset-prop"></a><span class="name">indexOffset</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the base vertex.</p> </div></div><!-- @@@indexOffset --> <br/> <!-- $$$instanceCount --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="instanceCount-prop"> <td class="tblQmlPropNode"><p> <a name="instanceCount-prop"></a><span class="name">instanceCount</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the instance count.</p> </div></div><!-- @@@instanceCount --> <br/> <!-- $$$primitiveRestart --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="primitiveRestart-prop"> <td class="tblQmlPropNode"><p> <a name="primitiveRestart-prop"></a><span class="name">primitiveRestart</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the primitive restart flag.</p> </div></div><!-- @@@primitiveRestart --> <br/> <!-- $$$primitiveType --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="primitiveType-prop"> <td class="tblQmlPropNode"><p> <a name="primitiveType-prop"></a><span class="name">primitiveType</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the primitive type.</p> <ul> <li>QGeometryRenderer.Points</li> <li>QGeometryRenderer.Lines</li> <li>QGeometryRenderer.LineLoop</li> <li>QGeometryRenderer.LineStrip</li> <li>QGeometryRenderer.Triangles</li> <li>QGeometryRenderer.TriangleStrip</li> <li>QGeometryRenderer.TriangleFan</li> <li>QGeometryRenderer.LinesAdjacency</li> <li>QGeometryRenderer.TrianglesAdjacency</li> <li>QGeometryRenderer.LineStripAdjacency</li> <li>QGeometryRenderer.TriangleStripAdjacency</li> <li>QGeometryRenderer.Patches</li> </ul> <p><b>See also </b><a href="qt3drender-qgeometryrenderer.html#PrimitiveType-enum">Qt3DRender::QGeometryRenderer::PrimitiveType</a>.</p> </div></div><!-- @@@primitiveType --> <br/> <!-- $$$restartIndex --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="restartIndex-prop"> <td class="tblQmlPropNode"><p> <a name="restartIndex-prop"></a><span class="name">restartIndex</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the restart index.</p> </div></div><!-- @@@restartIndex --> <br/> <!-- $$$vertexCount --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="vertexCount-prop"> <td class="tblQmlPropNode"><p> <a name="vertexCount-prop"></a><span class="name">vertexCount</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds the vertex count.</p> </div></div><!-- @@@vertexCount --> <br/> <!-- $$$verticesPerPatch --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="verticesPerPatch-prop"> <td class="tblQmlPropNode"><p> <a name="verticesPerPatch-prop"></a><span class="name">verticesPerPatch</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Holds vertices per patch.</p> </div></div><!-- @@@verticesPerPatch --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 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>