Package ucar.visad
Class VisADMath.Index
java.lang.Object
ucar.visad.VisADMath.Index
- Enclosing class:
VisADMath
Provides support for indexing sample points.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetIndex()Returns the current, cumulative index.protected intgetPreviousIndex(int idim) Returns the previous dimensional index.protected booleanhasPoint()Indicates if there are more elements.protected voidAdvances to the next element.
-
Constructor Details
-
Index
Constructs from aGriddedSet.- Parameters:
set- TheGriddedSet.- Throws:
VisADException- if a core VisAD failure occurs.
-
-
Method Details
-
getIndex
protected int getIndex()Returns the current, cumulative index.- Returns:
- The current, cumulative index.
-
getPreviousIndex
protected int getPreviousIndex(int idim) Returns the previous dimensional index.- Parameters:
idim- Which dimensional index to return.- Returns:
- The previous index.
-
hasPoint
protected boolean hasPoint()Indicates if there are more elements.- Returns:
- True if and only if there are more points.
-
increment
protected void increment()Advances to the next element.
-