光环扩散特效
<h1>光环扩散特效</h1>
<h2>类概述</h2>
<table>
<thead>
<tr>
<th>类名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>BCore.Extension.Effect.LightRingEffectConfig</code></td>
<td>光环扩散特效配置参数</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.LightRingEffect</code></td>
<td>光环扩散特效对象</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.LightRingEffectManagerConfig</code></td>
<td>光环扩散特效管理工具配置</td>
</tr>
<tr>
<td><code>BCore.Extension.Effect.LightRingEffectManager</code></td>
<td>光环扩散特效管理工具</td>
</tr>
</tbody>
</table>
<h3>BCore.Extension.Effect.LightRingEffectConfig</h3>
<h4>构造函数</h4>
<pre><code class="language-javascript">new BCore.Extensionffect.LightRingEffectConfig()</code></pre>
<h4>成员变量</h4>
<table>
<thead>
<tr>
<th>成员变量</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>String</td>
<td>特效名称(全局唯一)</td>
</tr>
<tr>
<td>color</td>
<td>String</td>
<td>颜色</td>
</tr>
<tr>
<td>width</td>
<td>number</td>
<td>光环宽度</td>
</tr>
<tr>
<td>radius</td>
<td>number</td>
<td>特效范围半径</td>
</tr>
<tr>
<td>count</td>
<td>number</td>
<td>光环数量</td>
</tr>
<tr>
<td>position</td>
<td>{ x: 0, y: 0, z: 0 }</td>
<td>特效中心坐标</td>
</tr>
<tr>
<td>rotation</td>
<td>{ x: 0, y: 0, z: 0 }</td>
<td>特效旋转程度</td>
</tr>
</tbody>
</table>
<h3>BCore.Extension.Effect.LightRingEffect</h3>
<h4>构造函数</h4>
<pre><code class="language-javascript">new BCore.Extension.Effect.LightRingEffect(config)</code></pre>
<h4>参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>config</td>
<td>BCore.Extension.Effect.LightRingEffectConfig</td>
<td>光环扩散特效配置参数</td>
</tr>
</tbody>
</table>
<h4>示例</h4>
<pre><code class="language-javascript">let lightRingEffectConfig = new BCore.Extension.Effect.LightRingEffectConfig();
lightRingEffectConfig.name = 'defaultName';
lightRingEffectConfig.color = &quot;#ff0000&quot;;
lightRingEffectConfig.radius = 15;
lightRingEffectConfig.width = 1;
lightRingEffectConfig.count = 8;
lightRingEffectConfig.position = { x: 0, y: 0, z: 0 };
lightRingEffectConfig.rotation = { x: 0, y: 0, z: 0 };
let lightRingEffect = new BCore.Extension.Effect.LightRingEffect(lightRingEffectConfig);</code></pre>
<h3>BCore.Extension.Effect.LightRingEffectManagerConfig</h3>
<h4>构造函数</h4>
<pre><code class="language-javascript">new BCore.Extension.Effect.LightRingEffectManagerConfig(Viewer3D)</code></pre>
<h4>参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>viewer3D</td>
<td>BCore.Viewer.Viewer3D</td>
<td>三维模型视图对象</td>
</tr>
</tbody>
</table>
<h3>BCore.Extension.Effect.LightRingEffectManager</h3>
<h4>构造函数</h4>
<pre><code class="language-javascript">new BCore.Extension.Effect.LightRingEffectManager(config)</code></pre>
<h4>参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>config</td>
<td>BCore.Extension.Effect.LightRingEffectManagerConfig</td>
<td>光环扩散特效管理工具配置</td>
</tr>
</tbody>
</table>
<h3>添加光环扩散特效</h3>
<h4>简要描述</h4>
<ul>
<li>添加光环扩散对象</li>
</ul>
<h4>接口</h4>
<ul>
<li><code>addLightRingEffect(name, lightRingEffect);</code></li>
</ul>
<h4>参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>lightRingEffect</td>
<td>是</td>
<td>BCore.Extension.Effect.LightRingEffect</td>
<td>光环扩散对象</td>
</tr>
</tbody>
</table>
<h4>示例</h4>
<pre><code class="language-javascript">let lightRingEffectManagerConfig = new BCore.Extension.Effect.LightRingEffectManager(mViewer3D);
let lightRingEffectManager = new BCore.Extension.Effect.LightRingEffectManager(lightRingEffectManagerConfig);
let lightRingEffectConfig = new BCore.Extension.Effect.LightRingEffectConfig();
let lightRingEffect = new BCore.Extension.Effect.LightRingEffect(lightRingEffectConfig);
lightRingEffectManager.addLightRingEffect(&quot;name&quot;, lightRingEffect);</code></pre>
<h3>移除光环扩散</h3>
<h4>简要描述</h4>
<ul>
<li>移除光环扩散对象</li>
</ul>
<h4>接口</h4>
<ul>
<li><code>removeLightRingEffect(name);</code></li>
</ul>
<h4>参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
</tbody>
</table>
<h4>示例</h4>
<pre><code class="language-javascript">lightRingEffectManager.removeLightRingEffect(&quot;name&quot;);</code></pre>
<hr />
<p>以上是光环扩散特效相关的文档说明。如果有任何疑问或需要进一步的功能,请联系我们~</p>