public abstract class EllipsoidSurfaceRegionBuilder extends Object implements IGetEllipsoidSurfaceRegion, IGetEllipsoidSurfaceRegionHole
EllipsoidSurfaceRegion
or EllipsoidSurfaceRegionHole
based upon the set properties.Modifier | Constructor and Description |
---|---|
protected |
EllipsoidSurfaceRegionBuilder()
Initializes a new instance.
|
protected |
EllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface)
Initializes a new instance with the specified ellipsoid.
|
protected |
EllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface,
double granularity)
Initializes a new instance with the specified ellipsoid and border granularity.
|
Modifier and Type | Method and Description |
---|---|
protected abstract EllipsoidSurfaceRegionHole |
buildHole()
A method that constructs an
EllipsoidSurfaceRegionHole based upon the builder's configuration. |
protected abstract EllipsoidSurfaceRegion |
buildRegion(List<EllipsoidSurfaceRegionHole> holes)
A method that constructs an
EllipsoidSurfaceRegion based upon the builder's configuration. |
protected Cartesian |
getCentroid(ArrayList<Cartographic> nodes)
Computes the centroid of the input points.
|
protected static ArrayList<Cartographic> |
getClosedPoints(ArrayList<Cartographic> points)
Closes a set of input points by checking the final point.
|
EllipsoidSurfaceRegion |
getEllipsoidSurfaceRegion()
Gets the
EllipsoidSurfaceRegion . |
EllipsoidSurfaceRegionHole |
getEllipsoidSurfaceRegionHole()
Gets the
EllipsoidSurfaceRegionHole . |
double |
getGranularity()
Gets the granularity of the
EllipsoidSurfaceRegion's borders. |
ArrayList<IGetEllipsoidSurfaceRegionHole> |
getHoles()
Gets
EllipsoidSurfaceRegionBuilders that describe the holes in the produced surface region. |
Ellipsoid |
getReferenceSurface()
Gets the
Ellipsoid upon which the surface region will be defined. |
void |
setGranularity(double value)
Sets the granularity of the
EllipsoidSurfaceRegion's borders. |
void |
setReferenceSurface(Ellipsoid value)
Sets the
Ellipsoid upon which the surface region will be defined. |
protected EllipsoidSurfaceRegionBuilder()
protected EllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface)
referenceSurface
- The ellipsoid on which this region is defined.protected EllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface, double granularity)
referenceSurface
- The ellipsoid on which this surface is defined.granularity
- The separation between points on the border.public final Ellipsoid getReferenceSurface()
Ellipsoid
upon which the surface region will be defined.public final void setReferenceSurface(Ellipsoid value)
Ellipsoid
upon which the surface region will be defined.public final double getGranularity()
EllipsoidSurfaceRegion's
borders. By default this is π / 360.0.public final void setGranularity(double value)
EllipsoidSurfaceRegion's
borders. By default this is π / 360.0.@Nonnull public final ArrayList<IGetEllipsoidSurfaceRegionHole> getHoles()
EllipsoidSurfaceRegionBuilders
that describe the holes in the produced surface region.@Nonnull protected abstract EllipsoidSurfaceRegionHole buildHole()
EllipsoidSurfaceRegionHole
based upon the builder's configuration.EllipsoidSurfaceRegionHole
.@Nonnull protected abstract EllipsoidSurfaceRegion buildRegion(@Nullable List<EllipsoidSurfaceRegionHole> holes)
EllipsoidSurfaceRegion
based upon the builder's configuration.holes
- The holes to add to the surface definition.EllipsoidSurfaceRegion
.@Nonnull protected static ArrayList<Cartographic> getClosedPoints(@Nonnull ArrayList<Cartographic> points)
points
- The list of points to close.@Nonnull protected final Cartesian getCentroid(@Nonnull ArrayList<Cartographic> nodes)
nodes
- The nodes, of which the centroid is sought.public EllipsoidSurfaceRegion getEllipsoidSurfaceRegion()
EllipsoidSurfaceRegion
.
This method calls EllipsoidSurfaceRegionBuilder.buildRegion(java.util.List<agi.foundation.geometry.shapes.EllipsoidSurfaceRegionHole>)
.
getEllipsoidSurfaceRegion
in interface IGetEllipsoidSurfaceRegion
EllipsoidSurfaceRegion
.public EllipsoidSurfaceRegionHole getEllipsoidSurfaceRegionHole()
EllipsoidSurfaceRegionHole
.
This methods calls EllipsoidSurfaceRegionBuilder.buildHole()
.
getEllipsoidSurfaceRegionHole
in interface IGetEllipsoidSurfaceRegionHole
EllipsoidSurfaceRegionHole
.