OffsetCurveBuilder class
Computes the raw offset curve for a single {@link Geometry} component (ring, line or point). A raw offset curve line is not noded - it may contain self-intersections (and usually will). The final buffer polygon is computed by forming a topological graph of all the noded raw curves and tracing outside contours. The points in the raw curve are rounded to a given {@link PrecisionModel}.
@version 1.7
Constructors
- OffsetCurveBuilder(PrecisionModel precisionModel, BufferParameters bufParams)
Properties
- bufParams ↔ BufferParameters
-
getter/setter pair
- distance ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- precisionModel ↔ PrecisionModel
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeLineBufferCurve(
List< Coordinate> inputPts, OffsetSegmentGenerator segGen) → void -
computeOffsetCurve(
List< Coordinate> inputPts, bool isRightSide, OffsetSegmentGenerator segGen) → void -
computePointCurve(
Coordinate pt, OffsetSegmentGenerator segGen) → void -
computeRingBufferCurve(
List< Coordinate> inputPts, int side, OffsetSegmentGenerator segGen) → void -
computeSingleSidedBufferCurve(
List< Coordinate> inputPts, bool isRightSide, OffsetSegmentGenerator segGen) → void -
getBufferParameters(
) → BufferParameters - Gets the buffer parameters being used to generate the curve.
-
getLineCurve(
List< Coordinate> inputPts, double distance) → List<Coordinate> ? - This method handles single points as well as LineStrings. LineStrings are assumed not to be closed (the function will not fail for closed lines, but will generate superfluous line caps).
-
getOffsetCurve(
List< Coordinate> inputPts, double distance) → List<Coordinate> ? -
getRingCurve(
List< Coordinate> inputPts, int side, double distance) → List<Coordinate> ? - This method handles the degenerate cases of single points and lines, as well as rings.
-
getSegGen(
double distance) → OffsetSegmentGenerator -
isLineOffsetEmpty(
double distance) → bool - Tests whether the offset curve for line or point geometries at the given offset distance is empty (does not exist). This is the case if:
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
simplifyTolerance(
double bufDistance) → double - Computes the distance tolerance to use during input line simplification.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
copyCoordinates(
List< Coordinate> pts) → List<Coordinate>