public final class SpheroidCoverageGrid extends GeometricPrimitiveCoverageGrid
The weight of each grid point defaults to 1.
The optional grid cell bounds are of the type, SphericalBounds
where the clock angle is the azimuthal angle, the cone angle is the polar angle and the magnitude is the radius.
Constructor and Description |
---|
SpheroidCoverageGrid(Bounds clockAngleBounds,
Bounds coneAngleBounds,
Bounds radialBounds,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique coneAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a spheroid grid with the specified parameters.
|
SpheroidCoverageGrid(double radius,
double clockAngleResolution,
double coneAngleResolution,
double radialResolution,
ReferenceFrame frame)
Initializes a spheroid grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10 . |
SpheroidCoverageGrid(double radius,
double clockAngleResolution,
double coneAngleResolution,
double radialResolution,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a spheroid grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10 . |
SpheroidCoverageGrid(double radius,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique coneAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ReferenceFrame frame)
Initializes a spheroid grid with the specified parameters.
|
SpheroidCoverageGrid(double radius,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique coneAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a spheroid grid with the specified parameters.
|
SpheroidCoverageGrid(double radius,
int numberOfClockAnglePoints,
int numberOfConeAnglePoints,
int numberOfRadialPoints,
ReferenceFrame frame)
Initializes a spheroid grid with the specified parameters, where each coordinate uses a
SpecifiedNumberOfPointsCoverageGriddingTechnique . |
SpheroidCoverageGrid(double radius,
int numberOfClockAnglePoints,
int numberOfConeAnglePoints,
int numberOfRadialPoints,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a spheroid grid with the specified parameters, where each coordinate uses a
SpecifiedNumberOfPointsCoverageGriddingTechnique . |
Modifier and Type | Method and Description |
---|---|
List<CoverageGridPoint> |
generateGridPoints()
Generate the set of grid points.
|
Bounds |
getClockAngleBounds()
Gets the clock angle (azimuthal) bounds.
|
ICoverageGriddingTechnique |
getClockAngleGriddingTechnique()
Gets the gridding technique used in the clock (azimuthal) coordinate.
|
Bounds |
getConeAngleBounds()
Gets the cone angle (polar) bounds.
|
ICoverageGriddingTechnique |
getConeAngleGriddingTechnique()
Gets the gridding technique used in the cone (polar) coordinate.
|
Bounds |
getRadialBounds()
Gets the radial bounds, which must be positive.
|
ICoverageGriddingTechnique |
getRadialGriddingTechnique()
Gets the gridding technique used in the radius coordinate.
|
boolean |
getSaveGridCell()
Gets a value indicating whether the grid is to save grid cell information.
|
boolean |
getUseCellVolumeForWeight()
Gets a value indicating whether to use the volume of the grid cells as the weight for each point.
|
void |
setClockAngleBounds(Bounds value)
Sets the clock angle (azimuthal) bounds.
|
void |
setClockAngleGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the clock (azimuthal) coordinate.
|
void |
setConeAngleBounds(Bounds value)
Sets the cone angle (polar) bounds.
|
void |
setConeAngleGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the cone (polar) coordinate.
|
void |
setRadialBounds(Bounds value)
Sets the radial bounds, which must be positive.
|
void |
setRadialGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the radius coordinate.
|
void |
setSaveGridCell(boolean value)
Sets a value indicating whether the grid is to save grid cell information.
|
void |
setUseCellVolumeForWeight(boolean value)
Sets a value indicating whether to use the volume of the grid cells as the weight for each point.
|
getGridPointRange, getGridPointRangeWithWrapping, getReferenceFrame, setReferenceFrame
public SpheroidCoverageGrid(double radius, int numberOfClockAnglePoints, int numberOfConeAnglePoints, int numberOfRadialPoints, ReferenceFrame frame)
SpecifiedNumberOfPointsCoverageGriddingTechnique
. UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.radius
- The radius of the spheroid.numberOfClockAnglePoints
- The number of points in the azimuth coordinate.numberOfConeAnglePoints
- The number of points in the polar coordinate.numberOfRadialPoints
- The number of points in the radius coordinate.frame
- The reference frame of the grid.public SpheroidCoverageGrid(double radius, int numberOfClockAnglePoints, int numberOfConeAnglePoints, int numberOfRadialPoints, ReferenceFrame frame, boolean useCellVolumeForWeight, boolean saveGridCell)
SpecifiedNumberOfPointsCoverageGriddingTechnique
.radius
- The radius of the spheroid.numberOfClockAnglePoints
- The number of points in the azimuth coordinate.numberOfConeAnglePoints
- The number of points in the polar coordinate.numberOfRadialPoints
- The number of points in the radius coordinate.frame
- The reference frame of the grid.useCellVolumeForWeight
- A boolean that specifies if the volume of each cell should be used as that cell's weight.saveGridCell
- A boolean that specifies if the grid point's cell should be saved.public SpheroidCoverageGrid(double radius, double clockAngleResolution, double coneAngleResolution, double radialResolution, ReferenceFrame frame)
SpecifiedResolutionCoverageGriddingTechnique
with a tolerance of Constants.Epsilon10
.
UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.radius
- The radius of the spheroid.clockAngleResolution
- The minimum spacing in the azimuth coordinate.coneAngleResolution
- The minimum spacing in the polar coordinate.radialResolution
- The minimum spacing in the radius coordinate.frame
- The reference frame of the grid.public SpheroidCoverageGrid(double radius, double clockAngleResolution, double coneAngleResolution, double radialResolution, ReferenceFrame frame, boolean useCellVolumeForWeight, boolean saveGridCell)
SpecifiedResolutionCoverageGriddingTechnique
with a tolerance of Constants.Epsilon10
.radius
- The radius of the spheroid.clockAngleResolution
- The minimum spacing in the azimuth coordinate.coneAngleResolution
- The minimum spacing in the polar coordinate.radialResolution
- The minimum spacing in the radius coordinate.frame
- The reference frame of the grid.useCellVolumeForWeight
- A boolean that specifies if the volume of each cell should be used as that cell's weight.saveGridCell
- A boolean that specifies if the grid point's cell should be saved.public SpheroidCoverageGrid(double radius, ICoverageGriddingTechnique clockAngleGriddingTechnique, ICoverageGriddingTechnique coneAngleGriddingTechnique, ICoverageGriddingTechnique radialGriddingTechnique, ReferenceFrame frame)
UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.radius
- The radius of the spheroid.clockAngleGriddingTechnique
- The gridding technique used in the azimuth coordinate.coneAngleGriddingTechnique
- The gridding technique used in the polar coordinate.radialGriddingTechnique
- The gridding technique used in the radius coordinate.frame
- The reference frame of the grid.public SpheroidCoverageGrid(double radius, ICoverageGriddingTechnique clockAngleGriddingTechnique, ICoverageGriddingTechnique coneAngleGriddingTechnique, ICoverageGriddingTechnique radialGriddingTechnique, ReferenceFrame frame, boolean useCellVolumeForWeight, boolean saveGridCell)
radius
- The radius of the spheroid.clockAngleGriddingTechnique
- The gridding technique used in the azimuth coordinate.coneAngleGriddingTechnique
- The gridding technique used in the polar coordinate.radialGriddingTechnique
- The gridding technique used in the radius coordinate.frame
- The reference frame of the grid.useCellVolumeForWeight
- A boolean that specifies if the volume of each cell should be used as that cell's weight.saveGridCell
- A boolean that specifies if the grid point's cell should be saved.public SpheroidCoverageGrid(@Nonnull Bounds clockAngleBounds, @Nonnull Bounds coneAngleBounds, @Nonnull Bounds radialBounds, ICoverageGriddingTechnique clockAngleGriddingTechnique, ICoverageGriddingTechnique coneAngleGriddingTechnique, ICoverageGriddingTechnique radialGriddingTechnique, ReferenceFrame frame, boolean useCellVolumeForWeight, boolean saveGridCell)
clockAngleBounds
- The bounds for the clock (azimuthal) angle.coneAngleBounds
- The bounds for the cone (polar) angle.radialBounds
- The bounds for the radius.clockAngleGriddingTechnique
- The gridding technique used in the azimuth coordinate.coneAngleGriddingTechnique
- The gridding technique used in the polar coordinate.radialGriddingTechnique
- The gridding technique used in the radius coordinate.frame
- The reference frame of the grid.useCellVolumeForWeight
- A boolean that specifies if the volume of each cell should be used as that cell's weight.saveGridCell
- A boolean that specifies if the grid point's cell should be saved.public final boolean getUseCellVolumeForWeight()
public final void setUseCellVolumeForWeight(boolean value)
public final boolean getSaveGridCell()
public final void setSaveGridCell(boolean value)
@Nonnull public final Bounds getRadialBounds()
public final void setRadialBounds(@Nonnull Bounds value)
@Nonnull public final Bounds getClockAngleBounds()
LowerBound
(get
) and UpperBound
(get
)
where UpperBound
(get
) is mapped to the interval [lower bound, lower bound + Constants.TwoPi
].public final void setClockAngleBounds(@Nonnull Bounds value)
LowerBound
(get
) and UpperBound
(get
)
where UpperBound
(get
) is mapped to the interval [lower bound, lower bound + Constants.TwoPi
].@Nonnull public final Bounds getConeAngleBounds()
public final void setConeAngleBounds(@Nonnull Bounds value)
public final ICoverageGriddingTechnique getRadialGriddingTechnique()
public final void setRadialGriddingTechnique(ICoverageGriddingTechnique value)
public final ICoverageGriddingTechnique getClockAngleGriddingTechnique()
public final void setClockAngleGriddingTechnique(ICoverageGriddingTechnique value)
public final ICoverageGriddingTechnique getConeAngleGriddingTechnique()
public final void setConeAngleGriddingTechnique(ICoverageGriddingTechnique value)
public List<CoverageGridPoint> generateGridPoints()
When implementing, note that the space represented by each grid point should not overlap.
generateGridPoints
in interface ICoverageGrid
generateGridPoints
in class GeometricPrimitiveCoverageGrid
PropertyInvalidException
- Thrown if any of the following are null
- ReferenceFrame
(get
/ set
), RadialGriddingTechnique
(get
/ set
), ClockAngleGriddingTechnique
(get
/ set
), ConeAngleGriddingTechnique
(get
/ set
).
Thrown if ConeAngleBounds
(get
/ set
) is not between 0 and pi. Also thrown if RadialBounds
(get
/ set
) are not positive.