SceneLoader.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">A loader for loading a complete scene out of a JSON file.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]()</h3>
  14. <h2>Properties</h2>
  15. <h3>.[page:Function onLoadStart]</h3>
  16. <div>Will be called when load starts.</div>
  17. <div>The default is a function with empty body.</div>
  18. <h3>.[page:Function onLoadProgress]</h3>
  19. <div>Will be called while load progresses.</div>
  20. <div>The default is a function with empty body.</div>
  21. <h3>.[page:Function onLoadComplete]</h3>
  22. <div>Will be called when each element in the scene completes loading.</div>
  23. <div>The default is a function with empty body.</div>
  24. <h3>.[page:Function callbackSync]</h3>
  25. <div>Will be called when load completes.</div>
  26. <div>The default is a function with empty body.</div>
  27. <h3>.[page:Function callbackProgress]</h3>
  28. <div>Will be called as load progresses.</div>
  29. <div>The default is a function with empty body.</div>
  30. <h3>.[page:object hierarchyHandlerMap]</h3>
  31. <div>
  32. todo
  33. </div>
  34. <h3>.[page:object geometryHandlerMap]</h3>
  35. <div>
  36. todo
  37. </div>
  38. <h2>Methods</h2>
  39. <h3>.load( [page:String url], [page:Function callbackFinished] )</h3>
  40. <div>
  41. url — required<br />
  42. callbackFinished — required. This function will be called with the loaded model as an instance of [page:Scene scene] when the load is completed.
  43. </div>
  44. <h3>.addHierarchyHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
  45. <div>
  46. typeID -- todo <br />
  47. loaderClass -- todo
  48. </div>
  49. <div>
  50. todo
  51. </div>
  52. <h3>.parse([page:todo json], [page:todo callbackFinished], [page:todo url]) [page:todo]</h3>
  53. <div>
  54. json -- todo <br />
  55. callbackFinished -- todo <br />
  56. url -- todo
  57. </div>
  58. <div>
  59. todo
  60. </div>
  61. <h3>.addGeometryHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
  62. <div>
  63. typeID -- todo <br />
  64. loaderClass -- todo
  65. </div>
  66. <div>
  67. todo
  68. </div>
  69. <h2>Source</h2>
  70. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  71. </body>
  72. </html>