|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.animation.BasicAnimator
gov.nasa.worldwind.animation.DoubleAnimator
gov.nasa.worldwind.view.ViewElevationAnimator
public class ViewElevationAnimator
An Animator for elevation values. Calculates a mid-zoom value that
gives the effect of flying up and them back down again.
| Field Summary | |
|---|---|
protected double |
midZoom
|
protected double |
trueEndZoom
|
protected boolean |
useMidZoom
|
| Fields inherited from class gov.nasa.worldwind.animation.DoubleAnimator |
|---|
begin, end, propertyAccessor |
| Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator |
|---|
interpolator |
| Constructor Summary | |
|---|---|
ViewElevationAnimator(Globe globe,
double beginZoom,
double endZoom,
LatLon beginLatLon,
LatLon endLatLon,
PropertyAccessor.DoubleAccessor propertyAccessor)
|
|
| Method Summary | |
|---|---|
protected static double |
computeMidZoom(Globe globe,
LatLon beginLatLon,
LatLon endLatLon,
double beginZoom,
double endZoom)
|
double |
getTrueEndZoom()
return the true position to end the elevation animation at. |
boolean |
getUseMidZoom()
determines whether this Animator is using midZoom. |
protected double |
nextDouble(double interpolant,
double start,
double end)
computes the value for the given interpolant. |
void |
set(double interpolant)
Set the value of the field being animated based on the given interpolant. |
protected void |
setImpl(double interpolant)
No-op intended to be overrided by deriving classes. |
protected boolean |
useMidZoom(double beginZoom,
double endZoom,
double midZoom)
Determines if the animation will use mid-zoom. |
| Methods inherited from class gov.nasa.worldwind.animation.DoubleAnimator |
|---|
getBegin, getEnd, getPropertyAccessor, nextDouble, setBegin, setEnd |
| Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator |
|---|
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, setStopOnInvalidState, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double midZoom
protected double trueEndZoom
protected boolean useMidZoom
| Constructor Detail |
|---|
public ViewElevationAnimator(Globe globe,
double beginZoom,
double endZoom,
LatLon beginLatLon,
LatLon endLatLon,
PropertyAccessor.DoubleAccessor propertyAccessor)
| Method Detail |
|---|
protected static double computeMidZoom(Globe globe,
LatLon beginLatLon,
LatLon endLatLon,
double beginZoom,
double endZoom)
public double getTrueEndZoom()
public boolean getUseMidZoom()
protected double nextDouble(double interpolant,
double start,
double end)
interpolant - the interpolant to use for interpolatingstart - the lower end of the interpolated range.end - the upper end of the interpolated range.
public void set(double interpolant)
set in interface Animatorset in class BasicAnimatorinterpolant - A value between 0 and 1.protected void setImpl(double interpolant)
BasicAnimator
setImpl in class DoubleAnimatorinterpolant - A value between 0 and 1.
protected boolean useMidZoom(double beginZoom,
double endZoom,
double midZoom)
beginZoom - the begin zoom valueendZoom - the end zoom valuemidZoom - the elevation at the middle of the animation
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||