public final class ExtrudedCentralBodyCoverageGrid extends CentralBodyCoverageGrid
CentralBodyCoverageGrid that takes as input an existing CentralBodyCoverageGrid
type and extrudes it in the specified manner to become a three dimensional grid.| Constructor and Description |
|---|
ExtrudedCentralBodyCoverageGrid(CentralBodyCoverageGrid centralBodyCoverageGridToExtrude)
Initializes an extruded grid with the input underlying grid.
|
ExtrudedCentralBodyCoverageGrid(CentralBodyCoverageGrid centralBodyCoverageGridToExtrude,
Bounds heightBounds,
ICoverageGriddingTechnique heightGriddingTechnique)
Initializes an extruded grid with the input underlying grid.
|
| Modifier and Type | Method and Description |
|---|---|
List<CoverageGridPoint> |
generateGridPoints()
Generate the set of grid points.
|
CentralBody |
getCentralBody()
Gets the central body associated with this grid.
|
Bounds |
getHeightBounds()
Gets the height bounds relative to the reference surface of the
UnderlyingGrid (get). |
ICoverageGriddingTechnique |
getHeightGriddingTechnique()
Gets the gridding technique used to extrude the
UnderlyingGrid (get). |
TerrainProvider |
getReferenceTerrain()
Gets the reference terrain with which the grid points are defined.
|
boolean |
getSaveGridCell()
Gets a value indicating whether the grid is to save grid cell information.
|
CentralBodyCoverageGrid |
getUnderlyingGrid()
Gets the underlying grid that is extruded.
|
boolean |
getUseCellAreaForWeight()
Gets a value indicating whether the grid cell's surface area should be used as the weight.
|
void |
setHeightBounds(Bounds value)
Sets the height bounds relative to the reference surface of the
UnderlyingGrid (get). |
void |
setHeightGriddingTechnique(ICoverageGriddingTechnique value)
Sets the gridding technique used to extrude the
UnderlyingGrid (get). |
void |
setSaveGridCell(boolean value)
Sets a value indicating whether the grid is to save grid cell information.
|
void |
setUseCellAreaForWeight(boolean value)
Sets a value indicating whether the grid cell's surface area should be used as the weight.
|
getGridCellBoundaries, getGridCellBoundary, getHeightRelativeToSurface, getReferenceFrame, setCentralBody, setReferenceTerrainpublic ExtrudedCentralBodyCoverageGrid(@Nonnull CentralBodyCoverageGrid centralBodyCoverageGridToExtrude)
centralBodyCoverageGridToExtrude - The existing grid that will be extruded.ArgumentNullException - Thrown if the grid to extrude is null.public ExtrudedCentralBodyCoverageGrid(@Nonnull CentralBodyCoverageGrid centralBodyCoverageGridToExtrude, @Nonnull Bounds heightBounds, @Nonnull ICoverageGriddingTechnique heightGriddingTechnique)
centralBodyCoverageGridToExtrude - The existing grid that will be extruded.heightBounds - The bounds for the height coordinate, relative to the surface the UnderlyingGrid (get) was generated on.heightGriddingTechnique - The technique to use to grid the height coordinate.ArgumentNullException - Thrown if either centralBodyCoverageGridToExtrude or heightGriddingTechnique is null.public final CentralBodyCoverageGrid getUnderlyingGrid()
public CentralBody getCentralBody()
CentralBodyCoverageGrid
When GeometricPrimitiveCoverageGrid.generateGridPoints() or CentralBodyCoverageGrid.getHeightRelativeToSurface(double, double) is called, the shape of ReferenceTerrain (get / set)
must match CentralBody (get / set).
getCentralBody in class CentralBodyCoverageGridpublic TerrainProvider getReferenceTerrain()
When GeometricPrimitiveCoverageGrid.generateGridPoints() or CentralBodyCoverageGrid.getHeightRelativeToSurface(double, double) is called, the shape of ReferenceTerrain (get / set)
must match CentralBody (get / set).
getReferenceTerrain in class CentralBodyCoverageGridpublic final boolean getUseCellAreaForWeight()
The input grid must have a grid cell. If this is false then the existing grid point's weight is used.
public final void setUseCellAreaForWeight(boolean value)
The input grid must have a grid cell. If this is false then the existing grid point's weight is used.
public final boolean getSaveGridCell()
Note that the grid to extrude must have grid cells for this to work.
public final void setSaveGridCell(boolean value)
Note that the grid to extrude must have grid cells for this to work.
@Nonnull public final Bounds getHeightBounds()
UnderlyingGrid (get).public final void setHeightBounds(@Nonnull Bounds value)
UnderlyingGrid (get).public final ICoverageGriddingTechnique getHeightGriddingTechnique()
UnderlyingGrid (get).public final void setHeightGriddingTechnique(ICoverageGriddingTechnique value)
UnderlyingGrid (get).public List<CoverageGridPoint> generateGridPoints()
Note that the type of Point used for the location in the returned GridPoints are
either PointFixedOffset or PointCartographic depending upon the underlying grid.
When implementing, note that the space represented by each grid point should not overlap.
generateGridPoints in interface ICoverageGridgenerateGridPoints in class CentralBodyCoverageGridIllegalStateException - Thrown if the points do not have overlapping availability.PropertyInvalidException - Thrown if HeightGriddingTechnique (get / set) is null.