ParameterNode.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ParameterNode - 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> → <a href="PropertyNode.html">PropertyNode</a> → </p>
  13. <h1 translate="no">ParameterNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Special version of <a href="PropertyNode.html">PropertyNode</a> which is used for parameters.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ParameterNode" translate="no">new <a href="#ParameterNode">ParameterNode</a><span class="signature">( nodeType : <span class="param-type">string</span>, name : <span class="param-type">string</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new parameter node.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>nodeType</code></td>
  30. <td class="description last"><p>The type of the node.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>name</code></td>
  34. <td class="description last"><p>The name of the parameter in the shader.<br/>Default is <code>null</code>.</p></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="isParameterNode" translate="no">.<a href="#isParameterNode">isParameterNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  43. <div class="description">
  44. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  45. </div>
  46. </div>
  47. <h2 class="subsection-title">Methods</h2>
  48. <h3 class="name name-method" id="getMemberType" translate="no">.<a href="#getMemberType">getMemberType</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span>, name : <span class="param-type">string</span> )</span><span class="type-signature"> : string</span> </h3>
  49. <div class="method">
  50. <div class="description">
  51. <p>Gets the type of a member variable in the parameter node.</p>
  52. </div>
  53. <table class="params">
  54. <tbody>
  55. <tr>
  56. <td class="name"><code>builder</code></td>
  57. <td class="description last"><p>The node builder.</p></td>
  58. </tr>
  59. <tr>
  60. <td class="name"><code>name</code></td>
  61. <td class="description last"><p>The name of the member variable.</p></td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <dl class="details">
  66. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PropertyNode.html#getMemberType">PropertyNode#getMemberType</a></dt>
  67. </dl>
  68. <dl class="details">
  69. <dt class="tag-returns"><strong>Returns:</strong> </dt>
  70. </dl>
  71. </div>
  72. <h2 class="subsection-title">Source</h2>
  73. <p>
  74. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/ParameterNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/ParameterNode.js</a>
  75. </p>
  76. </article>
  77. </section>
  78. <script src="../scripts/linenumber.js"></script>
  79. <script src="../scripts/page.js"></script>
  80. </body>
  81. </html>
粤ICP备19079148号