21 #include <geos/export.h> 25 #include <geos/algorithm/LineIntersector.h> 26 #include <geos/geom/Coordinate.h> 27 #include <geos/geom/LineSegment.h> 28 #include <geos/operation/buffer/BufferParameters.h> 29 #include <geos/operation/buffer/OffsetSegmentString.h> 33 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 39 class CoordinateSequence;
89 return _hasNarrowConcaveAngle;
106 to.push_back(segList.getCoordinates());
125 segList.addPt(offset1.p0);
132 segList.addPt(offset1.p1);
146 segList.addPts(pts, isForward);
162 int side,
double distance,
171 static const double OFFSET_SEGMENT_SEPARATION_FACTOR;
177 static const double INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR;
182 static const double CURVE_VERTEX_SNAP_DISTANCE_FACTOR;
187 static const int MAX_CLOSING_SEG_LEN_FACTOR = 80;
193 double maxCurveSegmentError;
199 double filletAngleQuantum;
218 int closingSegLengthFactor;
228 OffsetSegmentString segList;
234 const BufferParameters& bufParams;
250 bool _hasNarrowConcaveAngle;
252 void addCollinear(
bool addStartPoint);
276 void addLimitedMitreJoin(
280 double mitreLimitDistance);
313 static const double PI;
318 void init(
double newDistance);
327 static const double SIMPLIFY_FACTOR;
334 void addOutsideTurn(
int orientation,
bool addStartPoint);
341 void addInsideTurn(
int orientation,
bool addStartPoint);
356 int direction,
double radius);
368 double endAngle,
int direction,
double radius);
372 OffsetSegmentGenerator(
const OffsetSegmentGenerator&);
373 void operator=(
const OffsetSegmentGenerator&);
Definition: LineSegment.h:60
Definition: OffsetSegmentGenerator.h:60
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
bool hasNarrowConcaveAngle() const
Definition: OffsetSegmentGenerator.h:87
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
void addLastSegment()
Add last offset point.
Definition: OffsetSegmentGenerator.h:130
void addFirstSegment()
Add first offset point.
Definition: OffsetSegmentGenerator.h:123
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:56
void getCoordinates(std::vector< geom::CoordinateSequence *> &to)
Definition: OffsetSegmentGenerator.h:104
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44