1
0

PropertyMixer.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. 允许加权累加的缓冲场景图属性,内部使用
  13. </p>
  14. <h2>构造器</h2>
  15. <h3>[name]( [param:PropertyBinding binding], [param:String typeName], [param:Number valueSize] )</h3>
  16. <p>
  17. -- binding <br />
  18. -- typeName <br />
  19. -- valueSize <br />
  20. </p>
  21. <h2>属性</h2>
  22. <h3>[property:PropertyBinding binding]</h3>
  23. <p>
  24. </p>
  25. <h3>[property:TypedArray buffer]</h3>
  26. <p>
  27. 大小为 4 * [page:PropertyMixer valueSize] 的缓冲区 <br /><br />
  28. 布局为: [ incoming | accu0 | accu1 | orig ]<br /><br />
  29. 插值器可使用 .buffer 作为 .result 且数据会进入'incoming'区.
  30. 'accu0'和'accu1'用于按帧交错累加‘incoming’中的数据并进行比较以侦测变化。'orig'存储着属性的原始状态。
  31. </p>
  32. <h3>[property:Number cumulativeWeight]</h3>
  33. <p>
  34. 默认值是0
  35. </p>
  36. <h3>[property:Number valueSize]</h3>
  37. <p>
  38. </p>
  39. <h3>[property:Number referenceCount]</h3>
  40. <p>
  41. 默认值是0
  42. </p>
  43. <h3>[property:Number useCount]</h3>
  44. <p>
  45. 默认值是0
  46. </p>
  47. <h2>方法</h2>
  48. <h3>[method:undefined accumulate]( [param:Number accuIndex], [param:Number weight] )</h3>
  49. <p>
  50. 将[page:PropertyMixer.buffer buffer][accuIndex]中'incoming'区的数据累加到'accu[i]'区中。<br />
  51. 如果权值为0,则什么都不做。
  52. </p>
  53. <h3>[method:undefined apply]( [param:Number accuIndex] )</h3>
  54. <p>
  55. 当累加值不同时,将[page:PropertyMixer.buffer buffer] 'accu[i]区的状态应用于绑定.
  56. </p>
  57. <h3>[method:undefined saveOriginalState]( )</h3>
  58. <p>
  59. 记住绑定属性的状态并复制到两个'accu'区中.
  60. </p>
  61. <h3>[method:undefined restoreOriginalState]( )</h3>
  62. <p>
  63. 将预先通过'saveOriginalState'方法取得的状态应用于绑定。
  64. </p>
  65. <h2>方法</h2>
  66. <p>
  67. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  68. </p>
  69. </body>
  70. </html>