FunctionOverloadingNode.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>FunctionOverloadingNode - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
  13. <h1 translate="no">FunctionOverloadingNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class allows to define multiple overloaded versions
  17. of the same function. Depending on the parameters of the function
  18. call, the node picks the best-fit overloaded version.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="FunctionOverloadingNode" translate="no">new <a href="#FunctionOverloadingNode">FunctionOverloadingNode</a><span class="signature">( functionNodes : <span class="param-type">Array.&lt;function()></span>, &hellip;parametersNodes : <span class="param-type">Node</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new function overloading node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name"><code>functionNodes</code></td>
  32. <td class="description last"><p>Array of <code>Fn</code> function definitions.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>parametersNodes</code></td>
  36. <td class="description last"><p>A list of parameter nodes.</p></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. </div>
  41. </div>
  42. <h2 class="subsection-title">Properties</h2>
  43. <div class="member">
  44. <h3 class="name" id="functionNodes" translate="no">.<a href="#functionNodes">functionNodes</a><span class="type-signature"> : Array.&lt;function()></span> </h3>
  45. <div class="description">
  46. <p>Array of <code>Fn</code> function definitions.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="global" translate="no">.<a href="#global">global</a><span class="type-signature"> : boolean</span> </h3>
  51. <div class="description">
  52. <p>This node is marked as global.<br/>Default is <code>true</code>.</p>
  53. </div>
  54. <dl class="details">
  55. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#global">Node#global</a></dt>
  56. </dl>
  57. </div>
  58. <div class="member">
  59. <h3 class="name" id="parametersNodes" translate="no">.<a href="#parametersNodes">parametersNodes</a><span class="type-signature"> : Array.&lt;<a href="Node.html">Node</a>></span> </h3>
  60. <div class="description">
  61. <p>A list of parameter nodes.</p>
  62. </div>
  63. </div>
  64. <h2 class="subsection-title">Methods</h2>
  65. <h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : string</span> </h3>
  66. <div class="method">
  67. <div class="description">
  68. <p>This method is overwritten since the node type is inferred from
  69. the function's return type.</p>
  70. </div>
  71. <table class="params">
  72. <tbody>
  73. <tr>
  74. <td class="name"><code>builder</code></td>
  75. <td class="description last"><p>The current node builder.</p></td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. <dl class="details">
  80. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#getNodeType">Node#getNodeType</a></dt>
  81. </dl>
  82. <dl class="details">
  83. <dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
  84. </dl>
  85. </div>
  86. <h2 class="subsection-title">Source</h2>
  87. <p>
  88. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/FunctionOverloadingNode.js" target="_blank" rel="noopener" translate="no">src/nodes/utils/FunctionOverloadingNode.js</a>
  89. </p>
  90. </article>
  91. </section>
  92. <script src="../scripts/linenumber.js"></script>
  93. <script src="../scripts/page.js"></script>
  94. </body>
  95. </html>
粤ICP备19079148号