AssignNode.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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">Node</span>, sourceNode : <span class="param-type">Node</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"><code>targetNode</code></td>
  31. <td class="description last"><p>The target node.</p></td>
  32. </tr>
  33. <tr>
  34. <td class="name"><code>sourceNode</code></td>
  35. <td class="description last"><p>The source type.</p></td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. <h2 class="subsection-title">Properties</h2>
  42. <div class="member">
  43. <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>
  44. <div class="description">
  45. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  46. </div>
  47. </div>
  48. <div class="member">
  49. <h3 class="name" id="sourceNode" translate="no">.<a href="#sourceNode">sourceNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  50. <div class="description">
  51. <p>The source node.</p>
  52. </div>
  53. </div>
  54. <div class="member">
  55. <h3 class="name" id="targetNode" translate="no">.<a href="#targetNode">targetNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  56. <div class="description">
  57. <p>The target node.</p>
  58. </div>
  59. </div>
  60. <h2 class="subsection-title">Methods</h2>
  61. <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>
  62. <div class="method">
  63. <div class="description">
  64. <p>Whether this node is used more than once in context of other nodes. This method
  65. is overwritten since it always returns <code>false</code> (assigns are unique).</p>
  66. </div>
  67. <dl class="details">
  68. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#hasDependencies">TempNode#hasDependencies</a></dt>
  69. </dl>
  70. <dl class="details">
  71. <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>
  72. </dl>
  73. </div>
  74. <h3 class="name name-method" id="needsSplitAssign" translate="no">.<a href="#needsSplitAssign">needsSplitAssign</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : boolean</span> </h3>
  75. <div class="method">
  76. <div class="description">
  77. <p>Whether a split is required when assigning source to target. This can happen when the component length of
  78. target and source data type does not match.</p>
  79. </div>
  80. <table class="params">
  81. <tbody>
  82. <tr>
  83. <td class="name"><code>builder</code></td>
  84. <td class="description last"><p>The current node builder.</p></td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. <dl class="details">
  89. <dt class="tag-returns"><strong>Returns:</strong> Whether a split is required when assigning source to target.</dt>
  90. </dl>
  91. </div>
  92. <h2 class="subsection-title">Source</h2>
  93. <p>
  94. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/AssignNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/AssignNode.js</a>
  95. </p>
  96. </article>
  97. </section>
  98. <script src="../scripts/linenumber.js"></script>
  99. <script src="../scripts/page.js"></script>
  100. </body>
  101. </html>
粤ICP备19079148号