public final class CylinderCoverageGrid extends GeometricPrimitiveCoverageGrid
The weight of each grid point defaults to 1.
The optional grid cell bounds are of the type, CylindricalBounds.
| Constructor and Description |
|---|
CylinderCoverageGrid(Bounds clockAngleBounds,
Bounds radialBounds,
Bounds heightBounds,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a cylinder grid with the specified parameters.
|
CylinderCoverageGrid(double radius,
double height,
double angularResolution,
double radialResolution,
double heightResolution,
ReferenceFrame frame)
Initializes a cylinder grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10. |
CylinderCoverageGrid(double radius,
double height,
double angularResolution,
double radialResolution,
double heightResolution,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a cylinder grid with the specified parameters, where each coordinate uses a
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10. |
CylinderCoverageGrid(double radius,
double height,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame frame)
Initializes a cylinder grid with the specified parameters.
|
CylinderCoverageGrid(double radius,
double height,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a cylinder grid with the specified parameters.
|
CylinderCoverageGrid(double radius,
double height,
int numberOfAngularPoints,
int numberOfRadialPoints,
int numberOfHeightPoints,
ReferenceFrame frame)
Initializes a cylinder grid with the specified parameters, where each coordinate uses a
SpecifiedNumberOfPointsCoverageGriddingTechnique. |
CylinderCoverageGrid(double radius,
double height,
int numberOfAngularPoints,
int numberOfRadialPoints,
int numberOfHeightPoints,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
Initializes a cylinder 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 bounds for the cylinder's clock angle.
|
ICoverageGriddingTechnique |
getClockAngleGriddingTechnique()
Gets the gridding technique used in the clock angle coordinate.
|
Bounds |
getHeightBounds()
Gets the height bounds for the cylinder's z coordinate.
|
ICoverageGriddingTechnique |
getHeightGriddingTechnique()
Gets the gridding technique used in the height (z) coordinate.
|
Bounds |
getRadialBounds()
Gets the radial bounds for the cylinder's radial coordinate, which must be positive.
|
ICoverageGriddingTechnique |
getRadialGriddingTechnique()
Gets the gridding technique used in the radial 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 bounds for the cylinder's clock angle.
|
void |
setClockAngleGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the clock angle coordinate.
|
void |
setHeightBounds(Bounds value)
Sets the height bounds for the cylinder's z coordinate.
|
void |
setHeightGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the height (z) coordinate.
|
void |
setRadialBounds(Bounds value)
Sets the radial bounds for the cylinder's radial coordinate, which must be positive.
|
void |
setRadialGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used in the radial 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, setReferenceFramepublic CylinderCoverageGrid(double radius,
double height,
int numberOfAngularPoints,
int numberOfRadialPoints,
int numberOfHeightPoints,
ReferenceFrame frame)
SpecifiedNumberOfPointsCoverageGriddingTechnique.
Both SaveGridCell (get / set) and UseCellVolumeForWeight (get / set)
are set to false.radius - The radius of the cylinder.height - The height of the cylinder.numberOfAngularPoints - The number of points to use in the gridding of the angular coordinate of the cylinder.numberOfRadialPoints - The number of points to use in the gridding of the radius of the cylinder.numberOfHeightPoints - The number of points to use in the gridding of the height of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.public CylinderCoverageGrid(double radius,
double height,
int numberOfAngularPoints,
int numberOfRadialPoints,
int numberOfHeightPoints,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
SpecifiedNumberOfPointsCoverageGriddingTechnique.radius - The radius of the cylinder.height - The height of the cylinder.numberOfAngularPoints - The number of points to use in the gridding of the angular coordinate of the cylinder.numberOfRadialPoints - The number of points to use in the gridding of the radius of the cylinder.numberOfHeightPoints - The number of points to use in the gridding of the height of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.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 CylinderCoverageGrid(double radius,
double height,
double angularResolution,
double radialResolution,
double heightResolution,
ReferenceFrame frame)
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10.
Both SaveGridCell (get / set) and UseCellVolumeForWeight (get / set)
are set to false.radius - The radius of the cylinder.height - The height of the cylinder.angularResolution - The angular resolution of the cylinder.radialResolution - The radial gridding resolution of the cylinder.heightResolution - The height resolution of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.public CylinderCoverageGrid(double radius,
double height,
double angularResolution,
double radialResolution,
double heightResolution,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
SpecifiedResolutionCoverageGriddingTechnique with a tolerance of Constants.Epsilon10.radius - The radius of the cylinder.height - The height of the cylinder.angularResolution - The angular resolution of the cylinder.radialResolution - The radial gridding resolution of the cylinder.heightResolution - The height resolution of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.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 CylinderCoverageGrid(double radius,
double height,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame frame)
SaveGridCell (get / set) and UseCellVolumeForWeight (get / set)
are set to false.radius - The radius of the cylinder.height - The height of the cylinder.clockAngleGriddingTechnique - The angular gridding technique of the cylinder.radialGriddingTechnique - The radial gridding technique of the cylinder.heightGriddingTechnique - The height gridding technique of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.public CylinderCoverageGrid(double radius,
double height,
ICoverageGriddingTechnique clockAngleGriddingTechnique,
ICoverageGriddingTechnique radialGriddingTechnique,
ICoverageGriddingTechnique heightGriddingTechnique,
ReferenceFrame frame,
boolean useCellVolumeForWeight,
boolean saveGridCell)
radius - The radius of the cylinder.height - The height of the cylinder.clockAngleGriddingTechnique - The angular gridding technique of the cylinder.radialGriddingTechnique - The radial gridding technique of the cylinder.heightGriddingTechnique - The height gridding technique of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.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 CylinderCoverageGrid(@Nonnull Bounds clockAngleBounds, @Nonnull Bounds radialBounds, @Nonnull Bounds heightBounds, ICoverageGriddingTechnique clockAngleGriddingTechnique, ICoverageGriddingTechnique radialGriddingTechnique, ICoverageGriddingTechnique heightGriddingTechnique, ReferenceFrame frame, boolean useCellVolumeForWeight, boolean saveGridCell)
clockAngleBounds - The bounds in the clock angle of the cylinder.radialBounds - The bounds of the radius of the cylinder.heightBounds - The bounds of the height of the cylinder.clockAngleGriddingTechnique - The angular gridding technique of the cylinder.radialGriddingTechnique - The radial gridding technique of the cylinder.heightGriddingTechnique - The height gridding technique of the cylinder.frame - The ReferenceFrame (get / set) in which this cylinder is defined.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 getHeightBounds()
public final void setHeightBounds(@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].public final ICoverageGriddingTechnique getRadialGriddingTechnique()
public final void setRadialGriddingTechnique(ICoverageGriddingTechnique value)
public final ICoverageGriddingTechnique getClockAngleGriddingTechnique()
public final void setClockAngleGriddingTechnique(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 ICoverageGridgenerateGridPoints in class GeometricPrimitiveCoverageGridPropertyInvalidException - Thrown if ReferenceFrame (get / set) is null or any of the gridding techniques are null.
Also thrown if RadialBounds (get / set) is negative.