TempNode.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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"><code>nodeType</code></td>
  32. <td class="description last"><p>The node type.<br/>Default is <code>null</code>.</p></td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. </div>
  37. </div>
  38. <h2 class="subsection-title">Properties</h2>
  39. <div class="member">
  40. <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>
  41. <div class="description">
  42. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  43. </div>
  44. </div>
  45. <h2 class="subsection-title">Methods</h2>
  46. <h3 class="name name-method" id="hasDependencies" translate="no">.<a href="#hasDependencies">hasDependencies</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : boolean</span> </h3>
  47. <div class="method">
  48. <div class="description">
  49. <p>Whether this node is used more than once in context of other nodes.</p>
  50. </div>
  51. <table class="params">
  52. <tbody>
  53. <tr>
  54. <td class="name"><code>builder</code></td>
  55. <td class="description last"><p>The node builder.</p></td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. <dl class="details">
  60. <dt class="tag-returns"><strong>Returns:</strong> A flag that indicates if there is more than one dependency to other nodes.</dt>
  61. </dl>
  62. </div>
  63. <h2 class="subsection-title">Source</h2>
  64. <p>
  65. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/TempNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/TempNode.js</a>
  66. </p>
  67. </article>
  68. </section>
  69. <script src="../scripts/linenumber.js"></script>
  70. <script src="../scripts/page.js"></script>
  71. </body>
  72. </html>
粤ICP备19079148号