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;
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;
213 OffsetSegmentString segList;
219 const BufferParameters& bufParams;
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);
350 OffsetSegmentGenerator(
const OffsetSegmentGenerator&);
351 void operator=(
const OffsetSegmentGenerator&);
363 #endif // ndef GEOS_OP_BUFFER_OFFSETSEGMENTGENERATOR_H Definition: LineSegment.h:59
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:105
bool hasNarrowConcaveAngle() const
Definition: OffsetSegmentGenerator.h:88
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:131
void addFirstSegment()
Add first offset point.
Definition: OffsetSegmentGenerator.h:124
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
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:58