|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.examples.kml.KMLViewController
gov.nasa.worldwind.examples.kml.KMLFlyViewController
public class KMLFlyViewController
A view controller to animate a BasicFlyView to look at a KML feature.
BasicFlyView| Nested Class Summary | |
|---|---|
protected class |
KMLFlyViewController.FlyToLookAtAnimator
A compound animator to animates a FlyView to look from the same orientation as an OrbitView. |
| Field Summary | |
|---|---|
protected BasicFlyView |
flyView
The view to animate. |
protected long |
MAX_LENGTH_MILLIS
Maximum time for animation, in milliseconds. |
protected long |
MIN_LENGTH_MILLIS
Minimum time for animation, in milliseconds. |
| Fields inherited from class gov.nasa.worldwind.examples.kml.KMLViewController |
|---|
DEFAULT_VIEW_ALTITUDE, viewAltitude, wwd |
| Constructor Summary | |
|---|---|
protected |
KMLFlyViewController(WorldWindow wwd)
Create the view controller. |
| Method Summary | |
|---|---|
protected FlyToFlyViewAnimator |
createFlyToLookAtAnimator(BasicFlyView view,
Position lookAtPosition,
Angle heading,
Angle pitch,
double range,
long timeToMove,
int altitudeMode)
Create an animator to fly to a LookAt position. |
protected void |
goTo(KMLCamera camera)
Animate the view to the position described by a KML Camera. |
protected void |
goTo(KMLLookAt lookAt)
Animate the view to the position described by a KML LookAt. |
| Methods inherited from class gov.nasa.worldwind.examples.kml.KMLViewController |
|---|
create, findMaxAltitude, getViewAltitude, goTo, goTo, goToDefaultGroundOverlayView, goToDefaultPlacemarkView, goToDefaultView, goToDefaultView, setViewAltitude |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BasicFlyView flyView
protected final long MAX_LENGTH_MILLIS
protected final long MIN_LENGTH_MILLIS
| Constructor Detail |
|---|
protected KMLFlyViewController(WorldWindow wwd)
wwd - WorldWindow that holds the view to animate. The WorldWindow's view must be an instance of BasicFlyView.| Method Detail |
|---|
protected FlyToFlyViewAnimator createFlyToLookAtAnimator(BasicFlyView view,
Position lookAtPosition,
Angle heading,
Angle pitch,
double range,
long timeToMove,
int altitudeMode)
view - The view to animate.lookAtPosition - The position to look at.heading - Desired heading.pitch - Desired pitch.range - Distance from the final eye point to lookAtPosition.timeToMove - Time to move, in milliseconds.altitudeMode - Altitude mode of the lookAtPosition (WorldWind.CLAMP_TO_GROUND, WorldWind.RELATIVE_TO_GROUND, or WorldWind.ABSOLUTE).
lookAtPosition with the specified heading, pitch,
roll, and range.protected void goTo(KMLCamera camera)
Camera.
goTo in class KMLViewControllercamera - KML Camera that describes the desired view.protected void goTo(KMLLookAt lookAt)
LookAt.
goTo in class KMLViewControllerlookAt - KML LookAt that describes the desired view.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||