Class ConstrainedStrideLocationIterator

java.lang.Object
noaa.coastwatch.util.ConstrainedStrideLocationIterator
All Implemented Interfaces:
Iterator<DataLocation>, DataLocationIterator, ResettableIterator

public class ConstrainedStrideLocationIterator extends Object implements DataLocationIterator
The ConstrainedStrideLocationIterator class iterates over data locations using a constant step stride vector, but uses a java.awt.Shape object to determine if each location is contained within a shape boundary. See DataLocation.increment(int[],int[]) for details on how the locations are incremented with a stride.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • ConstrainedStrideLocationIterator

      public ConstrainedStrideLocationIterator(Shape shape, int[] stride)
      Creates a new constrained stride location iterator.
      Parameters:
      shape - the shape to use for constraining the iterator data locations.
      stride - the data location stride in each dimension.
  • Method Details