qml-qt3d-extras-spheregeometry.html 9.14 KB
Newer Older
xuebingbing's avatar
xuebingbing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qspheregeometry.cpp -->
  <title>SphereGeometry 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 >SphereGeometry 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">SphereGeometry QML Type</h1>
<span class="subtitle"></span>
<!-- $$$SphereGeometry-brief -->
<p><a href="qml-qt3d-extras-spheregeometry.html">SphereGeometry</a> allows creation of a sphere in 3D space. <a href="#details">More...</a></p>
<!-- @@@SphereGeometry -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt3D.Extras 2.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-extras-spheregeometry.html"><a href="qt3dextras-qspheregeometry.html">QSphereGeometry</a></td></tr></table></div><ul>
<li><a href="qml-qt3d-extras-spheregeometry-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-extras-spheregeometry.html#generateTangents-prop">generateTangents</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#indexAttribute-prop">indexAttribute</a></b></b> : Attribute</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#normalAttribute-prop">normalAttribute</a></b></b> : Attribute</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#positionAttribute-prop">positionAttribute</a></b></b> : Attribute</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#radius-prop">radius</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#rings-prop">rings</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#slices-prop">slices</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#tangentAttribute-prop">tangentAttribute</a></b></b> : Attribute</li>
<li class="fn"><b><b><a href="qml-qt3d-extras-spheregeometry.html#texCoordAttribute-prop">texCoordAttribute</a></b></b> : Attribute</li>
</ul>
<!-- $$$SphereGeometry-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>The <a href="qml-qt3d-extras-spheregeometry.html">SphereGeometry</a> type is most commonly used internally by the <a href="qml-qt3d-extras-spheremesh.html">SphereMesh</a> type but can also be used in custom <a href="qt3drender-geometry.html#geometryrenderer">GeometryRenderer</a> types.</p>
<!-- @@@SphereGeometry -->
<h2>Property Documentation</h2>
<!-- $$$generateTangents -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="generateTangents-prop">
<td class="tblQmlPropNode"><p>
<a name="generateTangents-prop"></a><span class="name">generateTangents</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 value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.</p>
</div></div><!-- @@@generateTangents -->
<br/>
<!-- $$$indexAttribute -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="indexAttribute-prop">
<td class="tblQmlPropNode"><p>
<a name="indexAttribute-prop"></a><span class="name">indexAttribute</span> : <span class="type"><a href="qml-qt3d-render-attribute.html">Attribute</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the geometry index attribute.</p>
</div></div><!-- @@@indexAttribute -->
<br/>
<!-- $$$normalAttribute -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="normalAttribute-prop">
<td class="tblQmlPropNode"><p>
<a name="normalAttribute-prop"></a><span class="name">normalAttribute</span> : <span class="type"><a href="qml-qt3d-render-attribute.html">Attribute</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the geometry normal attribute.</p>
</div></div><!-- @@@normalAttribute -->
<br/>
<!-- $$$positionAttribute -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="positionAttribute-prop">
<td class="tblQmlPropNode"><p>
<a name="positionAttribute-prop"></a><span class="name">positionAttribute</span> : <span class="type"><a href="qml-qt3d-render-attribute.html">Attribute</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the geometry position attribute.</p>
</div></div><!-- @@@positionAttribute -->
<br/>
<!-- $$$radius -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="radius-prop">
<td class="tblQmlPropNode"><p>
<a name="radius-prop"></a><span class="name">radius</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the radius of the sphere.</p>
</div></div><!-- @@@radius -->
<br/>
<!-- $$$rings -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="rings-prop">
<td class="tblQmlPropNode"><p>
<a name="rings-prop"></a><span class="name">rings</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 number of rings in the sphere.</p>
</div></div><!-- @@@rings -->
<br/>
<!-- $$$slices -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="slices-prop">
<td class="tblQmlPropNode"><p>
<a name="slices-prop"></a><span class="name">slices</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 number of slices in the sphere.</p>
</div></div><!-- @@@slices -->
<br/>
<!-- $$$tangentAttribute -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="tangentAttribute-prop">
<td class="tblQmlPropNode"><p>
<a name="tangentAttribute-prop"></a><span class="name">tangentAttribute</span> : <span class="type"><a href="qml-qt3d-render-attribute.html">Attribute</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the geometry tangent attribute.</p>
</div></div><!-- @@@tangentAttribute -->
<br/>
<!-- $$$texCoordAttribute -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="texCoordAttribute-prop">
<td class="tblQmlPropNode"><p>
<a name="texCoordAttribute-prop"></a><span class="name">texCoordAttribute</span> : <span class="type"><a href="qml-qt3d-render-attribute.html">Attribute</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Holds the geometry texture coordinate attribute.</p>
</div></div><!-- @@@texCoordAttribute -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>