TempNode.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>TempNode - 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">TempNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This module uses cache management to create temporary variables
  17. if the node is used more than once to prevent duplicate calculations.</p>
  18. <p>The class acts as a base class for many other nodes types.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="TempNode" translate="no">new <a href="#TempNode">TempNode</a><span class="signature">( nodeType : <span class="param-type">string</span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a temp node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name">
  32. <strong>nodeType</strong>
  33. </td>
  34. <td class="description last">
  35. <p>The node type.</p>
  36. <p>Default is <code>null</code>.</p>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Properties</h2>
  44. <div class="member">
  45. <h3 class="name" id="isTempNode" translate="no">.<a href="#isTempNode">isTempNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  46. <div class="description">
  47. <p>This flag can be used for type testing.</p>
  48. <p>Default is <code>true</code>.</p>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Methods</h2>
  52. <h3 class="name name-method" id="hasDependencies" translate="no">.<a href="#hasDependencies">hasDependencies</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : boolean</span> </h3>
  53. <div class="method">
  54. <div class="description">
  55. <p>Whether this node is used more than once in context of other nodes.</p>
  56. </div>
  57. <table class="params">
  58. <tbody>
  59. <tr>
  60. <td class="name">
  61. <strong>builder</strong>
  62. </td>
  63. <td class="description last">
  64. <p>The node builder.</p>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. <dl class="details">
  70. <dt class="tag-returns"><strong>Returns:</strong> A flag that indicates if there is more than one dependency to other nodes.</dt>
  71. </dl>
  72. </div>
  73. <h2 class="subsection-title">Source</h2>
  74. <p>
  75. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/TempNode.js" translate="no" target="_blank" rel="noopener">src/nodes/core/TempNode.js</a>
  76. </p>
  77. </article>
  78. </section>
  79. <script src="../scripts/linenumber.js"></script>
  80. <script src="../scripts/page.js"></script>
  81. </body>
  82. </html>
粤ICP备19079148号