21 #ifndef GEOS_OP_BUFFER_BUFFERBUILDER_H 22 #define GEOS_OP_BUFFER_BUFFERBUILDER_H 24 #include <geos/export.h> 28 #include <geos/operation/buffer/BufferOp.h> 29 #include <geos/operation/buffer/OffsetCurveBuilder.h> 30 #include <geos/geomgraph/EdgeList.h> 34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 42 class GeometryFactory;
45 class LineIntersector;
50 class IntersectionAdder;
102 bufParams(nBufParams),
103 workingPrecisionModel(nullptr),
105 intersectionAdder(nullptr),
106 workingNoder(nullptr),
109 isInvertOrientation(false)
128 workingPrecisionModel = pm;
141 workingNoder = newNoder;
155 isInvertOrientation = p_isInvertOrientation;
159 std::unique_ptr<geom::Geometry> buffer(
const geom::Geometry* g,
double distance);
179 std::unique_ptr<geom::Geometry> bufferLineSingleSided(
181 double distance,
bool leftSide);
204 std::vector<geomgraph::Label*> newLabels;
206 bool isInvertOrientation;
208 void computeNodedEdges(std::vector<noding::SegmentString*>& bufSegStr,
224 std::vector<BufferSubgraph*>& list);
236 void buildSubgraphs(
const std::vector<BufferSubgraph*>& subgraphList,
257 std::unique_ptr<geom::Geometry> createEmptyResultGeometry()
const;
272 #endif // ndef GEOS_OP_BUFFER_BUFFERBUILDER_H void setInvertOrientation(bool p_isInvertOrientation)
Definition: BufferBuilder.h:153
Forms Polygon out of a graph of geomgraph::DirectedEdge.
Definition: PolygonBuilder.h:62
BufferBuilder(const BufferParameters &nBufParams)
Definition: BufferBuilder.h:100
Represents a directed graph which is embeddable in a planar surface.
Definition: geomgraph/PlanarGraph.h:75
A EdgeList is a list of Edges.
Definition: EdgeList.h:58
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
Computes the intersections between two line segments in SegmentString and adds them to each string...
Definition: IntersectionAdder.h:57
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:59
Basic namespace for all GEOS functionalities.
Definition: Angle.h:26
Computes all intersections between segments in a set of SegmentString.
Definition: Noder.h:49
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:57
void setWorkingPrecisionModel(const geom::PrecisionModel *pm)
Definition: BufferBuilder.h:126
Builds the buffer geometry for a given input geometry and precision model.
Definition: BufferBuilder.h:88
void setNoder(noding::Noder *newNoder)
Definition: BufferBuilder.h:139
Definition: geomgraph/Edge.h:66