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)
40 class CoordinateSequence;
90 return _hasNarrowConcaveAngle;
107 to.push_back(segList.getCoordinates());
126 segList.addPt(offset1.p0);
133 segList.addPt(offset1.p1);
147 segList.addPts(pts, isForward);
156 static const double OFFSET_SEGMENT_SEPARATION_FACTOR;
162 static const double INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR;
167 static const double CURVE_VERTEX_SNAP_DISTANCE_FACTOR;
172 static const int MAX_CLOSING_SEG_LEN_FACTOR = 80;
178 double maxCurveSegmentError;
184 double filletAngleQuantum;
203 int closingSegLengthFactor;
235 bool _hasNarrowConcaveAngle;
237 void addCollinear(
bool addStartPoint);
260 void addLimitedMitreJoin(
263 double distance,
double mitreLimit);
275 static const double PI;
280 void init(
double newDistance);
289 static const double SIMPLIFY_FACTOR;
296 void addOutsideTurn(
int orientation,
bool addStartPoint);
303 void addInsideTurn(
int orientation,
bool addStartPoint);
318 int side,
double distance,
334 int direction,
double radius);
346 double endAngle,
int direction,
double radius);
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:49
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: LineSegment.h:59
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:57
Definition: OffsetSegmentGenerator.h:61
void addFirstSegment()
Add first offset point.
Definition: OffsetSegmentGenerator.h:124
bool hasNarrowConcaveAngle() const
Definition: OffsetSegmentGenerator.h:88
void addLastSegment()
Add last offset point.
Definition: OffsetSegmentGenerator.h:131
void addLineEndCap(const geom::Coordinate &p0, const geom::Coordinate &p1)
Add an end cap around point p1, terminating a line segment coming from p0.
void createSquare(const geom::Coordinate &p, double distance)
Adds a CW square around a point.
void createCircle(const geom::Coordinate &p, double distance)
Adds a CW circle around a point.
void getCoordinates(std::vector< geom::CoordinateSequence * > &to)
Definition: OffsetSegmentGenerator.h:105
Definition: OffsetSegmentString.h:43
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26