NASA World Wind

gov.nasa.worldwind
Interface ViewStateIterator

All Known Implementing Classes:
AbstractViewStateIterator, BasicOrbitViewStateIterator, EyePositionIterator, FlyToOrbitViewStateIterator, ScheduledOrbitViewStateIterator

public interface ViewStateIterator

An iteration over View state changes.

See Also:
View

Method Summary
 ViewStateIterator coalesceWith(View view, ViewStateIterator stateIterator)
          If possible, merges this ViewStateIterator with stateIterator and returns the result.
 boolean hasNextState(View view)
          Returns true if ViewStateIterator has more state changes.
 void nextState(View view)
          Applies the the next viewing state change to view.
 

Method Detail

coalesceWith

ViewStateIterator coalesceWith(View view,
                               ViewStateIterator stateIterator)
If possible, merges this ViewStateIterator with stateIterator and returns the result.

Parameters:
view - the View context.
stateIterator - the ViewStateIterator to merge with.
Returns:
the merged ViewStateIterator.
Throws:
java.lang.IllegalArgumentException - if view or stateIterator are null.

hasNextState

boolean hasNextState(View view)
Returns true if ViewStateIterator has more state changes.

Parameters:
view - the View context.
Returns:
true if ViewStateIterator has more state changes; false otherwise.

nextState

void nextState(View view)
Applies the the next viewing state change to view.

Parameters:
view - the View context.

NASA World Wind