SceneLoader.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. <div>
  15. todo
  16. </div>
  17. <h2>Properties</h2>
  18. <h3>.[page:Function onLoadStart]</h3>
  19. <div>Will be called when load starts.</div>
  20. <div>The default is a function with empty body.</div>
  21. <h3>.[page:Function onLoadProgress]</h3>
  22. <div>Will be called while load progresses.</div>
  23. <div>The default is a function with empty body.</div>
  24. <h3>.[page:Function onLoadComplete]</h3>
  25. <div>Will be called when each element in the scene completes loading.</div>
  26. <div>The default is a function with empty body.</div>
  27. <h3>.[page:Function callbackSync]</h3>
  28. <div>Will be called when load completes.</div>
  29. <div>The default is a function with empty body.</div>
  30. <h3>.[page:Function callbackProgress]</h3>
  31. <div>Will be called as load progresses.</div>
  32. <div>The default is a function with empty body.</div>
  33. <h3>.[page:object hierarchyHandlerMap]</h3>
  34. <div>
  35. todo
  36. </div>
  37. <h3>.[page:object geometryHandlerMap]</h3>
  38. <div>
  39. todo
  40. </div>
  41. <h2>Methods</h2>
  42. <h3>.load( [page:String url], [page:Function callbackFinished] )</h3>
  43. <div>
  44. url — required<br />
  45. callbackFinished — required. This function will be called with the loaded model as an instance of [page:Scene scene] when the load is completed.
  46. </div>
  47. <h3>.addHierarchyHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
  48. <div>
  49. typeID -- todo <br />
  50. loaderClass -- todo
  51. </div>
  52. <div>
  53. todo
  54. </div>
  55. <h3>.parse([page:todo json], [page:todo callbackFinished], [page:todo url]) [page:todo]</h3>
  56. <div>
  57. json -- todo <br />
  58. callbackFinished -- todo <br />
  59. url -- todo
  60. </div>
  61. <div>
  62. todo
  63. </div>
  64. <h3>.addGeometryHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
  65. <div>
  66. typeID -- todo <br />
  67. loaderClass -- todo
  68. </div>
  69. <div>
  70. todo
  71. </div>
  72. <h2>Source</h2>
  73. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  74. </body>
  75. </html>