|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwindx.examples.kml.KMLViewController
gov.nasa.worldwindx.examples.kml.KMLOrbitViewController
public class KMLOrbitViewController
View controller to animate a OrbitView to look at a KML feature.
| Nested Class Summary | |
|---|---|
protected class |
KMLOrbitViewController.EyePositionAnimator
A position animator that will compute an OrbitView center position based on an eye position and
orientation. |
| Field Summary | |
|---|---|
protected long |
MAX_LENGTH_MILLIS
Maximum time for animation, in milliseconds. |
protected long |
MIN_LENGTH_MILLIS
Minimum time for animation, in milliseconds. |
protected OrbitView |
orbitView
The view to animate. |
| Fields inherited from class gov.nasa.worldwindx.examples.kml.KMLViewController |
|---|
DEFAULT_VIEW_ALTITUDE, viewAltitude, wwd |
| Constructor Summary | |
|---|---|
protected |
KMLOrbitViewController(WorldWindow wwd)
Create the view controller. |
| Method Summary | |
|---|---|
protected Position |
computeCenterPosition(Position eyePosition,
Vec4 forward,
Angle pitch,
int altitudeMode)
Compute a center position from an eye position and an orientation. |
protected FlyToOrbitViewAnimator |
createFlyToOrbitViewAnimator(OrbitView orbitView,
Position eyePosition,
Angle heading,
Angle pitch,
Angle roll,
long timeToMove,
int altitudeMode)
Create an animator to animate an orbit view to an eye position and orientation. |
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.worldwindx.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 final long MAX_LENGTH_MILLIS
protected final long MIN_LENGTH_MILLIS
protected OrbitView orbitView
| Constructor Detail |
|---|
protected KMLOrbitViewController(WorldWindow wwd)
wwd - WorldWindow that holds the view to animate. The WorldWindow's view must be an instance of OrbitView.| Method Detail |
|---|
protected Position computeCenterPosition(Position eyePosition,
Vec4 forward,
Angle pitch,
int altitudeMode)
eyePosition - The eye position.forward - The forward vector.pitch - View pitch.altitudeMode - Altitude mode of eyePosition.
protected FlyToOrbitViewAnimator createFlyToOrbitViewAnimator(OrbitView orbitView,
Position eyePosition,
Angle heading,
Angle pitch,
Angle roll,
long timeToMove,
int altitudeMode)
orbitView - View to animate.eyePosition - Desired eye position.heading - Desired heading.pitch - Desired pitch.roll - Desired roll.timeToMove - Animation time.altitudeMode - Altitude mode of eyePosition. (WorldWind.CLAMP_TO_GROUND, WorldWind.RELATIVE_TO_GROUND, or WorldWind.ABSOLUTE).
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 | ||||||||