构件可见性
<h3>BCore.Viewer.Viewer3D</h3>
<h4>构造函数</h4>
<pre><code class="language-javascript">new BCore.Viewer.Viewer3D(config)</code></pre>
<ul>
<li><strong>参数</strong>:
<ul>
<li><code>config</code>: <code>BCore.Viewer.Viewer3DConfig</code> - 三维模型视图对象的配置</li>
</ul></li>
</ul>
<hr />
<h3>方法列表</h3>
<h4>1. 显示构件</h4>
<p><strong>接口</strong>: <code>showObjectsByGuids(guids)</code></p>
<ul>
<li><strong>描述</strong>: 显示GUID数组对应的构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>guids</code>: <code>array</code> - 必选,GUID数组</li>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
let guids = [&quot;37cU2nGL100xirW00wMfaL&quot;, &quot;37cU2nGL100xirY08wMfms&quot;];
viewer3D.showObjectsByGuids(guids);</code></pre></li>
</ul>
<h4>2. 显示所有构件</h4>
<p><strong>接口</strong>: <code>showAllObjects()</code></p>
<ul>
<li><strong>描述</strong>: 显示所有构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
viewer3D.showAllObjects();</code></pre></li>
</ul>
<h4>3. 隐藏所选构件</h4>
<p><strong>接口</strong>: <code>hideObjectsByGuids(guids)</code></p>
<ul>
<li><strong>描述</strong>: 隐藏GUID数组对应的构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>guids</code>: <code>array</code> - 必选,GUID数组</li>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
let guids = [&quot;37cU2nGL100xirW00wMfaL&quot;, &quot;37cU2nGL100xirY08wMfms&quot;];
viewer3D.hideObjectsByids(guids);</code></pre></li>
</ul>
<h4>4. 隐藏其他构件</h4>
<p><strong>接口</strong>: <code>hideOthersByGuids(guids)</code></p>
<ul>
<li><strong>描述</strong>: 隐藏GUID数组对应的构件之外的其他构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>guids</code>: <code>array</code> - 必选,GUID数组</li>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
let guids = [&quot;37cU2nGL100xirW00wMfaL&quot;, &quot;37cU2nGL100xirY08wMfms&quot;];
viewer3D.hideOthersByGuids(guids);</code></pre></li>
</ul>
<h4>5. 透明化所选构件</h4>
<p><strong>接口</strong>: <code>transparentObjectsByGuids(guids)</code></p>
<ul>
<li><strong>描述</strong>: 透明化GUID数组对应的构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>guids</code>: <code>array</code> - 必选,GUID数组</li>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
let guids = [&quot;37cU2nGL100xirW00wMfaL&quot;, &quot;37cU2nGL100xirY08wMfms&quot;];
viewer3D.transparentObjectsByGuids(guids);</code></pre></li>
</ul>
<h4>6. 透明化其他构件</h4>
<p><strong>接口</strong>: <code>transparentOthersObjectsByGuids(guids)</code></p>
<ul>
<li><strong>描述</strong>: 透明化GUID数组对应的构件之外的所有构件</li>
<li><strong>参数</strong>:
<ul>
<li><code>guids</code>: <code>array</code> - 必选,GUID数组</li>
<li><code>isDispatchEvent</code>: <code>bool</code> - 可选,是否触发相关事件</li>
</ul></li>
<li>
<p><strong>示例</strong>:</p>
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
let guids = [&quot;37cU2nGL100xirW00wMfaL&quot;, &quot;37cU2nGL100xirY08wMfms&quot;];
viewer3D.transparentOthersObjectsByGuids</code></pre>
<h4>7.获取显示构件的GUID</h4>
<p><strong>接口</strong>: <code>getVisibilityObjectGuids()</code></p>
</li>
<li><strong>描述</strong>: 获取显示构件的GUID</li>
<li>
<p><strong>示例</strong>:</p>
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
viewer3D.getVisibilityObjectGuids();</code></pre>
<h4>8.获取隐藏构件的GUID</h4>
<p><strong>接口</strong>: <code>getHiddenObjectGuids()</code></p>
</li>
<li><strong>描述</strong>: 获取隐藏构件的GUID</li>
<li><strong>示例</strong>:
<pre><code class="language-javascript">let viewer3dConfig = new BCore.Viewer.Viewer3DConfig();
let viewer3D = new BCore.Viewer.Viewer3D(viewer3dConfig);
viewer3D.getHiddenObjectGuids();</code></pre></li>
</ul>