|
42 | 42 | import java.io.File;
|
43 | 43 |
|
44 | 44 | /**
|
45 |
| - * Shows how to load {@link <a href="https://www.khronos.org/collada/">COLLADA</a> 3D models. |
| 45 | + * Shows how to load <a href="https://www.khronos.org/collada/">COLLADA</a> 3D models. |
46 | 46 | */
|
47 | 47 | public class ColladaViewer extends ApplicationTemplate {
|
48 | 48 |
|
@@ -88,10 +88,10 @@ public static class WorkerThread extends Thread {
|
88 | 88 |
|
89 | 89 | // Indicates the source of the COLLADA file loaded by this thread. Initialized during construction.
|
90 | 90 | protected Object colladaSource;
|
91 |
| - |
| 91 | + |
92 | 92 | // Geographic position of the COLLADA model.
|
93 | 93 | protected Position position;
|
94 |
| - |
| 94 | + |
95 | 95 | // Indicates the <code>AppFrame</code> the COLLADA file content is displayed in. Initialized during
|
96 | 96 | // construction.
|
97 | 97 | protected AppFrame appFrame;
|
@@ -131,21 +131,21 @@ public void run() {
|
131 | 131 | }
|
132 | 132 | }
|
133 | 133 | }
|
134 |
| - |
| 134 | + |
135 | 135 | public static void main(String[] args) {
|
136 |
| - |
| 136 | + |
137 | 137 | // Set camera position and pitch angle.
|
138 | 138 | Configuration.setValue(AVKey.INITIAL_LATITUDE, 40.028);
|
139 | 139 | Configuration.setValue(AVKey.INITIAL_LONGITUDE, -105.27284091410579);
|
140 | 140 | Configuration.setValue(AVKey.INITIAL_ALTITUDE, 4000);
|
141 | 141 | Configuration.setValue(AVKey.INITIAL_PITCH, 50);
|
142 |
| - |
| 142 | + |
143 | 143 | // Set the application frame to update, a position for the model, and a path to the COLLADA file.
|
144 | 144 | final AppFrame af = (AppFrame) start("WorldWind COLLADA Viewer", AppFrame.class);
|
145 | 145 | final Position MackyAuditoriumPosition = Position.fromDegrees(40.009993372683, -105.272774533734);
|
146 | 146 | final File ColladaFile = new File("testData/collada/cu_macky/CU Macky.dae");
|
147 |
| - |
148 |
| - // Invoque the <code>Thread</code> to load the COLLADA model asynchronously. |
| 147 | + |
| 148 | + // Invoke the <code>Thread</code> to load the COLLADA model asynchronously. |
149 | 149 | new WorkerThread(ColladaFile, MackyAuditoriumPosition, af).start();
|
150 | 150 |
|
151 | 151 | }
|
|
0 commit comments