22#include <geos/export.h>
23#include <geos/geom/Location.h>
24#include <geos/operation/buffer/OffsetCurveBuilder.h>
30#pragma warning(disable: 4251)
72class GEOS_DLL BufferCurveSetBuilder {
78 static constexpr int MAX_INVERTED_RING_SIZE = 9;
79 static constexpr int INVERTED_CURVE_VERTEX_FACTOR = 4;
80 static constexpr double NEARNESS_FACTOR = 0.99;
84 std::vector<geomgraph::Label*> newLabels;
92 std::vector<noding::SegmentString*> curveList;
93 bool isInvertOrientation =
false;
173 static bool isRingCurveInverted(
188 static bool hasPointOnBuffer(
189 const CoordinateSequence* inputRing,
double dist,
190 const CoordinateSequence* curveRing);
202 double bufferDistance);
204 bool isRingFullyEroded(
const CoordinateSequence* ringCoord,
const Envelope* env,
bool isHole,
205 double bufferDistance);
226 double bufferDistance);
229 BufferCurveSetBuilder(
const BufferCurveSetBuilder& other) =
delete;
230 BufferCurveSetBuilder& operator=(
const BufferCurveSetBuilder& rhs) =
delete;
255 : inputGeom(newInputGeom)
256 , distance(newDistance)
257 , curveBuilder(newPm, newBufParams)
259 , isInvertOrientation(false)
282 void addCurves(
const std::vector<geom::CoordinateSequence*>& lineList,
294 isInvertOrientation = p_isInvertOrientation;
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:51
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Definition LineString.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition LinearRing.h:54
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:88
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition Label.h:57
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:47
BufferCurveSetBuilder(const geom::Geometry &newInputGeom, double newDistance, const geom::PrecisionModel *newPm, const BufferParameters &newBufParams)
Constructor.
Definition BufferCurveSetBuilder.h:250
std::vector< noding::SegmentString * > & getCurves()
Computes the set of raw offset curves for the buffer.
~BufferCurveSetBuilder()
Destructor.
void addCurves(const std::vector< geom::CoordinateSequence * > &lineList, geom::Location leftLoc, geom::Location rightLoc)
Add raw curves for a set of CoordinateSequences.
void setInvertOrientation(bool p_isInvertOrientation)
Definition BufferCurveSetBuilder.h:293
Contains the parameters which describe how a buffer should be constructed.
Definition BufferParameters.h:56
Computes the raw offset curve for a single Geometry component (ring, line or point).
Definition OffsetCurveBuilder.h:68
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Contains classes that implement topology graphs.
Definition Depth.h:31
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition InvalidSegmentDetector.h:25
Provides classes for computing buffers of geometries.
Definition namespaces.h:182
Provides classes for implementing operations on geometries.
Definition namespaces.h:179
Basic namespace for all GEOS functionalities.
Definition geos.h:39