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 |
|
---|
12 | <div class="desc">A loader for loading a complete scene out of a JSON file.</div>
|
---|
13 |
|
---|
14 |
|
---|
15 | <h2>Constructor</h2>
|
---|
16 |
|
---|
17 |
|
---|
18 | <h3>[name]()</h3>
|
---|
19 | <div>
|
---|
20 | todo
|
---|
21 | </div>
|
---|
22 |
|
---|
23 |
|
---|
24 | <h2>Properties</h2>
|
---|
25 |
|
---|
26 | <h3>.[page:Function onLoadStart]</h3>
|
---|
27 | <div>Will be called when load starts.</div>
|
---|
28 | <div>The default is a function with empty body.</div>
|
---|
29 |
|
---|
30 | <h3>.[page:Function onLoadProgress]</h3>
|
---|
31 | <div>Will be called while load progresses.</div>
|
---|
32 | <div>The default is a function with empty body.</div>
|
---|
33 |
|
---|
34 | <h3>.[page:Function onLoadComplete]</h3>
|
---|
35 | <div>Will be called when each element in the scene completes loading.</div>
|
---|
36 | <div>The default is a function with empty body.</div>
|
---|
37 |
|
---|
38 | <h3>.[page:Function callbackSync]</h3>
|
---|
39 | <div>Will be called when load completes.</div>
|
---|
40 | <div>The default is a function with empty body.</div>
|
---|
41 |
|
---|
42 | <h3>.[page:Function callbackProgress]</h3>
|
---|
43 | <div>Will be called as load progresses.</div>
|
---|
44 | <div>The default is a function with empty body.</div>
|
---|
45 |
|
---|
46 |
|
---|
47 | <h3>.[page:object hierarchyHandlerMap]</h3>
|
---|
48 | <div>
|
---|
49 | todo
|
---|
50 | </div>
|
---|
51 |
|
---|
52 | <h3>.[page:object geometryHandlerMap]</h3>
|
---|
53 | <div>
|
---|
54 | todo
|
---|
55 | </div>
|
---|
56 |
|
---|
57 | <h2>Methods</h2>
|
---|
58 |
|
---|
59 | <h3>.load( [page:String url], [page:Function callbackFinished] )</h3>
|
---|
60 | <div>
|
---|
61 | url â required<br />
|
---|
62 | callbackFinished â required. This function will be called with the loaded model as an instance of [page:Scene scene] when the load is completed.
|
---|
63 | </div>
|
---|
64 |
|
---|
65 |
|
---|
66 | <h3>.addHierarchyHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
|
---|
67 | <div>
|
---|
68 | typeID -- todo <br />
|
---|
69 | loaderClass -- todo
|
---|
70 | </div>
|
---|
71 | <div>
|
---|
72 | todo
|
---|
73 | </div>
|
---|
74 |
|
---|
75 | <h3>.parse([page:todo json], [page:todo callbackFinished], [page:todo url]) [page:todo]</h3>
|
---|
76 | <div>
|
---|
77 | json -- todo <br />
|
---|
78 | callbackFinished -- todo <br />
|
---|
79 | url -- todo
|
---|
80 | </div>
|
---|
81 | <div>
|
---|
82 | todo
|
---|
83 | </div>
|
---|
84 |
|
---|
85 | <h3>.addGeometryHandler([page:todo typeID], [page:todo loaderClass]) [page:todo]</h3>
|
---|
86 | <div>
|
---|
87 | typeID -- todo <br />
|
---|
88 | loaderClass -- todo
|
---|
89 | </div>
|
---|
90 | <div>
|
---|
91 | todo
|
---|
92 | </div>
|
---|
93 |
|
---|
94 | <h2>Source</h2>
|
---|
95 |
|
---|
96 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
97 | </body>
|
---|
98 | </html>
|
---|