public final class SpecifiedCoverageGrid extends Object implements ICoverageGrid
GridPoints or
accepts a specified list of Points and weights. The grid is stored in
memory instead of being generated on demand.| Constructor and Description |
|---|
SpecifiedCoverageGrid(ICoverageGrid existingGrid)
Construct an instance given another
ICoverageGrid. |
SpecifiedCoverageGrid(ReferenceFrame referenceFrame,
List<CoverageGridPoint> points)
Initializes the grid with the specified parameters.
|
SpecifiedCoverageGrid(ReferenceFrame referenceFrame,
List<Point> gridPoints,
List<Scalar> weights)
Initializes the grid with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
List<CoverageGridPoint> |
generateGridPoints()
Generate the set of grid points.
|
ReferenceFrame |
getReferenceFrame()
Gets the reference frame in which this grid is defined.
|
public SpecifiedCoverageGrid(@Nonnull ReferenceFrame referenceFrame, @Nonnull List<CoverageGridPoint> points)
referenceFrame - The reference frame used for the grid points.points - The grid points.ArgumentNullException - Thrown if any of the parameters are public SpecifiedCoverageGrid(@Nonnull ReferenceFrame referenceFrame, @Nonnull List<Point> gridPoints, @Nonnull List<Scalar> weights)
Note that the number of grid points must be equal to the number of weights. The weights are paired with the grid points in order.
referenceFrame - The reference frame used for the grid points.gridPoints - A list of Points that represent the grid points.weights - A list of weights that are to be used with the points.ArgumentException - Thrown if the number of grid points does not equal the number of weights.ArgumentNullException - Thrown if any of the parameters are public SpecifiedCoverageGrid(@Nonnull ICoverageGrid existingGrid)
ICoverageGrid.
Using this as a wrapper for another grid will store the generated grid in memory so that it is only generated once.
existingGrid - An existing grid.ArgumentNullException - Thrown if existingGrid is public final ReferenceFrame getReferenceFrame()
ICoverageGridgetReferenceFrame in interface ICoverageGridpublic final List<CoverageGridPoint> generateGridPoints()
When implementing, note that the space represented by each grid point should not overlap.
generateGridPoints in interface ICoverageGrid