AssignNode.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>AssignNode - 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="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">AssignNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>These node represents an assign operation. Meaning a node is assigned
  17. to another node.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="AssignNode" translate="no">new <a href="#AssignNode">AssignNode</a><span class="signature">( targetNode : <span class="param-type"><a href="Node.html">Node</a></span>, sourceNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new assign node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>targetNode</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The target node.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>sourceNode</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The source type.</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="isAssignNode" translate="no">.<a href="#isAssignNode">isAssignNode</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. <div class="member">
  58. <h3 class="name" id="sourceNode" translate="no">.<a href="#sourceNode">sourceNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  59. <div class="description">
  60. <p>The source node.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="targetNode" translate="no">.<a href="#targetNode">targetNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  65. <div class="description">
  66. <p>The target node.</p>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Methods</h2>
  70. <h3 class="name name-method" id="hasDependencies" translate="no">.<a href="#hasDependencies">hasDependencies</a><span class="signature">()</span><span class="type-signature"> : boolean</span> </h3>
  71. <div class="method">
  72. <div class="description">
  73. <p>Whether this node is used more than once in context of other nodes. This method
  74. is overwritten since it always returns <code>false</code> (assigns are unique).</p>
  75. </div>
  76. <dl class="details">
  77. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#hasDependencies">TempNode#hasDependencies</a></dt>
  78. </dl>
  79. <dl class="details">
  80. <dt class="tag-returns"><strong>Returns:</strong> A flag that indicates if there is more than one dependency to other nodes. Always <code>false</code>.</dt>
  81. </dl>
  82. </div>
  83. <h3 class="name name-method" id="needsSplitAssign" translate="no">.<a href="#needsSplitAssign">needsSplitAssign</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : boolean</span> </h3>
  84. <div class="method">
  85. <div class="description">
  86. <p>Whether a split is required when assigning source to target. This can happen when the component length of
  87. target and source data type does not match.</p>
  88. </div>
  89. <table class="params">
  90. <tbody>
  91. <tr>
  92. <td class="name">
  93. <strong>builder</strong>
  94. </td>
  95. <td class="description last">
  96. <p>The current node builder.</p>
  97. </td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. <dl class="details">
  102. <dt class="tag-returns"><strong>Returns:</strong> Whether a split is required when assigning source to target.</dt>
  103. </dl>
  104. </div>
  105. <h2 class="subsection-title">Source</h2>
  106. <p>
  107. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/AssignNode.js" translate="no" target="_blank" rel="noopener">src/nodes/core/AssignNode.js</a>
  108. </p>
  109. </article>
  110. </section>
  111. <script src="../scripts/linenumber.js"></script>
  112. <script src="../scripts/page.js"></script>
  113. </body>
  114. </html>
粤ICP备19079148号