电子围墙特效
<h1>电子围墙特效</h1>
<h2>1. 类描述</h2>
<table>
<thead>
<tr>
<th>类名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>BCore.Extension.Effect.ElectronicFenceEffectConfig</code></td>
<td>电子围墙特效配置参数</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.ElectronicFenceEffect</code></td>
<td>电子围墙特效对象</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.ElectronicFenceEffectManagerConfig</code></td>
<td>电子围墙特效管理工具配置</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.ElectronicFenceEffectManager</code></td>
<td>电子围墙特效工具</td>
</tr>
</tbody>
</table>
<hr />
<h2>2. 电子围墙特效配置参数</h2>
<ul>
<li>
<p><strong>构造:</strong></p>
<pre><code class="language-javascript">new BCore.Extension.Effect.ElectronicFenceEffectConfig()</code></pre>
</li>
<li><strong>成员变量说明:</strong>
<code>name</code> : <code>String</code> - 特效名称,全局唯一
<code>color</code> : <code>String</code> - 电子围墙颜色
<code>height</code> : <code>number</code> - 电子围墙高度
<code>speed</code> : <code>number</code> - 特效偏移速度
<code>useTexture</code>: <code>bool</code> - 是否使用贴图
<code>texture</code> : <code>String</code> - 贴图地址
<code>repeat</code> : <code>{ x: 1.0, y: 1.0}</code> - 贴图重复次数
<code>position</code> : <code>[{ x: 0, y: 0, z: 0 }, { x: 20, y: 0, z: 0 }, { x: 20, y: 20, z: 0 }]</code> - 电子围墙路径坐标
<code>rotation</code> : <code>{ x: 0, y: 0, z: 0 }</code> - 特效旋转程度</li>
</ul>
<hr />
<h2>3. 电子围墙特效对象</h2>
<ul>
<li>
<p><strong>构造:</strong></p>
<pre><code class="language-javascript">new BCore.Extension.Effect.ElectronicFenceEffect(config)</code></pre>
</li>
<li><strong>参数说明:</strong>
<code>config</code> : <code>BCore.Extension.Effect.ElectronicFenceEffectConfig</code> - 电子围墙特效配置参数</li>
</ul>
<hr />
<h2>4. 电子围墙特效管理工具配置</h2>
<h3>类:<code>BCore.Extension.Effect.ElectronicFenceEffectManagerConfig</code></h3>
<ul>
<li>
<p><strong>构造函数:</strong></p>
<pre><code class="language-javascript">new BCore.Extension.Effect.ElectronicFenceEffectManagerConfig(Viewer3D)</code></pre>
</li>
<li><strong>参数说明:</strong>
<code>viewer3D</code> : <code>BCore.Viewer.Viewer3D</code> - 维模型视图对象</li>
</ul>
<hr />
<h2>5. 电子围墙特效管理工具</h2>
<ul>
<li>
<p><strong>构造:</strong></p>
<pre><code class="language-javascript">new BCore.Extension.Effect.ElectronicFenceEffectManager(config)</code></pre>
</li>
<li><strong>参数说明:</strong>
<code>config</code> : <code>BCore.Extension.Effect.ElectronicFenceEffectManagerConfig</code> - 电子围墙特效管理工具配置</li>
</ul>
<hr />
<h2>6. 添加电子围墙特效</h2>
<ul>
<li><strong>接口描述:</strong> 添加电子围墙对象</li>
<li>
<p><strong>接口:</strong> <code>addElectronicFenceEffect(name, eleFenceEffect)</code></p>
</li>
<li>
<p><strong>参数说明:</strong>
<code>name</code> : <code>string</code> - 名称
<code>eleFenceEffect</code> : <code>BCore.Extension.Effect.ElectronicFenceEffect</code> - 电子围墙对象</p>
</li>
<li><strong>示例:</strong>
<pre><code class="language-javascript">let eleFenceEffectManagerConfig = new BCore.Extension.Effect.ElectronicFenceEffectManagerConfig(mViewer3D);
let eleFenceEffectManager = new BCore.Extensionffect.ElectronicFenceEffectManager(eleFenceEffectManagerConfig);
let eleFenceEffectConfig = new BCore.Extension.Effect.ElectronicFenceEffectConfig();
let eleFenceEffect = new BCore.Extension.Effect.ElectronicFenceEffect(eleFenceEffectConfig);
eleFenceEffectManager.addElectronicFenceEffect(&quot;name&quot;, eleFenceEffect);</code></pre></li>
</ul>
<hr />
<h2>7. 移除电子围墙</h2>
<ul>
<li><strong>接口描述:</strong> 移除电子围墙对象</li>
<li>
<p><strong>接口:</strong> <code>removeElectronicFenceEffect(name)</code></p>
</li>
<li>
<p><strong>参数说明:</strong>
<code>name</code> : <code>string</code> - 名称</p>
</li>
<li><strong>示例:</strong>
<pre><code class="language-javascript">eleFenceEffectManager.removeElectronicFenceEffect(&quot;name&quot;);</code></pre></li>
</ul>
<hr />
<p>以上为电子围墙特效的基本使用文档。如需进一步说明或示例,欢迎随时联系我们~</p>