UNPKG

crystvis-js

Version:

A Three.js based crystallographic visualisation tool

634 lines (498 loc) 34.9 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Adding favicon --> <!-- Adding meta --> <!-- Adding external script--> <!-- Adding external style--> <!-- Adding scripts--> <!-- Adding style--> <!-- Adding overlay script--> <!-- Adding overlay style--> <title> visualizer.js </title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/third-party/ionicons.min.css"> <link type="text/css" rel="stylesheet" href="styles/third-party/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/reset.css"> <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-base.css"> <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-dark.css"> <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:none"> <defs> <symbol id="copy-icon" viewbox="0 0 488.3 488.3"> <g> <path d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z" /> <path d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z" /> </g> </symbol> <symbol id='search-icon' viewBox="0 0 512 512"> <g> <g> <path d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z" /> </g> </g> <g> <g> <path d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" /> </g> </g> </symbol> <symbol id="down-icon" viewBox="0 0 16 16"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z" > </path> </symbol> </defs> </svg> </head> <body> <nav class="navbar" id="navbar"> <div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">Home</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="9953002" > <h3 class="accordion-heading">Modules<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="lib_model.module_js.html">lib/model.js</a></li><li class="accordion-list" id=""><a href="lib_modelview.module_js.html">lib/modelview.js</a></li><li class="accordion-list" id=""><a href="lib_visualizer.module_js.html">lib/visualizer.js</a></li></ul> </div><div class="accordion collapsed" id="3878701" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=6175172><div class="accordion-heading child"><a href="lib_model.module_js-AtomImage.html">AtomImage</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="lib_model.module_js-AtomImage.html#addEllipsoid">addEllipsoid</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#addLabel">addLabel</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#ellipsoidProperty">ellipsoidProperty</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#getArrayValue">getArrayValue</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#labelProperty">labelProperty</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#removeEllipsoid">removeEllipsoid</a></li><li data-type='method'><a href="lib_model.module_js-AtomImage.html#removeLabel">removeLabel</a></li></ul></li><li class="accordion-list" id=""><a href="lib_model.module_js-BondImage.html">BondImage</a></li><li class="accordion collapsed child" id=6715610><div class="accordion-heading child"><a href="lib_model.module_js-Model.html">Model</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="lib_model.module_js-Model.html#absToFrac">absToFrac</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#addLink">addLink</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#addSphere">addSphere</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#clearGraphics">clearGraphics</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#deleteArray">deleteArray</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#find">find</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#fracToAbs">fracToAbs</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#getArray">getArray</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#hasArray">hasArray</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#minimumSupercell">minimumSupercell</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#removeGraphics">removeGraphics</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#setArray">setArray</a></li><li data-type='method'><a href="lib_model.module_js-Model.html#view">view</a></li></ul></li><li class="accordion collapsed child" id=2271872><div class="accordion-heading child"><a href="lib_modelview.module_js-ModelView.html">ModelView</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#addEllipsoids">addEllipsoids</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#addLabels">addLabels</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#and">and</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#ellipsoidProperties">ellipsoidProperties</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#find">find</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#hide">hide</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#labelProperties">labelProperties</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#map">map</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#not">not</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#or">or</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#removeEllipsoids">removeEllipsoids</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#removeLabels">removeLabels</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#setProperty">setProperty</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#show">show</a></li><li data-type='method'><a href="lib_modelview.module_js-ModelView.html#xor">xor</a></li></ul></li><li class="accordion collapsed child" id=6565660><div class="accordion-heading child"><a href="lib_visualizer.module_js-CrystVis.html">CrystVis</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#addPrimitive">addPrimitive</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#centerCamera">centerCamera</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#deleteModel">deleteModel</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#displayModel">displayModel</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#getScreenshotData">getScreenshotData</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#loadModels">loadModels</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#onAtomBox">onAtomBox</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#onAtomClick">onAtomClick</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#reloadModel">reloadModel</a></li><li data-type='method'><a href="lib_visualizer.module_js-CrystVis.html#removePrimitive">removePrimitive</a></li></ul></li></ul> </div><div class="accordion collapsed" id="6000571" > <h3 class="accordion-heading">Tutorials<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="tutorial-Events.html">Events</a></li><li class="accordion-list" id=""><a href="tutorial-Queries.html">Queries</a></li></ul> </div> </nav> <div class="navbar-ham" id="navbar-ham"> <div> <div class="first"></div> <div class="second"></div> <div class="third"></div> </div> </div> <div id="main" class="main-content"> <h1 id='page-title' class="page-title"> visualizer.js </h1> <section> <article> <pre class="prettyprint source linenums"><code>'use strict'; /** * @fileoverview Class constituting the main object that plots crystals in the webpage * @module */ import * as _ from 'lodash'; import { Renderer as Renderer } from './render.js'; import { Loader as Loader } from './loader.js'; import { Model as Model } from './model.js'; import { ModelView as ModelView } from './modelview.js'; import { AtomMesh } from './primitives'; import { addStaticVar } from './utils.js'; const model_parameter_defaults = { supercell: [1, 1, 1], molecularCrystal: false }; /** An object providing a full interface to a renderer for crystallographic models */ class CrystVis { /** * An object providing a full interface to a renderer for crystallographic * models * @class * @param {string} element CSS-style identifier for the HTML element to * put the renderer in * @param {int} width Window width * @param {int} height Window height. If both this and width are * set to 0, the window fits its context and * automatically resizes with it */ constructor(element, width = 0, height = 0) { // Create a renderer this._renderer = new Renderer(element, width, height); this._loader = new Loader(); this._models = {}; this._current_model = null; this._current_mname = null; this._displayed = null; this._selected = null; // Handling events this._atom_click_events = {}; this._atom_click_events[CrystVis.LEFT_CLICK] = this._defaultAtomLeftClick.bind(this); this._atom_click_events[CrystVis.LEFT_CLICK + CrystVis.SHIFT_BUTTON] = this._defaultAtomShiftLeftClick.bind(this); this._atom_click_events[CrystVis.LEFT_CLICK + CrystVis.CTRL_BUTTON] = this._defaultAtomCtrlLeftClick.bind(this); this._atom_click_defaults = _.cloneDeep(this._atom_click_events); this._atom_box_event = this._defaultAtomBox.bind(this); this._renderer.addClickListener(this._handleAtomClick.bind(this), this._renderer._groups.model, AtomMesh); this._renderer.addSelBoxListener(this._handleAtomBox.bind(this), this._renderer._groups.model, AtomMesh); // Additional options // Hidden (need dedicated setters) this._hsel = false; // If true, highlight the selected atoms // Vanilla (no get/set needed) this.cifsymtol = 1e-2; // Parameter controlling the tolerance to symmetry when loading CIF files } /** * List of loaded models * @readonly * @type {Array} */ get modelList() { return Object.keys(this._models); } /** * Currently loaded model * @readonly * @type {Model} */ get model() { return this._current_model; } /** * Name of the currently loaded model * @readonly * @type {String} */ get modelName() { return this._current_mname; } /** * Displayed atoms * @type {ModelView} */ get displayed() { return this._displayed; } set displayed(d) { if (!(d instanceof ModelView)) { throw new Error('.displayed must be set with a ModelView'); } this._displayed.hide(); this._displayed = d; this._displayed.show(); } /** * Selected atoms * @type {ModelView} */ get selected() { return this._selected; } set selected(s) { if (!(s instanceof ModelView)) { throw new Error('.selected must be set with a ModelView'); } this._selected.setProperty('highlighted', false); this._selected = s; this._selected.setProperty('highlighted', this._hsel); } /** Whether the selected atoms should be highlighted with auras * @type {bool} */ get highlightSelected() { return this._hsel; } set highlightSelected(hs) { this._hsel = hs; if (this._selected) { this._selected.setProperty('highlighted', this._hsel); } } /** * Set a callback function for an event where a user clicks on an atom. The * function should take as arguments the atom image for the clicked atom and * the event object: * * function callback(atom, event) { * ... * } * * @param {Function} callback Callback function for the event. Passing "null" restores default behaviour * @param {int} modifiers Click event. Use the following flags to define it: * * * CrystVis.LEFT_CLICK * * CrystVis.RIGHT_CLICK * * CrystVis.MIDDLE_CLICK * * CrystVis.CTRL_BUTTON * * CrystVis.ALT_BUTTON * * CrystVis.SHIFT_BUTTON * * CrystVis.CMD_BUTTON * * For example, CrystVis.LEFT_CLICK + CrystVis.SHIFT_BUTTON * defines the event for a click while the Shift key is pressed. * */ onAtomClick(callback = null, modifiers = CrystVis.LEFT_CLICK) { // Check that event makes sense var lc = modifiers &amp; CrystVis.LEFT_CLICK; var mc = modifiers &amp; CrystVis.MIDDLE_CLICK; var rc = modifiers &amp; CrystVis.RIGHT_CLICK; if (lc + mc + rc == 0) { throw 'Can not set event without any click type'; } if ((lc &amp;&amp; mc) || (lc &amp;&amp; rc) || (mc &amp;&amp; rc)) { throw 'Can not set event with two or more click types'; } if (callback) this._atom_click_events[modifiers] = callback.bind(this); else this._atom_click_events[modifiers] = this._atom_click_defaults[modifiers]; } /** * Set a callback function for an event where a user drags a box around multiple atoms. * The function should take as arguments a ModelView including the atoms in the box: * * function callback(view) { * ... * } * * @param {Function} callback Callback function for the event. Passing "null" restores default behaviour */ onAtomBox(callback = null) { if (callback) this._atom_box_event = callback; else this._atom_box_event = this._defaultAtomBox.bind(this); } _defaultAtomLeftClick(atom, event) { var i = atom.imgIndex; this.selected = new ModelView(this._current_model, [i]); } _defaultAtomShiftLeftClick(atom, event) { var i = atom.imgIndex; this.selected = this.selected.or(new ModelView(this._current_model, [i])); } _defaultAtomCtrlLeftClick(atom, event) { var i = atom.imgIndex; this.selected = this.selected.xor(new ModelView(this._current_model, [i])); } _defaultAtomBox(view) { this.selected = this.selected.xor(view); console.log(view); } // Callback for when atoms are clicked _handleAtomClick(alist, event) { if (alist.length == 0) { return; } let clicked = alist[0].image; let modifiers = [CrystVis.LEFT_CLICK, CrystVis.MIDDLE_CLICK, CrystVis.RIGHT_CLICK][event.button]; modifiers += event.shiftKey * CrystVis.SHIFT_BUTTON; modifiers += (event.ctrlKey || event.metaKey) * CrystVis.CTRL_BUTTON; modifiers += event.altKey * CrystVis.ALT_BUTTON; var callback = this._atom_click_events[modifiers]; if (callback) callback(clicked, event); } // Callback for a whole box dragged over atoms _handleAtomBox(alist) { var indices = alist.map(function(a) { return a.image.imgIndex; }); var callback = this._atom_box_event; if (callback) callback(new ModelView(this._current_model, indices)); } /** * Center the camera on a given point * * @param {float[]} center Point in model space that the orbiting camera * should be centred on and look at * @param {float[]} shift Shift (in units of width/height of the canvas) with * which the center of the camera should be rendered with * respect to the center of the canvas */ centerCamera(center = [0, 0, 0], shift = [0, 0]) { const renderer = this._renderer; renderer.resetOrbitCenter(center[0], center[1], center[2]); renderer.resetCameraCenter(shift[0], shift[1]); } /** * Load one or more atomic models from a file's contents * * @param {String} contents The contents of the structure file * @param {String} format The file's format (cif, xyz, etc.). Default is cif. * @param {String} prefix Prefix to use when naming the models. Default is empty. * @param {Object} parameters Loading parameters: * * - `supercell`: supercell size (only used if the structure is periodic) * - `molecularCrystal`: if true, try to make the model load completing molecules across periodic boundaries * - `useNMRActiveIsotopes`: if true, all isotopes are set by default to the most common one with non-zero spin * - `vdwScaling`: scale van der Waals radii by a constant factor * - `vdwElementScaling`: table of per-element factors to scale VdW radii by * * @return {Object} Names of the models we tried to load, and values of true/false for successful loading or not */ loadModels(contents, format = 'cif', prefix = null, parameters = {}) { parameters = _.merge(model_parameter_defaults, parameters); // By default, it's cif format = format.toLowerCase(); // By default, same as the format prefix = prefix || format; var structs = this._loader.load(contents, format, prefix); var status = {}; if (this._loader.status == Loader.STATUS_ERROR) { status[prefix] = this._loader.error_message; return status; } // Now make unique names for (var n in structs) { var iter = 0; var coll = true; var nn = n; while (coll) { nn = n + (iter > 0 ? '_' + iter : ''); coll = nn in this._models; iter++; } var s = structs[n]; if (!s) { status[nn] = 'Model could not load properly'; continue; } this._models[nn] = new Model(s, parameters); status[nn] = 0; // Success } return status; } /** * Reload a model, possibly with new parameters * * @param {String} name Name of the model to reload. * @param {Object} parameters Loading parameters as in .loadModels() */ reloadModel(name, parameters = {}) { if (!(name in this._models)) { throw 'The requested model does not exist'; } var current = (this._current_mname == name); if (current) { // Hide the model to reload it later this.displayModel(); } var s = this._models[name]._atoms_base; parameters = _.merge(model_parameter_defaults, parameters); this._models[name] = new Model(s, parameters); if (current) { this.displayModel(name); } } /** * Render a model * * @param {String} name Name of the model to display. If empty, just * clear the renderer window. */ displayModel(name = null) { if (this._current_model) { this.selected = this._current_model.view([]); this._current_model.renderer = null; this._current_model = null; this._current_mname = null; } this._renderer.clear(); if (!name) { // If called with nothing, just quit here return; } if (!(name in this._models)) { throw 'The requested model does not exist'; } var m = this._models[name]; m.renderer = this._renderer; this._current_model = m; this._current_mname = name; this._displayed = m.find({ 'cell': [ [0, 0, 0] ] }); this._selected = new ModelView(m, []); // Empty // Set the camera in a way that will center the model var c = m.fracToAbs([0.5, 0.5, 0.5]); this._renderer.resetOrbitCenter(c[0], c[1], c[2]); this._displayed.show(); } /** * Erase a model from the recorded ones * * @param {String} name Name of the model to delete */ deleteModel(name) { if (!(name in this._models)) { throw 'The requested model does not exist'; } if (this._current_mname == name) { this.displayModel(); } delete this._models[name]; } /** * Add a primitive shape to the drawing * * @param {THREE.Object3D} p Primitive to add */ addPrimitive(p) { this._renderer.add(p); } /** * Remove a primitive shape from the drawing * * @param {THREE.Object3D} p Primitive to remove */ removePrimitive(p) { this._renderer.remove(p); } /** * Recover a data URL of a PNG screenshot of the current scene * * @return {String} A data URL of the PNG screenshot */ getScreenshotData() { // Force a render this._renderer._render(); // Grab the data from the canvas return this._renderer._r.domElement.toDataURL(); } } addStaticVar(CrystVis, 'LEFT_CLICK', 1); addStaticVar(CrystVis, 'MIDDLE_CLICK', 2); addStaticVar(CrystVis, 'RIGHT_CLICK', 4); addStaticVar(CrystVis, 'ALT_BUTTON', 8); addStaticVar(CrystVis, 'CTRL_BUTTON', 16); addStaticVar(CrystVis, 'CMD_BUTTON', 16); // Alias for Mac users addStaticVar(CrystVis, 'SHIFT_BUTTON', 32); export { CrystVis }</code></pre> </article> </section> </div> <footer class="footer" id="footer"> </footer> <script src="scripts/third-party/prettify.js"></script> <script src="scripts/third-party/lang-css.js"></script> <script type="text/javascript" src="scripts/misc.js"></script> <script>prettyPrint();</script> <script src="scripts/linenumber.js"></script> <script src="scripts/fix-code-block.js"></script> <script src="scripts/fix-navbar.js"></script> <script src="scripts/search.js"></script> <script src="scripts/third-party/fuse.js"></script> <script> var list = [{"title":"lib/model.js","link":"<a href=\"lib_model.module_js.html\">lib/model.js</a>"},{"title":"lib/modelview.js","link":"<a href=\"lib_modelview.module_js.html\">lib/modelview.js</a>"},{"title":"lib/visualizer.js","link":"<a href=\"lib_visualizer.module_js.html\">lib/visualizer.js</a>"},{"title":"AtomImage","link":"<a href=\"lib_model.module_js-AtomImage.html\">AtomImage</a>"},{"title":"lib/model.module:js~AtomImage#addEllipsoid","link":"<a href=\"lib_model.module_js-AtomImage.html#addEllipsoid\">lib/model.module:js~AtomImage &rtrif; addEllipsoid</a>"},{"title":"lib/model.module:js~AtomImage#addLabel","link":"<a href=\"lib_model.module_js-AtomImage.html#addLabel\">lib/model.module:js~AtomImage &rtrif; addLabel</a>"},{"title":"lib/model.module:js~AtomImage#ellipsoidProperty","link":"<a href=\"lib_model.module_js-AtomImage.html#ellipsoidProperty\">lib/model.module:js~AtomImage &rtrif; ellipsoidProperty</a>"},{"title":"lib/model.module:js~AtomImage#getArrayValue","link":"<a href=\"lib_model.module_js-AtomImage.html#getArrayValue\">lib/model.module:js~AtomImage &rtrif; getArrayValue</a>"},{"title":"lib/model.module:js~AtomImage#labelProperty","link":"<a href=\"lib_model.module_js-AtomImage.html#labelProperty\">lib/model.module:js~AtomImage &rtrif; labelProperty</a>"},{"title":"lib/model.module:js~AtomImage#removeEllipsoid","link":"<a href=\"lib_model.module_js-AtomImage.html#removeEllipsoid\">lib/model.module:js~AtomImage &rtrif; removeEllipsoid</a>"},{"title":"lib/model.module:js~AtomImage#removeLabel","link":"<a href=\"lib_model.module_js-AtomImage.html#removeLabel\">lib/model.module:js~AtomImage &rtrif; removeLabel</a>"},{"title":"BondImage","link":"<a href=\"lib_model.module_js-BondImage.html\">BondImage</a>"},{"title":"Model","link":"<a href=\"lib_model.module_js-Model.html\">Model</a>"},{"title":"lib/model.module:js~Model#absToFrac","link":"<a href=\"lib_model.module_js-Model.html#absToFrac\">lib/model.module:js~Model &rtrif; absToFrac</a>"},{"title":"lib/model.module:js~Model#addLink","link":"<a href=\"lib_model.module_js-Model.html#addLink\">lib/model.module:js~Model &rtrif; addLink</a>"},{"title":"lib/model.module:js~Model#addSphere","link":"<a href=\"lib_model.module_js-Model.html#addSphere\">lib/model.module:js~Model &rtrif; addSphere</a>"},{"title":"lib/model.module:js~Model#clearGraphics","link":"<a href=\"lib_model.module_js-Model.html#clearGraphics\">lib/model.module:js~Model &rtrif; clearGraphics</a>"},{"title":"lib/model.module:js~Model#deleteArray","link":"<a href=\"lib_model.module_js-Model.html#deleteArray\">lib/model.module:js~Model &rtrif; deleteArray</a>"},{"title":"lib/model.module:js~Model#find","link":"<a href=\"lib_model.module_js-Model.html#find\">lib/model.module:js~Model &rtrif; find</a>"},{"title":"lib/model.module:js~Model#fracToAbs","link":"<a href=\"lib_model.module_js-Model.html#fracToAbs\">lib/model.module:js~Model &rtrif; fracToAbs</a>"},{"title":"lib/model.module:js~Model#getArray","link":"<a href=\"lib_model.module_js-Model.html#getArray\">lib/model.module:js~Model &rtrif; getArray</a>"},{"title":"lib/model.module:js~Model#hasArray","link":"<a href=\"lib_model.module_js-Model.html#hasArray\">lib/model.module:js~Model &rtrif; hasArray</a>"},{"title":"lib/model.module:js~Model#minimumSupercell","link":"<a href=\"lib_model.module_js-Model.html#minimumSupercell\">lib/model.module:js~Model &rtrif; minimumSupercell</a>"},{"title":"lib/model.module:js~Model#removeGraphics","link":"<a href=\"lib_model.module_js-Model.html#removeGraphics\">lib/model.module:js~Model &rtrif; removeGraphics</a>"},{"title":"lib/model.module:js~Model#setArray","link":"<a href=\"lib_model.module_js-Model.html#setArray\">lib/model.module:js~Model &rtrif; setArray</a>"},{"title":"lib/model.module:js~Model#view","link":"<a href=\"lib_model.module_js-Model.html#view\">lib/model.module:js~Model &rtrif; view</a>"},{"title":"ModelView","link":"<a href=\"lib_modelview.module_js-ModelView.html\">ModelView</a>"},{"title":"lib/modelview.module:js~ModelView#addEllipsoids","link":"<a href=\"lib_modelview.module_js-ModelView.html#addEllipsoids\">lib/modelview.module:js~ModelView &rtrif; addEllipsoids</a>"},{"title":"lib/modelview.module:js~ModelView#addLabels","link":"<a href=\"lib_modelview.module_js-ModelView.html#addLabels\">lib/modelview.module:js~ModelView &rtrif; addLabels</a>"},{"title":"lib/modelview.module:js~ModelView#and","link":"<a href=\"lib_modelview.module_js-ModelView.html#and\">lib/modelview.module:js~ModelView &rtrif; and</a>"},{"title":"lib/modelview.module:js~ModelView#ellipsoidProperties","link":"<a href=\"lib_modelview.module_js-ModelView.html#ellipsoidProperties\">lib/modelview.module:js~ModelView &rtrif; ellipsoidProperties</a>"},{"title":"lib/modelview.module:js~ModelView#find","link":"<a href=\"lib_modelview.module_js-ModelView.html#find\">lib/modelview.module:js~ModelView &rtrif; find</a>"},{"title":"lib/modelview.module:js~ModelView#hide","link":"<a href=\"lib_modelview.module_js-ModelView.html#hide\">lib/modelview.module:js~ModelView &rtrif; hide</a>"},{"title":"lib/modelview.module:js~ModelView#labelProperties","link":"<a href=\"lib_modelview.module_js-ModelView.html#labelProperties\">lib/modelview.module:js~ModelView &rtrif; labelProperties</a>"},{"title":"lib/modelview.module:js~ModelView#map","link":"<a href=\"lib_modelview.module_js-ModelView.html#map\">lib/modelview.module:js~ModelView &rtrif; map</a>"},{"title":"lib/modelview.module:js~ModelView#not","link":"<a href=\"lib_modelview.module_js-ModelView.html#not\">lib/modelview.module:js~ModelView &rtrif; not</a>"},{"title":"lib/modelview.module:js~ModelView#or","link":"<a href=\"lib_modelview.module_js-ModelView.html#or\">lib/modelview.module:js~ModelView &rtrif; or</a>"},{"title":"lib/modelview.module:js~ModelView#removeEllipsoids","link":"<a href=\"lib_modelview.module_js-ModelView.html#removeEllipsoids\">lib/modelview.module:js~ModelView &rtrif; removeEllipsoids</a>"},{"title":"lib/modelview.module:js~ModelView#removeLabels","link":"<a href=\"lib_modelview.module_js-ModelView.html#removeLabels\">lib/modelview.module:js~ModelView &rtrif; removeLabels</a>"},{"title":"lib/modelview.module:js~ModelView#setProperty","link":"<a href=\"lib_modelview.module_js-ModelView.html#setProperty\">lib/modelview.module:js~ModelView &rtrif; setProperty</a>"},{"title":"lib/modelview.module:js~ModelView#show","link":"<a href=\"lib_modelview.module_js-ModelView.html#show\">lib/modelview.module:js~ModelView &rtrif; show</a>"},{"title":"lib/modelview.module:js~ModelView#xor","link":"<a href=\"lib_modelview.module_js-ModelView.html#xor\">lib/modelview.module:js~ModelView &rtrif; xor</a>"},{"title":"CrystVis","link":"<a href=\"lib_visualizer.module_js-CrystVis.html\">CrystVis</a>"},{"title":"lib/visualizer.module:js~CrystVis#addPrimitive","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#addPrimitive\">lib/visualizer.module:js~CrystVis &rtrif; addPrimitive</a>"},{"title":"lib/visualizer.module:js~CrystVis#centerCamera","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#centerCamera\">lib/visualizer.module:js~CrystVis &rtrif; centerCamera</a>"},{"title":"lib/visualizer.module:js~CrystVis#deleteModel","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#deleteModel\">lib/visualizer.module:js~CrystVis &rtrif; deleteModel</a>"},{"title":"lib/visualizer.module:js~CrystVis#displayModel","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#displayModel\">lib/visualizer.module:js~CrystVis &rtrif; displayModel</a>"},{"title":"lib/visualizer.module:js~CrystVis#getScreenshotData","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#getScreenshotData\">lib/visualizer.module:js~CrystVis &rtrif; getScreenshotData</a>"},{"title":"lib/visualizer.module:js~CrystVis#loadModels","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#loadModels\">lib/visualizer.module:js~CrystVis &rtrif; loadModels</a>"},{"title":"lib/visualizer.module:js~CrystVis#onAtomBox","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#onAtomBox\">lib/visualizer.module:js~CrystVis &rtrif; onAtomBox</a>"},{"title":"lib/visualizer.module:js~CrystVis#onAtomClick","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#onAtomClick\">lib/visualizer.module:js~CrystVis &rtrif; onAtomClick</a>"},{"title":"lib/visualizer.module:js~CrystVis#reloadModel","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#reloadModel\">lib/visualizer.module:js~CrystVis &rtrif; reloadModel</a>"},{"title":"lib/visualizer.module:js~CrystVis#removePrimitive","link":"<a href=\"lib_visualizer.module_js-CrystVis.html#removePrimitive\">lib/visualizer.module:js~CrystVis &rtrif; removePrimitive</a>"},{"title":"Events","link":"Events"},{"title":"Queries","link":"Queries"}]; var options = setupSearch(list, options) </script> </body> </html>