Package ucar.nc2.ft2.simpgeometry
Class SimpleGeometryIndexFinder
- java.lang.Object
-
- ucar.nc2.ft2.simpgeometry.SimpleGeometryIndexFinder
-
public class SimpleGeometryIndexFinder extends Object
A Simple Geometry Index Finder can go find the beginning and end indicies of a simple geometry X and Y within a variable. But first the Index Finder needs a few variables to find it in. If the indexer is tasked to find a Simple Geometry close to one before, it will find it faster.
-
-
Constructor Summary
Constructors Constructor Description SimpleGeometryIndexFinder(Variable node_count)
Create a new indexer, the indexer must be given a variable to look through.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginning(int index)
Gets the beginning index of a geometry's points given the index of the geometry within the array.int
getEnd(int index)
Gets the ending index of a geometry's points given the index of the geometry within the array.
-
-
-
Constructor Detail
-
SimpleGeometryIndexFinder
public SimpleGeometryIndexFinder(Variable node_count)
Create a new indexer, the indexer must be given a variable to look through.- Parameters:
node_count
- Amount of nodes per geometry
-
-
Method Detail
-
getBeginning
public int getBeginning(int index)
Gets the beginning index of a geometry's points given the index of the geometry within the array.- Returns:
- beginning of the range
-
getEnd
public int getEnd(int index)
Gets the ending index of a geometry's points given the index of the geometry within the array.- Parameters:
index
- of the geometry within the array- Returns:
- end of the range
-
-