Package gov.nasa.worldwindx.examples.kml
Class KMLFlyViewController
- java.lang.Object
- 
- gov.nasa.worldwindx.examples.kml.KMLViewController
- 
- gov.nasa.worldwindx.examples.kml.KMLFlyViewController
 
 
- 
 public class KMLFlyViewController extends KMLViewController A view controller to animate aBasicFlyViewto look at a KML feature.- See Also:
- BasicFlyView
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classKMLFlyViewController.FlyToLookAtAnimatorA compound animator to animates a FlyView to look from the same orientation as anOrbitView.
 - 
Field SummaryFields Modifier and Type Field Description protected BasicFlyViewflyViewThe view to animate.protected longMAX_LENGTH_MILLISMaximum time for animation, in milliseconds.protected longMIN_LENGTH_MILLISMinimum time for animation, in milliseconds.- 
Fields inherited from class gov.nasa.worldwindx.examples.kml.KMLViewControllerDEFAULT_VIEW_ALTITUDE, viewAltitude, wwd
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedKMLFlyViewController(WorldWindow wwd)Create the view controller.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlyToFlyViewAnimatorcreateFlyToLookAtAnimator(BasicFlyView view, Position lookAtPosition, Angle heading, Angle pitch, double range, long timeToMove, int altitudeMode)Create an animator to fly to a LookAt position.protected voidgoTo(KMLCamera camera)Animate the view to the position described by a KMLCamera.protected voidgoTo(KMLLookAt lookAt)Animate the view to the position described by a KMLLookAt.- 
Methods inherited from class gov.nasa.worldwindx.examples.kml.KMLViewControllercreate, findMaxAltitude, getViewAltitude, goTo, goTo, goToDefaultGroundOverlayView, goToDefaultPlacemarkView, goToDefaultView, goToDefaultView, setViewAltitude
 
- 
 
- 
- 
- 
Field Detail- 
MIN_LENGTH_MILLISprotected final long MIN_LENGTH_MILLIS Minimum time for animation, in milliseconds.- See Also:
- Constant Field Values
 
 - 
MAX_LENGTH_MILLISprotected final long MAX_LENGTH_MILLIS Maximum time for animation, in milliseconds.- See Also:
- Constant Field Values
 
 - 
flyViewprotected BasicFlyView flyView The view to animate.
 
- 
 - 
Constructor Detail- 
KMLFlyViewControllerprotected KMLFlyViewController(WorldWindow wwd) Create the view controller.- Parameters:
- wwd- WorldWindow that holds the view to animate. The WorldWindow's view must be an instance of- BasicFlyView.
 
 
- 
 - 
Method Detail- 
goToprotected void goTo(KMLLookAt lookAt) Animate the view to the position described by a KMLLookAt.- Specified by:
- goToin class- KMLViewController
- Parameters:
- lookAt- KML LookAt that describes the desired view.
 
 - 
goToprotected void goTo(KMLCamera camera) Animate the view to the position described by a KMLCamera.- Specified by:
- goToin class- KMLViewController
- Parameters:
- camera- KML Camera that describes the desired view.
 
 - 
createFlyToLookAtAnimatorprotected 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. The animator is aware of altitude mode and will re-compute the final eye altitude as the animation proceeds to ensure that the final view uses the most accurate elevation data.- Parameters:
- 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).
- Returns:
- Animator that will animate the view to look at lookAtPositionwith the specified heading, pitch, roll, and range.
 
 
- 
 
-