PropertyBinding.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. 对场景图中某一真实属性的引用,内部使用。
  14. </p>
  15. <h2>构造器</h2>
  16. <h3>[name]( [param:Object3D rootNode], path, parsedPath )</h3>
  17. <p>
  18. -- [page:Object3D rootNode]:
  19. -- path
  20. -- parsedPath (可选)
  21. </p>
  22. <h2>属性</h2>
  23. <h3>[property:Number path]</h3>
  24. <p>
  25. </p>
  26. <h3>[property:Number parsedPath]</h3>
  27. <p>
  28. </p>
  29. <h3>[property:Number node]</h3>
  30. <p>
  31. </p>
  32. <h3>[property:Number rootNode]</h3>
  33. <p>
  34. </p>
  35. <h3>[property:Object BindingType]</h3>
  36. <p>
  37. </p>
  38. <h3>[property:Object Versioning]</h3>
  39. <p>
  40. </p>
  41. <h3>[property:Array GetterByBindingType]</h3>
  42. <p>
  43. </p>
  44. <h3>[property:Array SetterByBindingTypeAndVersioning]</h3>
  45. <p>
  46. </p>
  47. <h2>方法</h2>
  48. <h3>[method:null getValue]( [param:Array targetArray], [param:Number offset] )</h3>
  49. <p>
  50. </p>
  51. <h3>[method:null setValue]( [param:Array sourceArray], [param:Number offset] )</h3>
  52. <p>
  53. </p>
  54. <h3>[method:null bind]( )</h3>
  55. <p>
  56. 为场景图中的属性创建 getter / setter对。 被[page:PropertyBinding.getValue getValue]和[page:PropertyBinding.setValue setValue]方法内部使用。
  57. </p>
  58. <h3>[method:null unbind]( )</h3>
  59. <p>
  60. 解绑场景图中某属性的getter / setter对。
  61. </p>
  62. <h3>[method:Constructor Composite]( targetGroup, path, optionalParsedPath )</h3>
  63. <p>
  64. 创建一个新的复合属性绑定(Composite PropertyBinding)
  65. </p>
  66. <h3>[method:Constructor create]( root, path, parsedPath )</h3>
  67. <p>
  68. 创建一个新的复合属性绑定(Composite PropertyBinding) (如果根对象是[page:AnimationObjectGroup])或普通属性绑定
  69. </p>
  70. <h3>[method:Constructor parseTrackName]( trackName )</h3>
  71. <p>
  72. 匹配以下形式的字符串:<br />
  73. -- nodeName.property<br />
  74. -- nodeName.property[accessor]<br />
  75. -- nodeName.material.property[accessor]<br />
  76. -- uuid.property[accessor]<br />
  77. -- uuid.objectName[objectIndex].propertyName[propertyIndex]<br />
  78. -- parentName/nodeName.property<br />
  79. -- parentName/parentName/nodeName.property[index]<br />
  80. -- .bone[Armature.DEF_cog].position<br />
  81. -- scene:helium_balloon_model:helium_balloon_model.position
  82. </p>
  83. <h3>[method:Constructor findNode]( root, nodeName )</h3>
  84. <p>
  85. 从节点树或骨骼([page:Skeleton Skeleton])中找出某节点
  86. </p>
  87. <h2>源码</h2>
  88. <p>
  89. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  90. </p>
  91. </body>
  92. </html>