1
0

ParameterNode.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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">
  30. <strong>nodeType</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The type of the node.</p>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="name">
  38. <strong>name</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The name of the parameter in the shader.</p>
  42. <p>Default is <code>null</code>.</p>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Properties</h2>
  50. <div class="member">
  51. <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>
  52. <div class="description">
  53. <p>This flag can be used for type testing.</p>
  54. <p>Default is <code>true</code>.</p>
  55. </div>
  56. </div>
  57. <h2 class="subsection-title">Methods</h2>
  58. <h3 class="name name-method" id="getMemberType" translate="no">.<a href="#getMemberType">getMemberType</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, name : <span class="param-type">string</span> )</span><span class="type-signature"> : string</span> </h3>
  59. <div class="method">
  60. <div class="description">
  61. <p>Gets the type of a member variable in the parameter node.</p>
  62. </div>
  63. <table class="params">
  64. <tbody>
  65. <tr>
  66. <td class="name">
  67. <strong>builder</strong>
  68. </td>
  69. <td class="description last">
  70. <p>The node builder.</p>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="name">
  75. <strong>name</strong>
  76. </td>
  77. <td class="description last">
  78. <p>The name of the member variable.</p>
  79. </td>
  80. </tr>
  81. </tbody>
  82. </table>
  83. <dl class="details">
  84. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PropertyNode.html#getMemberType">PropertyNode#getMemberType</a></dt>
  85. </dl>
  86. </div>
  87. <h2 class="subsection-title">Source</h2>
  88. <p>
  89. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/ParameterNode.js" translate="no" target="_blank" rel="noopener">src/nodes/core/ParameterNode.js</a>
  90. </p>
  91. </article>
  92. </section>
  93. <script src="../scripts/linenumber.js"></script>
  94. <script src="../scripts/page.js"></script>
  95. </body>
  96. </html>
粤ICP备19079148号