NASA World Wind

gov.nasa.worldwind.view
Class AbstractViewStateIterator

java.lang.Object
  extended by gov.nasa.worldwind.view.AbstractViewStateIterator
All Implemented Interfaces:
ViewStateIterator
Direct Known Subclasses:
EyePositionIterator

public abstract class AbstractViewStateIterator
extends Object
implements ViewStateIterator


Constructor Summary
AbstractViewStateIterator(long lengthMillis)
           
AbstractViewStateIterator(long startTimeMillis, long lengthMillis)
           
 
Method Summary
 ViewStateIterator coalesceWith(View view, ViewStateIterator stateIterator)
          If possible, merges this ViewStateIterator with stateIterator and returns the result.
protected abstract  void doNextState(double interpolant, View view)
           
 boolean hasNextState(View view)
          Returns true if ViewStateIterator has more state changes.
 boolean isSmoothed()
           
 void nextState(View view)
          Applies the the next viewing state change to view.
 void setSmoothed(boolean smoothed)
           
protected  void stopNextIteration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewStateIterator

public AbstractViewStateIterator(long lengthMillis)

AbstractViewStateIterator

public AbstractViewStateIterator(long startTimeMillis,
                                 long lengthMillis)
Method Detail

coalesceWith

public 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.

doNextState

protected abstract void doNextState(double interpolant,
                                    View view)

hasNextState

public 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.

isSmoothed

public boolean isSmoothed()

nextState

public 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.

setSmoothed

public void setSmoothed(boolean smoothed)

stopNextIteration

protected final void stopNextIteration()

NASA World Wind