BypassNode.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BypassNode - 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">BypassNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>The class generates the code of a given node but returns another node in the output.
  17. This can be used to call a method or node that does not return a value, i.e.
  18. type <code>void</code> on an input where returning a value is required. Example:</p></div>
  19. <h2>Code Example</h2>
  20. <div translate="no"><pre><code class="language-js">material.colorNode = myColor.bypass( runVoidFn() )
  21. </code></pre></div>
  22. </header>
  23. <article>
  24. <div class="container-overview">
  25. <h2>Constructor</h2>
  26. <h3 class="name name-method" id="BypassNode" translate="no">new <a href="#BypassNode">BypassNode</a><span class="signature">( outputNode : <span class="param-type">Node</span>, callNode : <span class="param-type">Node</span> )</span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Constructs a new bypass node.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name"><code>outputNode</code></td>
  35. <td class="description last"><p>The output node.</p></td>
  36. </tr>
  37. <tr>
  38. <td class="name"><code>callNode</code></td>
  39. <td class="description last"><p>The call node.</p></td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <h2 class="subsection-title">Properties</h2>
  46. <div class="member">
  47. <h3 class="name" id="callNode" translate="no">.<a href="#callNode">callNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  48. <div class="description">
  49. <p>The call node.</p>
  50. </div>
  51. </div>
  52. <div class="member">
  53. <h3 class="name" id="isBypassNode" translate="no">.<a href="#isBypassNode">isBypassNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  54. <div class="description">
  55. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  56. </div>
  57. </div>
  58. <div class="member">
  59. <h3 class="name" id="outputNode" translate="no">.<a href="#outputNode">outputNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  60. <div class="description">
  61. <p>The output node.</p>
  62. </div>
  63. </div>
  64. <h2 class="subsection-title">Source</h2>
  65. <p>
  66. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/BypassNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/BypassNode.js</a>
  67. </p>
  68. </article>
  69. </section>
  70. <script src="../scripts/linenumber.js"></script>
  71. <script src="../scripts/page.js"></script>
  72. </body>
  73. </html>
粤ICP备19079148号