public final class RectangularPyramidCoverageGrid extends GeometricPrimitiveCoverageGrid
The weight of each grid point defaults to 1. The input cartesian values are converted internally to pyramidal coordinates.
The optional grid cell bounds are of the type, PyramidalBounds
.
Constructor and Description |
---|
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
Bounds heightBounds,
ICoverageGriddingTechnique zxAngleGriddingTechnique,
ICoverageGriddingTechnique zyAngleGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame referenceFrame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a rectangular pyramid grid with the specified parameters.
|
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
double zxAngleResolution,
double zyAngleResolution,
double heightResolution,
ReferenceFrame referenceFrame)
Initializes a rectangular pyramid grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10 . |
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
double zxAngleResolution,
double zyAngleResolution,
double heightResolution,
ReferenceFrame referenceFrame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a rectangular pyramid grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10 . |
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
ICoverageGriddingTechnique zxAngleGriddingTechnique,
ICoverageGriddingTechnique zyAngleGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame referenceFrame)
Initializes a rectangular pyramid grid with the specified parameters.
|
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
ICoverageGriddingTechnique zxAngleGriddingTechnique,
ICoverageGriddingTechnique zyAngleGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame referenceFrame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a rectangular pyramid grid with the specified parameters.
|
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
int numberOfZXAnglePoints,
int numberOfZYAnglePoints,
int numberOfHeightPoints,
ReferenceFrame referenceFrame)
Initializes a rectangular pyramid grid with the specified parameters, where each coordinate uses a
SpecifiedNumberOfPointsCoverageGriddingTechnique . |
RectangularPyramidCoverageGrid(double xAxisLength,
double yAxisLength,
double height,
int numberOfZXAnglePoints,
int numberOfZYAnglePoints,
int numberOfHeightPoints,
ReferenceFrame referenceFrame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a rectangular pyramid 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 |
getHeightBounds()
Gets the height bounds of the pyramid.
|
ICoverageGriddingTechnique |
getHeightGriddingTechnique()
Gets the gridding technique used in the height direction of the pyramid.
|
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.
|
double |
getXAxisLength()
Gets the length of the pyramid's base in the x direction.
|
double |
getYAxisLength()
Gets the length of the pyramid's base in the y direction.
|
ICoverageGriddingTechnique |
getZXAngleGriddingTechnique()
Gets the gridding technique used in the (z-x) direction of the pyramid.
|
ICoverageGriddingTechnique |
getZYAngleGriddingTechnique()
Gets the gridding technique used in the (z-y) direction of the pyramid.
|
void |
setHeightBounds(Bounds value)
Sets the height bounds of the pyramid.
|
void |
setHeightGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the height direction of the pyramid.
|
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.
|
void |
setXAxisLength(double value)
Sets the length of the pyramid's base in the x direction.
|
void |
setYAxisLength(double value)
Sets the length of the pyramid's base in the y direction.
|
void |
setZXAngleGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the (z-x) direction of the pyramid.
|
void |
setZYAngleGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the (z-y) direction of the pyramid.
|
getGridPointRange, getGridPointRangeWithWrapping, getReferenceFrame, setReferenceFrame
public RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, int numberOfZXAnglePoints, int numberOfZYAnglePoints, int numberOfHeightPoints, ReferenceFrame referenceFrame)
SpecifiedNumberOfPointsCoverageGriddingTechnique
. UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.numberOfZXAnglePoints
- The number of points to use in the z-x angular coordinate.numberOfZYAnglePoints
- The number of points to use in the z-y angular coordinate.numberOfHeightPoints
- The number of points to use in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is definedpublic RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, int numberOfZXAnglePoints, int numberOfZYAnglePoints, int numberOfHeightPoints, ReferenceFrame referenceFrame, boolean useCellVolumeForWeight, boolean saveGridCell)
SpecifiedNumberOfPointsCoverageGriddingTechnique
.xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.numberOfZXAnglePoints
- The number of points to use in the z-x angular coordinate.numberOfZYAnglePoints
- The number of points to use in the z-y angular coordinate.numberOfHeightPoints
- The number of points to use in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is defineduseCellVolumeForWeight
- 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 RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, double zxAngleResolution, double zyAngleResolution, double heightResolution, ReferenceFrame referenceFrame)
SpecifiedResolutionCoverageGriddingTechnique
with a tolerance of Constants.Epsilon10
. UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.zxAngleResolution
- The minimum spacing in the z-x angular coordinate.zyAngleResolution
- The minimum spacing in the z-y angular coordinate.heightResolution
- The minimum spacing in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is definedpublic RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, double zxAngleResolution, double zyAngleResolution, double heightResolution, ReferenceFrame referenceFrame, boolean useCellVolumeForWeight, boolean saveGridCell)
SpecifiedResolutionCoverageGriddingTechnique
with a tolerance of Constants.Epsilon10
.xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.zxAngleResolution
- The minimum spacing in the z-x angular coordinate.zyAngleResolution
- The minimum spacing in the z-y angular coordinate.heightResolution
- The minimum spacing in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is defineduseCellVolumeForWeight
- 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 RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, ICoverageGriddingTechnique zxAngleGriddingTechnique, ICoverageGriddingTechnique zyAngleGriddingTechnique, ICoverageGriddingTechnique heightGriddingTechnique, ReferenceFrame referenceFrame)
UseCellVolumeForWeight
(get
/ set
) and SaveGridCell
(get
/ set
) are both set to false
.xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.zxAngleGriddingTechnique
- The gridding technique in the z-x angular coordinate.zyAngleGriddingTechnique
- The gridding technique in the z-y angular coordinate.heightGriddingTechnique
- The gridding technique in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is definedpublic RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, double height, ICoverageGriddingTechnique zxAngleGriddingTechnique, ICoverageGriddingTechnique zyAngleGriddingTechnique, ICoverageGriddingTechnique heightGriddingTechnique, ReferenceFrame referenceFrame, boolean useCellVolumeForWeight, boolean saveGridCell)
xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.height
- The height of the pyramid.zxAngleGriddingTechnique
- The gridding technique in the z-x angular coordinate.zyAngleGriddingTechnique
- The gridding technique in the z-y angular coordinate.heightGriddingTechnique
- The gridding technique in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is defineduseCellVolumeForWeight
- 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 RectangularPyramidCoverageGrid(double xAxisLength, double yAxisLength, @Nonnull Bounds heightBounds, ICoverageGriddingTechnique zxAngleGriddingTechnique, ICoverageGriddingTechnique zyAngleGriddingTechnique, ICoverageGriddingTechnique heightGriddingTechnique, ReferenceFrame referenceFrame, boolean useCellVolumeForWeight, boolean saveGridCell)
xAxisLength
- The length of the base in the x direction.yAxisLength
- The length of the base in the y direction.heightBounds
- The height bounds of the pyramid.zxAngleGriddingTechnique
- The gridding technique in the z-x angular coordinate.zyAngleGriddingTechnique
- The gridding technique in the z-y angular coordinate.heightGriddingTechnique
- The gridding technique in the height coordinate.referenceFrame
- The ReferenceFrame
(get
/ set
) in which this rectangular pyramid is defineduseCellVolumeForWeight
- 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)
public final double getXAxisLength()
public final void setXAxisLength(double value)
public final double getYAxisLength()
public final void setYAxisLength(double value)
@Nonnull public final Bounds getHeightBounds()
public final void setHeightBounds(@Nonnull Bounds value)
public final ICoverageGriddingTechnique getZXAngleGriddingTechnique()
public final void setZXAngleGriddingTechnique(ICoverageGriddingTechnique value)
public final ICoverageGriddingTechnique getZYAngleGriddingTechnique()
public final void setZYAngleGriddingTechnique(ICoverageGriddingTechnique value)
public final ICoverageGriddingTechnique getHeightGriddingTechnique()
public final void setHeightGriddingTechnique(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 ReferenceFrame
(get
/ set
) is null
or any of the gridding techniques are null
.
Thrown if either XAxisLength
(get
/ set
) or YAxisLength
(get
/ set
) is zero or less. Also thrown if HeightBounds
(get
/ set
) are not positive.