public abstract class GeometricPrimitiveCoverageGrid extends Object implements ICoverageGrid
| Modifier | Constructor and Description |
|---|---|
protected |
GeometricPrimitiveCoverageGrid()
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List<CoverageGridPoint> |
generateGridPoints()
Generate the set of grid points.
|
protected double[] |
getGridPointRange(List<Double> grid,
int currentIndex)
Gets the range in the coordinate that the grid point indicated by
currentIndex refers to. |
protected double[] |
getGridPointRangeWithWrapping(List<Double> grid,
int currentIndex)
Gets the range in the coordinate that the grid point indicated by
currentIndex refers to. |
ReferenceFrame |
getReferenceFrame()
Gets the reference frame in which this grid is defined.
|
void |
setReferenceFrame(ReferenceFrame value)
Sets the reference frame in which this grid is defined.
|
protected GeometricPrimitiveCoverageGrid()
public ReferenceFrame getReferenceFrame()
getReferenceFrame in interface ICoverageGridpublic void setReferenceFrame(ReferenceFrame value)
public abstract List<CoverageGridPoint> generateGridPoints()
When implementing, note that the space represented by each grid point should not overlap.
generateGridPoints in interface ICoverageGrid@Nonnull protected final double[] getGridPointRange(@Nonnull List<Double> grid, int currentIndex)
currentIndex refers to.grid - The sorted grid of values in a single coordinate.currentIndex - The index of the current grid point.@Nonnull protected final double[] getGridPointRangeWithWrapping(@Nonnull List<Double> grid, int currentIndex)
currentIndex refers to. This range wraps from the maximum index to zero
and is most useful when extracting the range on an angular coordinate.grid - The sorted grid of values in a single coordinate.currentIndex - The index of the current grid point.