-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathViewAnimatorInterfacePorting.html
445 lines (445 loc) · 32.1 KB
/
ViewAnimatorInterfacePorting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.1 (Unix)">
<META NAME="AUTHOR" CONTENT="Jim Terhorst">
<META NAME="CREATED" CONTENT="20090817;12302300">
<META NAME="CHANGEDBY" CONTENT="Jim Terhorst">
<META NAME="CHANGED" CONTENT="20090828;12125500">
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<H4 ALIGN=CENTER><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=5><B>The
New World Wind View/Animation Interface Architecture</B></FONT></FONT></FONT></H4>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>This
document describes what is required in order to move application code
from the old View/StateIterator Architecture in World Wind, to the
new View/Animator interface architecture in World Wind. The View and
Animation system was rearchitected to provide a framework for
supporting varying View/Navigation paradigms. Prior to this
rearchitecture, OrbitView was the only view/navigation paradigm
provided with World Wind. Now there is a fly view
paradigm(gov.nasa.worldwind.view.firstperson.BasicFlyView), and the
system has been architected to support derivations of existing views,
and instances of completely new views. </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>The
first section describes the change to the <B>View</B> interface. The
second section is a list of old methods for creating view state
iteratations, and the matching methods in the new View/Animator
interface. The final section is a case study example from
gov.nasa.worldwind.applications.sar.</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>Changes
to the View interface</B></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>The
View interface has changed to :</FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Remove
interface methods that were specific to the OrbitView
implementation.</FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>setDetectCollisions</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>hadCollisions</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
and </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>isDetectCollisions</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">are
no longer specified in the View interface. The BasicOrbitView View
implementation still has those methods.</SPAN></FONT></FONT></FONT></P>
</UL>
<LI><P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Near
and Far Distance setters/getters</FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Remove
the methods for setting near and far distance.</FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Views
by default control the near and far distance. When an application
needs to specify clip distances, it can derive a new </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>View</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">from
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>BasicView</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>BasicOrbitView</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
or </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>BasicFlyView</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
overriding the protected methods </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>computeNearClipDistance()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
and </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>computeFarClipDistance()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.
This means the general View interface does not provide set
capability for the near and far clip distances. Note that these
are the methods that do not take any parameters. They are called
from the doApply() method that sets up the modelview and
projection matrices.</SPAN></FONT></FONT></FONT></P>
</UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Remove
the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getAutoNearClipDistance()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">,
and </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getAutoFarClipDistance()</B></FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">View
implementations now return the near and far clip distances in
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getNearClipDistance()</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">and
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getFarClipDistance()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.</SPAN></FONT></FONT></FONT></P>
</UL>
</UL>
<LI><P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Remove
methods for setting and starting Iterators, and for determining
whether an iterator is operational.</FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Iterator</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">s
have been replaced by </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Animator</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">s
which reside in the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>gov.nasa.worldwind.animation</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">package.
See the next section in this document: </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><I><SPAN STYLE="font-weight: normal">Old/New
Method Mappings for View Animation</SPAN></I></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">for
more information.</SPAN></FONT></FONT></FONT></P>
</UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">The
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Iterator</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">methods
are replaced by </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Animator</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">methods:</SPAN></FONT></FONT></FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>stopAnimations()</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">will
stop running all </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>View</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Animator</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">s.
</SPAN></FONT></FONT></FONT>
</P>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>IsAnimating()</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">returns
true if there are active animations, false otherwise.</SPAN></FONT></FONT></FONT></P>
</UL>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Added
a method for getting the center point of the globe in the view: </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>vec4
View.getCenterPoint()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.</SPAN></FONT></FONT></FONT></P>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Added
a method for getting the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Globe</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">used
in the view: </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getGlobe()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.</SPAN></FONT></FONT></FONT></P>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Added
a method for getting the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>ViewInputHandler</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">:
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getViewInputHandler()</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.
The architecture has changed in that the ViewInputHandler used to be
created and owned by the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>AWTInputHandler</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">.
Now it is created and owned by the View. </SPAN></FONT></FONT></FONT>
</P>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Added
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>getViewPropertyLimits()</B></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">for
getting a reference to the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>View</B></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">'s
limits.</SPAN></FONT></FONT></FONT></P>
<LI><P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">Added
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>copyViewState(View
view)</B></FONT></FONT></FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">to
support switching from one View implementation to another.</SPAN></FONT></FONT></FONT></P>
</UL>
<P><BR><BR>
</P>
<P STYLE="margin-bottom: 0in"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>Old/New
Method Mappings for View Animation</B></FONT></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT FACE="Helvetica, sans-serif">There
is a new method in the View interface :</FONT></P>
<UL>
<LI><P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>void
goTo(Position lookAtPos, double elevation);</FONT></FONT></FONT></P>
</UL>
<P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>This
method can be used without knowing the underlying View implementation
if that application simply wants the view to be looking at a
particular location.</FONT></FONT></FONT></P>
<P STYLE="margin-left: 0.5in; text-indent: -0.49in; margin-bottom: 0in">
<BR>
</P>
<P STYLE="margin-bottom: 0in">From the <FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">FlyToOrbitViewStateIterator
class:</SPAN></FONT></FONT></FONT></P>
<TABLE WIDTH=100% BORDER=1 CELLPADDING=4 CELLSPACING=4>
<COL WIDTH=128*>
<COL WIDTH=128*>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><B>FlyToOrbitViewStateIterator
Method</B></FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P><B>Corresponding BasicOrbitView method</B></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createPanToIterator(OrbitView
orbitView, Globe globe,Position center,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle,
heading, Angle pitch, double zoom)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addPanToAnimator(Position
center,Angle heading, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
pitch, double zoom)</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createPanToIterator(OrbitView
orbitView, Globe globe, Position center, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
heading, Angle pitch, double zoom, boolean endCenterOnSurface)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addPanToAnimator(Position
center, Angle heading, Angle pitch, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>double
zoom, boolean endCenterOnSurface)</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createPanToIterator(Globe
globe, Position beginCenter, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Position
endCenter, Angle beginHeading, Angle endHeading,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
beginPitch, Angle endPitch, double beginZoom, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>double
endZoom)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addPanToAnimator(Position
beginCenter, Position endCenter, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
beginHeading, Angle endHeading, Angle beginPitch, Angle endPitch,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>double
beginZoom, double endZoom)</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>CreatePanToIterator(Globe
globe, Position beginCenter, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Position
endCenter, Angle beginHeading, Angle endHeading,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
beginPitch, Angle endPitch, double beginZoom, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>double
endZoom, boolean endCenterOnSurface)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>AddPanToAnimator(Position
beginCenter, Position endCenter,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
beginHeading, Angle endHeading, Angle beginPitch, Angle endPitch,</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>double
beginZoom, double endZoom, boolean endCenterOnSurface)</FONT></FONT></FONT></P>
</TD>
</TR>
</TABLE>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>From
the ScheduledViewStateIterator class:</FONT></FONT></FONT></P>
<TABLE WIDTH=100% BORDER=1 CELLPADDING=4 CELLSPACING=4>
<COL WIDTH=128*>
<COL WIDTH=128*>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>ScheduledViewStateIterator
Method</B></FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>Corresponding
BasicOrbitView method</B></FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createHeadingPitchIterator(OrbitView
view,</FONT></FONT></FONT></P>
<P STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
beginHeding, Angle endHeading, Angle beginPitch, Angle endPitch);</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addHeadingPitchAnimator(Angle
beginHeading, Angle endHeading, Angle beginPitch, Angle endPitch)</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createHeadingIterator(OrbitView
view, Angle beginHeding, Angle endHeading)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addHeadingAnimator(Angle
beginHeading, Angle endHeading)</FONT></FONT></FONT></P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>createHeadingIterator(OrbitView
view, Angle beginHeding, </FONT></FONT></FONT>
</P>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>Angle
endHeading)</FONT></FONT></FONT></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=LEFT STYLE="font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=2>addPitchAnimator(Angle
beginPitch, Angle endPitch)</FONT></FONT></FONT></P>
</TD>
</TR>
</TABLE>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in">
<BR>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in">
<FONT FACE="Helvetica, sans-serif">If your code uses an
EyePositionIterator, you can simply replace its construction and
application to the View, with the</FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in">
<FONT FACE="Helvetica, sans-serif">BasicOrbitView method :</FONT></P>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>BasicOrbitView.addEyePositionAnimator(long
timeToIterate, Position beginPosition, Position endPosition)</B></FONT></FONT></FONT></P>
</UL>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>To
stop and motion that is associated with animations in the View use:</FONT></FONT></FONT></P>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>View.stopAnimations()</B></FONT></FONT></FONT></P>
</UL>
<P ALIGN=LEFT STYLE="margin-left: 1.5in; text-indent: -1.5in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>To
determine if a View is currently running any animations use:</FONT></FONT></FONT></P>
<UL>
<LI><P ALIGN=LEFT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>View.isAnimating()</B></FONT></FONT></FONT></P>
</UL>
<P ALIGN=LEFT><BR><BR>
</P>
<P ALIGN=LEFT STYLE="margin-left: 0.5in; text-indent: -0.5in; margin-bottom: 0in">
<FONT FACE="Helvetica, sans-serif"><FONT SIZE=4 STYLE="font-size: 15pt"><FONT COLOR="#000000"><B>An
example of what is required of an application to adapt to the new
View/Animator Interface architecture</B></FONT><FONT COLOR="#000000">
</FONT></FONT></FONT>
</P>
<P STYLE="margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">This
section shows how the Search and Rescue(SAR) application
gov.nasa.worldwind.applications.sar was modified to use the new
</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><I><SPAN STYLE="font-weight: normal">View/Animator</SPAN></I></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">interface
architecture. In the SAR application, there are 3 uses of :</SPAN></FONT></FONT></FONT></P>
<P STYLE="margin-left: 1in; margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>FlyToOrbitViewStateIterator.createPanToIterator</FONT></FONT></FONT></P>
<P STYLE="margin-left: 1in; margin-bottom: 0in"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">view.applyStateIterator</SPAN></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT>
</P>
<P STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>These
are easily replaced with calls to :</FONT></FONT></FONT></P>
<P STYLE="margin-left: 0.99in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>OrbitViewInputHandler.addPanToAnimator</FONT></FONT></FONT></P>
<P STYLE="margin-left: 0.99in; margin-bottom: 0in"><BR>
</P>
<P ALIGN=LEFT STYLE="margin-left: 1in; text-indent: -1in; margin-bottom: 0in">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">In
the </SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><I><SPAN STYLE="font-weight: normal">AnalysisPanel</SPAN></I></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">class
there are 2 usages of</SPAN></FONT></FONT></FONT><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><B>:</B></FONT></FONT></FONT></P>
<P STYLE="margin-left: 1in; margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>FlyToOrbitViewStateIterator.createPanToIterator</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>view.applyStateIterator</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1in; margin-bottom: 0in"><BR>
</P>
<UL>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Line
369 in the method updateView:</FONT></FONT></FONT></P>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>is
changed from :</FONT></FONT></FONT></P>
<UL>
<PRE STYLE="margin-bottom: 0.2in">view.applyStateIterator(FlyToOrbitViewStateIterator.createPanToIterator(view, this.wwd.getModel().getGlobe(),groundPos, initialHeading, initialPitch, initialZoom, true));</PRE>
</UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>To
:</FONT></FONT></FONT></P>
<PRE STYLE="margin-bottom: 0.2in">((BasicOrbitView) view).addPanToAnimator(groundPos, initialHeading, initialPitch, initialZoom, true);</PRE>
</UL>
</UL>
</UL>
<UL>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Line
424 in updateView:</FONT></FONT></FONT></P>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>is
changed from :</FONT></FONT></FONT></P>
<UL>
<PRE>view.applyStateIterator(FlyToOrbitViewStateIterator.createPanToIterator(
view, this.wwd.getModel().getGlobe(), addpos, heading, pitch, zoom));</PRE>
</UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>To:</FONT></FONT></FONT></P>
<UL>
<PRE>((BasicOrbitView) view).addPanToAnimator(
pos, heading, pitch, zoom, false);</PRE>
</UL>
</UL>
</UL>
</UL>
<P ALIGN=LEFT STYLE="margin-left: 1in; text-indent: -1in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>In
the TrackController class there is one usage of :</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1in; text-indent: -0.01in; margin-bottom: 0in; font-weight: normal">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>FlyToOrbitViewStateIterator.createPanToIterator</FONT></FONT></FONT></P>
<P ALIGN=LEFT STYLE="margin-left: 1in; text-indent: -0.01in; margin-bottom: 0in">
<FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3><SPAN STYLE="font-weight: normal">view.applyStateIterator</SPAN></FONT></FONT></FONT><FONT COLOR="#000000">
</FONT>
</P>
<UL>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>Line
335 in the method moveToTrack :</FONT></FONT></FONT></P>
<UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>is
changed from:</FONT></FONT></FONT></P>
<UL>
<PRE>view.applyStateIterator(FlyToOrbitViewStateIterator.createPanToIterator(
view, this.wwd.getModel().getGlobe(),
pos, view.getHeading(), Angle.ZERO, 10000, true))</PRE>
</UL>
<LI><P ALIGN=LEFT STYLE="margin-bottom: 0in; font-weight: normal"><FONT COLOR="#000000"><FONT FACE="Helvetica, sans-serif"><FONT SIZE=3>To:</FONT></FONT></FONT></P>
<UL>
<PRE STYLE="margin-bottom: 0.2in; font-weight: normal; text-align: left"><FONT COLOR="#000000"><FONT FACE="Times New Roman, serif"><FONT SIZE=3>((BasicOrbitView) view).addPanToAnimator(pos, view.getHeading(), Angle.ZERO, 10000, true);</FONT></FONT></FONT></PRE>
</UL>
</UL>
</UL>
</UL>
</BODY>
</HTML>