UNPKG

diglettk

Version:

A medical imaging toolkit, built on top of vtk.js

1,476 lines (366 loc) 20.7 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>MPRManager - DigleTTK</title> <meta name="keywords" content="medical, imaging, dicom, webgl" /> <meta name="keyword" content="medical, imaging, dicom, webgl" /> <script src="scripts/prettify/prettify.js"></script> <script src="scripts/prettify/lang-css.js"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc.css"> <script src="scripts/nav.js" defer></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <input type="checkbox" id="nav-trigger" class="nav-trigger" /> <label for="nav-trigger" class="navicon-button x"> <div class="navicon"></div> </label> <label for="nav-trigger" class="overlay"></label> <nav > <input type="text" id="nav-search" placeholder="Search" /> <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/dvisionlab/DigletTK" target="_blank" class="menu-item" id="repository" >Github repo</a></h2><h3>Classes</h3><ul><li><a href="baseView.html">baseView</a></li><li><a href="MPRManager.html">MPRManager</a><ul class='methods'><li data-type='method' style='display: none;'><a href="MPRManager.html#destroy">destroy</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#getInitialState">getInitialState</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#onRotate">onRotate</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#onThickness">onThickness</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#resize">resize</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#setImage">setImage</a></li><li data-type='method' style='display: none;'><a href="MPRManager.html#setTool">setTool</a></li></ul></li><li><a href="VRView.html">VRView</a><ul class='methods'><li data-type='method' style='display: none;'><a href="VRView.html#_initCropWidget">_initCropWidget</a></li><li data-type='method' style='display: none;'><a href="VRView.html#_initPicker">_initPicker</a></li><li data-type='method' style='display: none;'><a href="VRView.html#addLandmarks">addLandmarks</a></li><li data-type='method' style='display: none;'><a href="VRView.html#addSurface">addSurface</a></li><li data-type='method' style='display: none;'><a href="VRView.html#destroy">destroy</a></li><li data-type='method' style='display: none;'><a href="VRView.html#getLutList">getLutList</a></li><li data-type='method' style='display: none;'><a href="VRView.html#resetMeasurementState">resetMeasurementState</a></li><li data-type='method' style='display: none;'><a href="VRView.html#resetView">resetView</a></li><li data-type='method' style='display: none;'><a href="VRView.html#resize">resize</a></li><li data-type='method' style='display: none;'><a href="VRView.html#setImage">setImage</a></li><li data-type='method' style='display: none;'><a href="VRView.html#setSurfaceVisibility">setSurfaceVisibility</a></li><li data-type='method' style='display: none;'><a href="VRView.html#setTool">setTool</a></li><li data-type='method' style='display: none;'><a href="VRView.html#turnPickingOff">turnPickingOff</a></li><li data-type='method' style='display: none;'><a href="VRView.html#turnPickingOn">turnPickingOn</a></li><li data-type='method' style='display: none;'><a href="VRView.html#updateLandmarkPosition">updateLandmarkPosition</a></li><li data-type='method' style='display: none;'><a href="VRView.html#updateSurface">updateSurface</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#addSphereInPoint">addSphereInPoint</a></li><li><a href="global.html#applyAngleStrategy">applyAngleStrategy</a></li><li><a href="global.html#applyLengthStrategy">applyLengthStrategy</a></li><li><a href="global.html#buildVtkVolume">buildVtkVolume</a></li><li><a href="global.html#createRGBStringFromRGBValues">createRGBStringFromRGBValues</a></li><li><a href="global.html#createSurfaceActor">createSurfaceActor</a></li><li><a href="global.html#createVolumeActor">createVolumeActor</a></li><li><a href="global.html#degrees2radians">degrees2radians</a></li><li><a href="global.html#fitToWindow">fitToWindow</a></li><li><a href="global.html#getAbsoluteRange">getAbsoluteRange</a></li><li><a href="global.html#getCroppingPlanes">getCroppingPlanes</a></li><li><a href="global.html#getRelativeRange">getRelativeRange</a></li><li><a href="global.html#getVideoCardInfo">getVideoCardInfo</a></li><li><a href="global.html#getVOI">getVOI</a></li><li><a href="global.html#getVolumeCenter">getVolumeCenter</a></li><li><a href="global.html#larvitarInitialized">larvitarInitialized</a></li><li><a href="global.html#setActorProperties">setActorProperties</a></li><li><a href="global.html#setCamera">setCamera</a></li><li><a href="global.html#setupCropWidget">setupCropWidget</a></li><li><a href="global.html#setupPickingPlane">setupPickingPlane</a></li><li><a href="global.html#State">State</a></li></ul> </nav> <div id="main"> <h1 class="page-title">MPRManager</h1> <section> <header> <h2> MPRManager </h2> <div class="class-description usertext"><p>A manager for MPR views</p></div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="MPRManager"><span class="type-signature"></span>new MPRManager<span class="signature">(elements)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line33">line 33</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Create a manager.</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>elements</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last"><p>The 3 target HTML elements {key1:{}, key2:{}, key3:{}}.</p> <h6>Properties</h6> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>element</code></td> <td class="type"> <span class="param-type">HTMLElement</span> </td> <td class="description last"><p>The target HTML elements.</p></td> </tr> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>The target HTML elements.</p></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </div> <h3 class="subsection-title">Classes</h3> <dl> <dt><a href="MPRManager.html">MPRManager</a></dt> <dd></dd> </dl> <h3 class="subsection-title">Members</h3> <h4 class="name" id="wwwl"><span class="type-signature"></span>wwwl<span class="type-signature"> :Array</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line62">line 62</a> </li></ul></dd> </dl> <div class="description usertext"> <p>wwwl</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Array</span> </li> </ul> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="destroy"><span class="type-signature"></span>destroy<span class="signature">()</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line472">line 472</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Destroy webgl content and release listeners</p> </div> <h4 class="name" id="getInitialState"><span class="type-signature"></span>getInitialState<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="global.html#State">State</a>}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line97">line 97</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Get initial State object</p> </div> <h5>Returns:</h5> <div class="param-desc"> <p>The initial internal state</p> </div> <dl class="param-type"> <dt> Type </dt> <dd> <span class="param-type"><a href="global.html#State">State</a></span> </dd> </dl> <h4 class="name" id="onRotate"><span class="type-signature"></span>onRotate<span class="signature">(key, axis, angle, state)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line371">line 371</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Update slice planes on rotation</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>One of the initially provided keys (identify a view)</p></td> </tr> <tr> <td class="name"><code>axis</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>'x' or 'y' axis</p></td> </tr> <tr> <td class="name"><code>angle</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last"><p>The amount of rotation [deg], absolute</p></td> </tr> <tr> <td class="name"><code>state</code></td> <td class="type"> <span class="param-type"><a href="global.html#State">State</a></span> </td> <td class="description last"><p>The current manager state</p></td> </tr> </tbody> </table> <h4 class="name" id="onThickness"><span class="type-signature"></span>onThickness<span class="signature">(key, axis, thickness, state)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line406">line 406</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Update slice planes on rotation</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>One of the initially provided keys (identify a view)</p></td> </tr> <tr> <td class="name"><code>axis</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>'x' or 'y' axis</p></td> </tr> <tr> <td class="name"><code>thickness</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last"><p>The amount of thickness [px], absolute</p></td> </tr> <tr> <td class="name"><code>state</code></td> <td class="type"> <span class="param-type"><a href="global.html#State">State</a></span> </td> <td class="description last"><p>The current manager state</p></td> </tr> </tbody> </table> <h4 class="name" id="resize"><span class="type-signature"></span>resize<span class="signature">(key)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line458">line 458</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Force views resize</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>If provided, resize just its view, otherwise all views</p></td> </tr> </tbody> </table> <h4 class="name" id="setImage"><span class="type-signature"></span>setImage<span class="signature">(state, image)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line140">line 140</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Set the image to render</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>state</code></td> <td class="type"> <span class="param-type"><a href="global.html#State">State</a></span> </td> <td class="description last"><p>The current manager state</p></td> </tr> <tr> <td class="name"><code>image</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="description last"><p>The pixel data from DICOM serie</p></td> </tr> </tbody> </table> <h4 class="name" id="setTool"><span class="type-signature"></span>setTool<span class="signature">(toolName, state)</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="mprManager.js.html">mprManager.js</a>, <a href="mprManager.js.html#line172">line 172</a> </li></ul></dd> </dl> <div class="description usertext"> <p>Set the active tool</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>toolName</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last"><p>&quot;level&quot; or &quot;crosshair&quot;</p></td> </tr> <tr> <td class="name"><code>state</code></td> <td class="type"> <span class="param-type"><a href="global.html#State">State</a></span> </td> <td class="description last"><p>The current manager state</p></td> </tr> </tbody> </table> </article> </section> </div> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme. </footer> <script>prettyPrint();</script> <script src="scripts/polyfill.js"></script> <script src="scripts/linenumber.js"></script> <script src="scripts/search.js" defer></script> <script src="scripts/collapse.js" defer></script> </body> </html>