19 #ifndef GEOS_OP_BUFFER_OFFSETSEGMENTGENERATOR_H
20 #define GEOS_OP_BUFFER_OFFSETSEGMENTGENERATOR_H
22 #include <geos/export.h>
26 #include <geos/algorithm/LineIntersector.h>
27 #include <geos/geom/Coordinate.h>
28 #include <geos/geom/LineSegment.h>
29 #include <geos/operation/buffer/BufferParameters.h>
30 #include <geos/operation/buffer/OffsetSegmentString.h>
34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
40 class CoordinateSequence;
89 return _hasNarrowConcaveAngle;
104 to.push_back(segList.getCoordinates());
120 segList.addPt(offset1.p0);
126 segList.addPt(offset1.p1);
139 segList.addPts(pts, isForward);
148 static const double OFFSET_SEGMENT_SEPARATION_FACTOR;
154 static const double INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR;
159 static const double CURVE_VERTEX_SNAP_DISTANCE_FACTOR;
164 static const int MAX_CLOSING_SEG_LEN_FACTOR = 80;
170 double maxCurveSegmentError;
176 double filletAngleQuantum;
195 int closingSegLengthFactor;
205 OffsetSegmentString segList;
211 const BufferParameters& bufParams;
227 bool _hasNarrowConcaveAngle;
229 void addCollinear(
bool addStartPoint);
252 void addLimitedMitreJoin(
255 double distance,
double mitreLimit);
267 static const double PI;
272 void init(
double newDistance);
281 static const double SIMPLIFY_FACTOR;
288 void addOutsideTurn(
int orientation,
bool addStartPoint);
295 void addInsideTurn(
int orientation,
bool addStartPoint);
310 int side,
double distance,
326 int direction,
double radius);
338 double endAngle,
int direction,
double radius);
342 OffsetSegmentGenerator(
const OffsetSegmentGenerator&);
343 void operator=(
const OffsetSegmentGenerator&);
355 #endif // ndef GEOS_OP_BUFFER_OFFSETSEGMENTGENERATOR_H
Definition: LineSegment.h:57
Definition: OffsetSegmentGenerator.h:61
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
void getCoordinates(std::vector< geom::CoordinateSequence * > &to)
Get coordinates by taking ownership of them.
Definition: OffsetSegmentGenerator.h:103
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:49
void addLastSegment()
Add last offset point.
Definition: OffsetSegmentGenerator.h:124
bool hasNarrowConcaveAngle() const
Definition: OffsetSegmentGenerator.h:87
void addFirstSegment()
Add first offset point.
Definition: OffsetSegmentGenerator.h:118
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:57
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59