public class SpecifiedCurveEllipsoidSurfaceRegionBuilder extends EllipsoidSurfaceRegionBuilder
EllipsoidSurfaceRegionBuilder
that builds a region based upon an input BoundaryCurve
(get
/ set
).Constructor and Description |
---|
SpecifiedCurveEllipsoidSurfaceRegionBuilder()
Initializes an instance of the surface region builder.
|
SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface,
double granularity,
EllipsoidSurfaceCurve curve)
Initializes an instance of the surface region builder.
|
SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface,
EllipsoidSurfaceCurve curve)
Initializes an instance of the surface region builder.
|
SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface,
EllipsoidSurfaceCurve curve,
Cartographic referencePoint,
boolean referencePointInsideRegion)
Initializes an instance of the surface region builder.
|
Modifier and Type | Method and Description |
---|---|
protected EllipsoidSurfaceRegionHole |
buildHole()
A method that constructs an
EllipsoidSurfaceRegionHole based upon the builder's configuration. |
protected EllipsoidSurfaceRegion |
buildRegion(List<EllipsoidSurfaceRegionHole> holes)
A method that constructs an
EllipsoidSurfaceRegion based upon the builder's configuration. |
EllipsoidSurfaceCurve |
getBoundaryCurve()
Gets the
EllipsoidSurfaceCurve that defines the surface region. |
Cartographic |
getReferencePoint()
Gets a reference point to manually specify as inside or outside the region, to allow for cases like regions
larger than half the globe since the default behavior always selects the smaller portion of the ellipsoid as the region.
|
Boolean |
getReferencePointInsideRegion()
|
void |
setBoundaryCurve(EllipsoidSurfaceCurve value)
Sets the
EllipsoidSurfaceCurve that defines the surface region. |
void |
setReferencePoint(Cartographic value)
Sets a reference point to manually specify as inside or outside the region, to allow for cases like regions
larger than half the globe since the default behavior always selects the smaller portion of the ellipsoid as the region.
|
void |
setReferencePointInsideRegion(Boolean value)
|
getCentroid, getClosedPoints, getEllipsoidSurfaceRegion, getEllipsoidSurfaceRegionHole, getGranularity, getHoles, getReferenceSurface, setGranularity, setReferenceSurface
public SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface, double granularity, EllipsoidSurfaceCurve curve)
referenceSurface
- The reference ellipsoid.granularity
- The maximum angular distance between the discrete points with respect to the center of
the Ellipsoid
(get
). A small granularity will yield a more precise representation
of the boundary.curve
- A closed curve representing the boundary of the surface region.public SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface, EllipsoidSurfaceCurve curve, @Nonnull Cartographic referencePoint, boolean referencePointInsideRegion)
referenceSurface
- The reference ellipsoid.curve
- A closed curve representing the boundary of the surface region.referencePoint
- A reference point to manually specify as inside or outside the region, to allow for cases like regions
larger than half the globe since the default behavior always selects the smaller portion of the ellipsoid as the region.referencePointInsideRegion
- The specification for whether the referencePoint
is inside
or outside the region.public SpecifiedCurveEllipsoidSurfaceRegionBuilder(Ellipsoid referenceSurface, EllipsoidSurfaceCurve curve)
referenceSurface
- The reference ellipsoid.curve
- A closed curve representing the boundary of the surface region.public SpecifiedCurveEllipsoidSurfaceRegionBuilder()
public final EllipsoidSurfaceCurve getBoundaryCurve()
EllipsoidSurfaceCurve
that defines the surface region.public final void setBoundaryCurve(EllipsoidSurfaceCurve value)
EllipsoidSurfaceCurve
that defines the surface region.public final void setReferencePointInsideRegion(@Nullable Boolean value)
@Nonnull public final Cartographic getReferencePoint()
This reference point should not lie exactly on the boundary.
public final void setReferencePoint(@Nonnull Cartographic value)
This reference point should not lie exactly on the boundary.
protected EllipsoidSurfaceRegionHole buildHole()
EllipsoidSurfaceRegionHole
based upon the builder's configuration.buildHole
in class EllipsoidSurfaceRegionBuilder
EllipsoidSurfaceRegionHole
.protected EllipsoidSurfaceRegion buildRegion(List<EllipsoidSurfaceRegionHole> holes)
EllipsoidSurfaceRegion
based upon the builder's configuration.buildRegion
in class EllipsoidSurfaceRegionBuilder
holes
- The holes to add to the surface definition.EllipsoidSurfaceRegion
.