Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > c936229ef0138f42857f36beadbeda30 > files > 1013

qt3d5-doc-5.12.2-2.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" />
<!-- qlevelofdetail.cpp -->
  <title>QLevelOfDetail Class | Qt 3D 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="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QLevelOfDetail</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qt3d-index.html">Qt 5.12.2 Reference Documentation</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="#public-types">Public Types</a></li>
<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="#public-slots">Public Slots</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">QLevelOfDetail Class</h1>
<span class="small-subtitle">(<a href="qt3drender-qlevelofdetail.html">Qt3DRender::QLevelOfDetail</a>)<br/></span>
<!-- $$$QLevelOfDetail-brief -->
<p>The <a href="qt3drender-qlevelofdetail.html">QLevelOfDetail</a> class provides a way of controlling the complexity of rendered entities based on their size on the screen. <a href="#details">More...</a></p>
<!-- @@@QLevelOfDetail -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QLevelOfDetail&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += 3drender</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.9</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-render-levelofdetail.html">LevelOfDetail</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3dcore-qcomponent.html">Qt3DCore::QComponent</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qt3drender-qlevelofdetailswitch.html">Qt3DRender::QLevelOfDetailSwitch</a></p>
</td></tr></table></div><ul>
<li><a href="qt3drender-qlevelofdetail-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">ThresholdType</a></b> { DistanceToCameraThreshold, ProjectedScreenPixelSizeThreshold }</td></tr>
</table></div>
<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="qt3drender-qlevelofdetail.html#camera-prop">camera</a></b> : Qt3DRender::QCamera*</li>
<li class="fn"><b><a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a></b> : int</li>
<li class="fn"><b><a href="qt3drender-qlevelofdetail.html#thresholdType-prop">thresholdType</a></b> : ThresholdType</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qt3drender-qlevelofdetail.html#thresholds-prop">thresholds</a></b> : QVector&lt;qreal&gt;</li>
<li class="fn"><b><a href="qt3drender-qlevelofdetail.html#volumeOverride-prop">volumeOverride</a></b> : Qt3DRender::QLevelOfDetailBoundingSphere</li>
</ul>
</td></tr>
</table></div>
<ul>
<li class="fn">1 property inherited from <a href="qt3dcore-qcomponent.html#properties">Qt3DCore::QComponent</a></li>
<li class="fn">3 properties inherited from <a href="qt3dcore-qnode.html#properties">Qt3DCore::QNode</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="qt3drender-qlevelofdetail.html#QLevelOfDetail">QLevelOfDetail</a></b>(Qt3DCore::QNode *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#camera-prop">camera</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QLevelOfDetailBoundingSphere </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#createBoundingSphere">createBoundingSphere</a></b>(const QVector3D &amp;<i>center</i>, float <i>radius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QLevelOfDetail::ThresholdType </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#thresholdType-prop">thresholdType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector&lt;qreal&gt; </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#thresholds-prop">thresholds</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QLevelOfDetailBoundingSphere </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#volumeOverride-prop">volumeOverride</a></b>() const</td></tr>
</table></div>
<ul>
<li class="fn">2 public functions inherited from <a href="qt3dcore-qcomponent.html#public-functions">Qt3DCore::QComponent</a></li>
<li class="fn">13 public functions inherited from <a href="qt3dcore-qnode.html#public-functions">Qt3DCore::QNode</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#setCamera">setCamera</a></b>(Qt3DRender::QCamera *<i>camera</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#setCurrentIndex">setCurrentIndex</a></b>(int <i>currentIndex</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#setThresholdType">setThresholdType</a></b>(Qt3DRender::QLevelOfDetail::ThresholdType <i>thresholdType</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#setThresholds">setThresholds</a></b>(const QVector&lt;qreal&gt; &amp;<i>thresholds</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#volumeOverride-prop">setVolumeOverride</a></b>(const Qt3DRender::QLevelOfDetailBoundingSphere &amp;<i>volumeOverride</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 public slot inherited from <a href="qt3dcore-qcomponent.html#public-slots">Qt3DCore::QComponent</a></li>
<li class="fn">3 public slots inherited from <a href="qt3dcore-qnode.html#public-slots">Qt3DCore::QNode</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="qt3drender-qlevelofdetail.html#camera-prop">cameraChanged</a></b>(Qt3DRender::QCamera *<i>camera</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndexChanged</a></b>(int <i>currentIndex</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#thresholdType-prop">thresholdTypeChanged</a></b>(Qt3DRender::QLevelOfDetail::ThresholdType <i>thresholdType</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#thresholds-prop">thresholdsChanged</a></b>(const QVector&lt;qreal&gt; &amp;<i>thresholds</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3drender-qlevelofdetail.html#volumeOverride-prop">volumeOverrideChanged</a></b>(const Qt3DRender::QLevelOfDetailBoundingSphere &amp;<i>volumeOverride</i>)</td></tr>
</table></div>
<ul>
<li class="fn">3 signals inherited from <a href="qt3dcore-qcomponent.html#signals">Qt3DCore::QComponent</a></li>
<li class="fn">4 signals inherited from <a href="qt3dcore-qnode.html#signals">Qt3DCore::QNode</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="qt3drender-qlevelofdetail.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">2 protected functions inherited from <a href="qt3dcore-qnode.html#protected-functions">Qt3DCore::QNode</a></li>
</ul>
<a name="details"></a>
<!-- $$$QLevelOfDetail-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qt3drender-qlevelofdetail.html">QLevelOfDetail</a> class provides a way of controlling the complexity of rendered entities based on their size on the screen.</p>
<p><a href="qt3drender-qlevelofdetail.html">QLevelOfDetail</a> can be used to control the representation of an entity based on distance from the observer or size on the screen.</p>
<p>In order to improve rendering performance, objects that are very small can be rendered using far fewer details, in geometry or texture.</p>
<p>The component is controlled by specifying thresholds of values which are interpreted as either distances from the camera or screen size.</p>
<p>As the point of view changes, the <a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a> property will change to reflect matching value in the range array.</p>
<p>The <a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a> property can then be used, for example, to enable or disable entities, change material, etc.</p>
<p>The <a href="qml-qt3d-render-levelofdetail.html">LevelOfDetail</a> component is not shareable between multiple <a href="qml-qt3d-core-entity.html">entities</a>.</p>
<pre class="cpp">

   <span class="preprocessor">#include &lt;Qt3DCore/QEntity&gt;</span>
   <span class="preprocessor">#include &lt;Qt3DRender/QGeometryRenderer&gt;</span>
   <span class="preprocessor">#include &lt;Qt3DRender/QLevelOfDetail&gt;</span>

  <span class="comment">// Scene</span>
  <span class="type">Qt3DCore</span><span class="operator">::</span><span class="type">QEntity</span> <span class="operator">*</span>rootEntity <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Qt3DCore</span><span class="operator">::</span><span class="type">Qt3DCore</span><span class="operator">::</span><span class="type">QEntity</span>;

  <span class="type">Qt3DCore</span><span class="operator">::</span><span class="type">QEntity</span> <span class="operator">*</span>renderableEntity <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Qt3DCore</span><span class="operator">::</span><span class="type">QEntity</span>(rootEntity);
  <span class="type">Qt3DRender</span><span class="operator">::</span><span class="type"><a href="qt3drender-qgeometryrenderer.html">QGeometryRenderer</a></span> <span class="operator">*</span>geometryRenderer <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Qt3DCore</span><span class="operator">::</span><span class="type"><a href="qt3drender-qgeometryrenderer.html">QGeometryRenderer</a></span>(renderableEntity);
  renderableEntity<span class="operator">-</span><span class="operator">&gt;</span>addComponent(geometryRenderer);
  <span class="type">Qt3DRender</span><span class="operator">::</span><span class="type"><a href="qt3drender-qlevelofdetail.html#QLevelOfDetail">QLevelOfDetail</a></span><span class="operator">*</span> lod <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Qt3Render</span><span class="operator">::</span><span class="type"><a href="qt3drender-qlevelofdetail.html#QLevelOfDetail">QLevelOfDetail</a></span>(renderableEntity);
  <span class="type">QVector</span><span class="operator">&lt;</span><span class="type">qreal</span><span class="operator">&gt;</span> thresholds <span class="operator">=</span> {<span class="number">20</span><span class="operator">,</span> <span class="number">35</span><span class="operator">,</span> <span class="number">50</span><span class="operator">,</span> <span class="number">65</span>};
  lod<span class="operator">-</span><span class="operator">&gt;</span>setThresholds(thresholds);
  lod<span class="operator">-</span><span class="operator">&gt;</span>setCamera(mainCamera);
  renderableEntity<span class="operator">-</span><span class="operator">&gt;</span>addComponent(lod);

  <span class="comment">// connect to QLevelOfDetail::currentIndexChanged to toggle rendering</span>
  <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>

</pre>
</div>
<!-- @@@QLevelOfDetail -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ThresholdType$$$DistanceToCameraThreshold$$$ProjectedScreenPixelSizeThreshold -->
<h3 class="fn" id="ThresholdType-enum"><a name="ThresholdType-enum"></a>enum QLevelOfDetail::<span class="name">ThresholdType</span></h3>
<p>Specifies how the values in the thresholds are interpreted</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>Qt3DRender::QLevelOfDetail::DistanceToCameraThreshold</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Distance from the entity to the selected camera</td></tr>
<tr><td class="topAlign"><code>Qt3DRender::QLevelOfDetail::ProjectedScreenPixelSizeThreshold</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Size of the entity when projected on the screen as seen from the selected camera, expressed in number of pixels on the side of the bounding square in screen space.</td></tr>
</table></div>
<!-- @@@ThresholdType -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$camera-prop$$$camera$$$setCameraQt3DRender::QCamera*$$$cameraChangedQt3DRender::QCamera* -->
<h3 class="fn" id="camera-prop"><a name="camera-prop"></a><span class="name">camera</span> : <span class="type"><a href="qt3drender-qcamera.html">Qt3DRender::QCamera</a></span>*</h3>
<p>Holds the id of the camera that is used to compute the actual distance or the screen size.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QCamera *</td><td class="memItemRight bottomAlign"><span class="name"><b>camera</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qlevelofdetail.html#setCamera">setCamera</a></b></span>(Qt3DRender::QCamera *<i>camera</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>cameraChanged</b></span>(Qt3DRender::QCamera *<i>camera</i>)</td></tr>
</table></div>
<!-- @@@camera -->
<!-- $$$currentIndex-prop$$$currentIndex$$$setCurrentIndexint$$$currentIndexChangedint -->
<h3 class="fn" id="currentIndex-prop"><a name="currentIndex-prop"></a><span class="name">currentIndex</span> : <span class="type">int</span></h3>
<p>The index in the range array which matches the current distance to the camera or screen size.</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>currentIndex</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qlevelofdetail.html#setCurrentIndex">setCurrentIndex</a></b></span>(int <i>currentIndex</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>currentIndexChanged</b></span>(int <i>currentIndex</i>)</td></tr>
</table></div>
<!-- @@@currentIndex -->
<!-- $$$thresholdType-prop$$$thresholdType$$$setThresholdTypeQt3DRender::QLevelOfDetail::ThresholdType$$$thresholdTypeChangedQt3DRender::QLevelOfDetail::ThresholdType -->
<h3 class="fn" id="thresholdType-prop"><a name="thresholdType-prop"></a><span class="name">thresholdType</span> : <span class="type"><a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">ThresholdType</a></span></h3>
<p>Specifies how range values are interpreted.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QLevelOfDetail::ThresholdType </td><td class="memItemRight bottomAlign"><span class="name"><b>thresholdType</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qlevelofdetail.html#setThresholdType">setThresholdType</a></b></span>(Qt3DRender::QLevelOfDetail::ThresholdType <i>thresholdType</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>thresholdTypeChanged</b></span>(Qt3DRender::QLevelOfDetail::ThresholdType <i>thresholdType</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::ThresholdType</a>.</p>
<!-- @@@thresholdType -->
<!-- $$$thresholds-prop$$$thresholds$$$setThresholdsconstQVector<qreal>&$$$thresholdsChangedconstQVector<qreal>& -->
<h3 class="fn" id="thresholds-prop"><a name="thresholds-prop"></a><span class="name">thresholds</span> : <span class="type">QVector</span>&lt;<span class="type">qreal</span>&gt;</h3>
<p>Array of range values as float point numbers. The value for the most detailed representation should be specified first.</p>
<p>If <a href="qt3drender-qlevelofdetail.html#thresholdType-prop">Qt3DRender::QLevelOfDetail::thresholdType</a> is set to <a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::DistanceToCameraThreshold</a>, values should be specified in ascending order, in camera space coordinates</p>
<p>If <a href="qt3drender-qlevelofdetail.html#thresholdType-prop">Qt3DRender::QLevelOfDetail::thresholdType</a> is set to <a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::ProjectedScreenPixelSizeThreshold</a>, values should be specified in descending order, in screen space pixels.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QVector&lt;qreal&gt; </td><td class="memItemRight bottomAlign"><span class="name"><b>thresholds</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qt3drender-qlevelofdetail.html#setThresholds">setThresholds</a></b></span>(const QVector&lt;qreal&gt; &amp;<i>thresholds</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>thresholdsChanged</b></span>(const QVector&lt;qreal&gt; &amp;<i>thresholds</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::ThresholdType</a>.</p>
<!-- @@@thresholds -->
<!-- $$$volumeOverride-prop$$$volumeOverride$$$setVolumeOverrideconstQt3DRender::QLevelOfDetailBoundingSphere&$$$volumeOverrideChangedconstQt3DRender::QLevelOfDetailBoundingSphere& -->
<h3 class="fn" id="volumeOverride-prop"><a name="volumeOverride-prop"></a><span class="name">volumeOverride</span> : <span class="type"><a href="qt3drender-qlevelofdetailboundingsphere.html">Qt3DRender::QLevelOfDetailBoundingSphere</a></span></h3>
<p>The default is a sphere of radius 1 and centered at the local origin of the entity. This proxy volume is used to compute the distance to the camera or the size of the screen projection.</p>
<p>If this value to nullptr, the bounding volume of the entity is used. Care must be taken that this bounding volume never becomes invalid.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt3DRender::QLevelOfDetailBoundingSphere </td><td class="memItemRight bottomAlign"><span class="name"><b>volumeOverride</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setVolumeOverride</b></span>(const Qt3DRender::QLevelOfDetailBoundingSphere &amp;<i>volumeOverride</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>volumeOverrideChanged</b></span>(const Qt3DRender::QLevelOfDetailBoundingSphere &amp;<i>volumeOverride</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qt3drender-qlevelofdetailboundingsphere.html">Qt3DRender::QLevelOfDetailBoundingSphere</a>.</p>
<!-- @@@volumeOverride -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QLevelOfDetail[overload1]$$$QLevelOfDetailQt3DCore::QNode* -->
<h3 class="fn" id="QLevelOfDetail"><a name="QLevelOfDetail"></a>QLevelOfDetail::<span class="name">QLevelOfDetail</span>(<span class="type"><a href="qt3dcore-qnode.html">Qt3DCore::QNode</a></span> *<i>parent</i> = nullptr)</h3>
<p>Default constructs an instance of QLevelOfDetail.</p><!-- @@@QLevelOfDetail -->
<!-- $$$createBoundingSphere[overload1]$$$createBoundingSphereconstQVector3D&float -->
<h3 class="fn" id="createBoundingSphere"><a name="createBoundingSphere"></a><span class="type"><a href="qt3drender-qlevelofdetailboundingsphere.html">Qt3DRender::QLevelOfDetailBoundingSphere</a></span> QLevelOfDetail::<span class="name">createBoundingSphere</span>(const <span class="type">QVector3D</span> &amp;<i>center</i>, <span class="type">float</span> <i>radius</i>)</h3>
<p><b>Note: </b>This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.</p>
<!-- @@@createBoundingSphere -->
<!-- $$$setCamera -->
<h3 class="fn" id="setCamera"><a name="setCamera"></a><code>[slot] </code><span class="type">void</span> QLevelOfDetail::<span class="name">setCamera</span>(<span class="type"><a href="qt3drender-qcamera.html">Qt3DRender::QCamera</a></span> *<i>camera</i>)</h3>
<p>Sets the <i>camera</i> relative to which distance and size are computed.</p>
<p><b>Note:</b> Setter function for property <a href="qt3drender-qlevelofdetail.html#camera-prop">camera</a>. </p><p><b>See also </b><a href="qt3drender-qlevelofdetail.html#camera-prop">camera</a>().</p>
<!-- @@@setCamera -->
<!-- $$$setCurrentIndex -->
<h3 class="fn" id="setCurrentIndex"><a name="setCurrentIndex"></a><code>[slot] </code><span class="type">void</span> QLevelOfDetail::<span class="name">setCurrentIndex</span>(<span class="type">int</span> <i>currentIndex</i>)</h3>
<p>Sets the <i>currentIndex</i>.</p>
<p><b>Note: </b>This should not normally be set by the user.</p><p>However, if the component is disabled, then changing the current index is a simple way of switching between multiple representations.</p>
<p><b>Note:</b> Setter function for property <a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a>. </p><p><b>See also </b><a href="qt3drender-qlevelofdetail.html#currentIndex-prop">currentIndex</a>().</p>
<!-- @@@setCurrentIndex -->
<!-- $$$setThresholdType -->
<h3 class="fn" id="setThresholdType"><a name="setThresholdType"></a><code>[slot] </code><span class="type">void</span> QLevelOfDetail::<span class="name">setThresholdType</span>(<span class="type"><a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::ThresholdType</a></span> <i>thresholdType</i>)</h3>
<p>Sets the way thresholds values are interpreted with parameter <i>thresholdType</i></p>
<p><b>Note:</b> Setter function for property <a href="qt3drender-qlevelofdetail.html#thresholdType-prop">thresholdType</a>. </p><p><b>See also </b><a href="qt3drender-qlevelofdetail.html#thresholdType-prop">thresholdType</a>() and <a href="qt3drender-qlevelofdetail.html#ThresholdType-enum">Qt3DRender::QLevelOfDetail::ThresholdType</a>.</p>
<!-- @@@setThresholdType -->
<!-- $$$setThresholds -->
<h3 class="fn" id="setThresholds"><a name="setThresholds"></a><code>[slot] </code><span class="type">void</span> QLevelOfDetail::<span class="name">setThresholds</span>(const <span class="type">QVector</span>&lt;<span class="type">qreal</span>&gt; &amp;<i>thresholds</i>)</h3>
<p>Sets the range values in <i>thresholds</i>.</p>
<p><b>Note:</b> Setter function for property <a href="qt3drender-qlevelofdetail.html#thresholds-prop">thresholds</a>. </p><p><b>See also </b><a href="qt3drender-qlevelofdetail.html#thresholds-prop">thresholds</a>() and <a href="qt3drender-qlevelofdetail.html#thresholdType-prop">Qt3DRender::QLevelOfDetail::thresholdType</a>.</p>
<!-- @@@setThresholds -->
</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>