| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>PropertyMixer - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <h1 translate="no">PropertyMixer</h1>
- <section>
- <header>
- <div class="class-description"><p>Buffered scene graph property that allows weighted accumulation; used internally.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="PropertyMixer" translate="no">new <a href="#PropertyMixer">PropertyMixer</a><span class="signature">( binding : <span class="param-type"><a href="PropertyBinding.html">PropertyBinding</a></span>, typeName : <span class="param-type">string</span>, valueSize : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new property mixer.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>binding</strong>
- </td>
- <td class="description last">
- <p>The property binding.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>typeName</strong>
- </td>
- <td class="description last">
- <p>The keyframe track type name.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>valueSize</strong>
- </td>
- <td class="description last">
- <p>The keyframe track value size.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="binding" translate="no">.<a href="#binding">binding</a><span class="type-signature"> : <a href="PropertyBinding.html">PropertyBinding</a></span> </h3>
- <div class="description">
- <p>The property binding.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="cumulativeWeight" translate="no">.<a href="#cumulativeWeight">cumulativeWeight</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>TODO</p>
- <p>Default is <code>0</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="cumulativeWeightAdditive" translate="no">.<a href="#cumulativeWeightAdditive">cumulativeWeightAdditive</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>TODO</p>
- <p>Default is <code>0</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="referenceCount" translate="no">.<a href="#referenceCount">referenceCount</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>TODO</p>
- <p>Default is <code>0</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="useCount" translate="no">.<a href="#useCount">useCount</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>TODO</p>
- <p>Default is <code>0</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="valueSize" translate="no">.<a href="#valueSize">valueSize</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>The keyframe track value size.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="accumulate" translate="no">.<a href="#accumulate">accumulate</a><span class="signature">( accuIndex : <span class="param-type">number</span>, weight : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Accumulates data in the <code>incoming</code> region into <code>accu<i></code>.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>accuIndex</strong>
- </td>
- <td class="description last">
- <p>The accumulation index.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>weight</strong>
- </td>
- <td class="description last">
- <p>The weight.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="accumulateAdditive" translate="no">.<a href="#accumulateAdditive">accumulateAdditive</a><span class="signature">( weight : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Accumulates data in the <code>incoming</code> region into <code>add</code>.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>weight</strong>
- </td>
- <td class="description last">
- <p>The weight.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="apply" translate="no">.<a href="#apply">apply</a><span class="signature">( accuIndex : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Applies the state of <code>accu<i></code> to the binding when accus differ.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>accuIndex</strong>
- </td>
- <td class="description last">
- <p>The accumulation index.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <h3 class="name name-method" id="restoreOriginalState" translate="no">.<a href="#restoreOriginalState">restoreOriginalState</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Applies the state previously taken via <a href="PropertyMixer.html#saveOriginalState">PropertyMixer#saveOriginalState</a> to the binding.</p>
- </div>
- </div>
- <h3 class="name name-method" id="saveOriginalState" translate="no">.<a href="#saveOriginalState">saveOriginalState</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Remembers the state of the bound property and copy it to both accus.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/animation/PropertyMixer.js" translate="no" target="_blank" rel="noopener">src/animation/PropertyMixer.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|