gov.nasa.worldwind.view
Class AbstractViewStateIterator
java.lang.Object
gov.nasa.worldwind.view.AbstractViewStateIterator
- All Implemented Interfaces:
- ViewStateIterator
- Direct Known Subclasses:
- EyePositionIterator
public abstract class AbstractViewStateIterator
- extends java.lang.Object
- implements ViewStateIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractViewStateIterator
public AbstractViewStateIterator(long lengthMillis)
AbstractViewStateIterator
public AbstractViewStateIterator(long startTimeMillis,
long lengthMillis)
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()