NASA World Wind

gov.nasa.worldwind.view
Class BasicOrbitViewStateIterator

java.lang.Object
  extended by gov.nasa.worldwind.view.BasicOrbitViewStateIterator
All Implemented Interfaces:
ViewStateIterator
Direct Known Subclasses:
FlyToOrbitViewStateIterator, ScheduledOrbitViewStateIterator

public class BasicOrbitViewStateIterator
extends Object
implements ViewStateIterator


Constructor Summary
BasicOrbitViewStateIterator(boolean doCoalesce, OrbitViewInterpolator interpolator, OrbitViewAnimator animator)
           
 
Method Summary
 ViewStateIterator coalesceWith(View view, ViewStateIterator stateIterator)
          If possible, merges this ViewStateIterator with stateIterator and returns the result.
protected  ViewStateIterator doCoalesce(OrbitView orbitView, boolean doCoalesce, OrbitViewInterpolator interpolator, OrbitViewAnimator animator)
           
protected  void doNextState(double interpolant, OrbitView orbitView)
           
 boolean hasNextState(View view)
          Returns true if ViewStateIterator has more state changes.
 boolean isCoalesce()
           
 void nextState(View view)
          Applies the the next viewing state change to view.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicOrbitViewStateIterator

public BasicOrbitViewStateIterator(boolean doCoalesce,
                                   OrbitViewInterpolator interpolator,
                                   OrbitViewAnimator animator)
Method Detail

coalesceWith

public final ViewStateIterator coalesceWith(View view,
                                            ViewStateIterator stateIterator)
Description copied from interface: ViewStateIterator
If possible, merges this ViewStateIterator with stateIterator and returns the result.

Specified by:
coalesceWith in interface ViewStateIterator
Parameters:
view - the View context.
stateIterator - the ViewStateIterator to merge with.
Returns:
the merged ViewStateIterator.

doCoalesce

protected ViewStateIterator doCoalesce(OrbitView orbitView,
                                       boolean doCoalesce,
                                       OrbitViewInterpolator interpolator,
                                       OrbitViewAnimator animator)

doNextState

protected void doNextState(double interpolant,
                           OrbitView orbitView)

hasNextState

public final boolean hasNextState(View view)
Description copied from interface: ViewStateIterator
Returns true if ViewStateIterator has more state changes.

Specified by:
hasNextState in interface ViewStateIterator
Parameters:
view - the View context.
Returns:
true if ViewStateIterator has more state changes; false otherwise.

isCoalesce

public final boolean isCoalesce()

nextState

public final void nextState(View view)
Description copied from interface: ViewStateIterator
Applies the the next viewing state change to view.

Specified by:
nextState in interface ViewStateIterator
Parameters:
view - the View context.

stop

public final void stop()

NASA World Wind