19 #ifndef GEOS_OP_BUFFER_BUFFERPARAMETERS_H
20 #define GEOS_OP_BUFFER_BUFFERPARAMETERS_H
22 #include <geos/export.h>
32 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
38 class CoordinateSequence;
43 class OffsetCurveVertexList;
95 static const int DEFAULT_QUADRANT_SEGMENTS = 8;
140 return quadrantSegments;
281 _isSingleSided = p_isSingleSided;
292 return _isSingleSided;
299 int quadrantSegments;
302 EndCapStyle endCapStyle;
321 #endif // ndef GEOS_OP_BUFFER_BUFFERPARAMETERS_H
JoinStyle
Join styles.
Definition: BufferParameters.h:75
int getQuadrantSegments() const
Definition: BufferParameters.h:138
BufferParameters(int quadrantSegments)
EndCapStyle
End cap styles.
Definition: BufferParameters.h:62
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26
EndCapStyle getEndCapStyle() const
Definition: BufferParameters.h:187
void setJoinStyle(JoinStyle style)
Sets the join style for outside (reflex) corners between line segments.
Definition: BufferParameters.h:227
double getMitreLimit() const
Definition: BufferParameters.h:237
void setQuadrantSegments(int quadSegs)
Sets the number of line segments used to approximate an angle fillet.
BufferParameters(int quadrantSegments, EndCapStyle endCapStyle, JoinStyle joinStyle, double mitreLimit)
Creates a set of parameters with the given parameter values.
BufferParameters()
Creates a default set of parameters.
static const double DEFAULT_MITRE_LIMIT
Definition: BufferParameters.h:101
bool isSingleSided() const
Definition: BufferParameters.h:290
static double bufferDistanceError(int quadSegs)
Computes the maximum distance error due to a given level of approximation to a true arc.
void setSingleSided(bool p_isSingleSided)
Definition: BufferParameters.h:279
void setEndCapStyle(EndCapStyle style)
Definition: BufferParameters.h:202
JoinStyle getJoinStyle() const
Definition: BufferParameters.h:212
void setMitreLimit(double limit)
Definition: BufferParameters.h:256
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:57
BufferParameters(int quadrantSegments, EndCapStyle endCapStyle)
Creates a set of parameters with the given quadrantSegments and endCapStyle values.