21 #ifndef GEOS_OP_BUFFER_BUFFEROP_H
22 #define GEOS_OP_BUFFER_BUFFEROP_H
24 #include <geos/export.h>
25 #include <geos/operation/buffer/BufferParameters.h>
27 #include <geos/util/TopologyException.h>
31 #pragma warning(disable: 4251)
89 static const int MAX_PRECISION_DIGITS = 12;
108 double distance,
int maxPrecisionDigits);
122 void computeGeometry();
124 void bufferOriginalPrecision();
126 void bufferReducedPrecision(
int precisionDigits);
128 void bufferReducedPrecision();
162 int quadrantSegments =
175 resultGeometry(nullptr)
191 resultGeometry(nullptr)
203 inline void setEndCapStyle(
int nEndCapStyle);
210 inline void setQuadrantSegments(
int nQuadrantSegments);
232 inline void setSingleSided(
bool isSingleSided);
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
Computes the buffer of a geometry, for both positive and negative buffer distances.
Definition: BufferOp.h:78
void setQuadrantSegments(int nQuadrantSegments)
Sets the number of segments used to approximate a angle fillet.
Definition: BufferOp.h:247
geom::Geometry * getResultGeometry(double nDistance)
Returns the buffer computed for a geometry for a given buffer distance.
void setEndCapStyle(int nEndCapStyle)
Specifies the end cap style of the generated buffer.
Definition: BufferOp.h:253
void setSingleSided(bool isSingleSided)
Sets whether the computed buffer should be single-sided.
Definition: BufferOp.h:259
BufferOp(const geom::Geometry *g, const BufferParameters ¶ms)
Initializes a buffer computation for the given geometry with the given set of parameters.
Definition: BufferOp.h:187
BufferOp(const geom::Geometry *g)
Initializes a buffer computation for the given geometry.
Definition: BufferOp.h:171
static geom::Geometry * bufferOp(const geom::Geometry *g, double distance, int quadrantSegments=BufferParameters::DEFAULT_QUADRANT_SEGMENTS, int endCapStyle=BufferParameters::CAP_ROUND)
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:57
void setEndCapStyle(EndCapStyle style)
Definition: BufferParameters.h:202
EndCapStyle
End cap styles.
Definition: BufferParameters.h:62
@ CAP_SQUARE
Specifies a square line buffer end cap style.
Definition: BufferParameters.h:71
@ CAP_ROUND
Specifies a round line buffer end cap style.
Definition: BufferParameters.h:65
@ CAP_FLAT
Specifies a flat line buffer end cap style.
Definition: BufferParameters.h:68
static const int DEFAULT_QUADRANT_SEGMENTS
The default number of facets into which to divide a fillet of 90 degrees.
Definition: BufferParameters.h:95
void setQuadrantSegments(int quadSegs)
Sets the number of line segments used to approximate an angle fillet.
void setSingleSided(bool p_isSingleSided)
Definition: BufferParameters.h:279
Indicates an invalid or inconsistent topological situation encountered during processing.
Definition: TopologyException.h:35
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26