|
@@ -63,7 +63,7 @@
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
<div>
|
|
<div>
|
|
[page:String url] — required. URL to the <em>.pdb</em> file<br />
|
|
[page:String url] — required. URL to the <em>.pdb</em> file<br />
|
|
- [page:Function onLoad] — Will be called when load completes. The arguments will be an [page:Geometry geometryAtoms], [page:Geometry geometryBonds] and the [page:Object JSON] structure.<br />
|
|
|
|
|
|
+ [page:Function onLoad] — Will be called when load completes. The arguments will be an [page:BufferGeometry geometryAtoms], [page:BufferGeometry geometryBonds] and the [page:Object JSON] structure.<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
[page:Function onError] — Will be called when load errors.<br />
|
|
[page:Function onError] — Will be called when load errors.<br />
|
|
</div>
|
|
</div>
|
|
@@ -82,10 +82,10 @@
|
|
<h3>[method:null createModel]( [page:Object json], [page:Function callback] )</h3>
|
|
<h3>[method:null createModel]( [page:Object json], [page:Function callback] )</h3>
|
|
<div>
|
|
<div>
|
|
[page:Object json] — The <em>(JSON) pdb</em> structure to parse.<br />
|
|
[page:Object json] — The <em>(JSON) pdb</em> structure to parse.<br />
|
|
- [page:Function callback] — Will be called when parse completes, with three arguments: [page:Geometry geometryAtoms], [page:Geometry geometryBonds] and the original [page:Object json].<br />
|
|
|
|
|
|
+ [page:Function callback] — Will be called when parse completes, with three arguments: [page:BufferGeometry geometryAtoms], [page:BufferGeometry geometryBonds] and the original [page:Object json].<br />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- Parse a <em>(JSON) pdb</em> structure and return two [page:Geometry]: one for atoms, one for bonds.<br />
|
|
|
|
|
|
+ Parse a <em>(JSON) pdb</em> structure and return two [page:BufferGeometry]: one for atoms, one for bonds.<br />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|