| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>InspectorNode - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
- <h1 translate="no">InspectorNode</h1>
- <section>
- <header>
- <div class="class-description"><p>InspectorNode is a wrapper node that allows inspection of node values during rendering.
- It can be used to debug or analyze node outputs in the rendering pipeline.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="InspectorNode" translate="no">new <a href="#InspectorNode">InspectorNode</a><span class="signature">( node : <span class="param-type">Node</span>, name : <span class="param-type">string</span>, callback : <span class="param-type">function | null</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Creates an InspectorNode.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>node</code></td>
- <td class="description last"><p>The node to inspect.</p></td>
- </tr>
- <tr>
- <td class="name"><code>name</code></td>
- <td class="description last"><p>Optional name for the inspector node.<br/>Default is <code>''</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>callback</code></td>
- <td class="description last"><p>Optional callback to modify the node during setup.<br/>Default is <code>null</code>.</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id=".type" translate="no">.<a href="#.type">type</a> </h3>
- <div class="description">
- <p>Returns the type of the node.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="getName" translate="no">.<a href="#getName">getName</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
- <div class="method">
- <div class="description">
- <p>Returns the name of the inspector node.</p>
- </div>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> </dt>
- </dl>
- </div>
- <h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : string</span> </h3>
- <div class="method">
- <div class="description">
- <p>Returns the type of the wrapped node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>builder</code></td>
- <td class="description last"><p>The node builder.</p></td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#getNodeType">Node#getNodeType</a></dt>
- </dl>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> </dt>
- </dl>
- </div>
- <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
- <div class="method">
- <div class="description">
- <p>Sets up the inspector node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>builder</code></td>
- <td class="description last"><p>The node builder.</p></td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
- </dl>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> The setup node.</dt>
- </dl>
- </div>
- <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type">NodeFrame</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Updates the inspector node, allowing inspection of the wrapped node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>frame</code></td>
- <td class="description last"><p>A reference to the current node frame.</p></td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#update">Node#update</a></dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/InspectorNode.js" target="_blank" rel="noopener" translate="no">src/nodes/core/InspectorNode.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|