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)
39class 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;
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);
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Definition: LineSegment.h:60
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:56
Definition: OffsetSegmentGenerator.h:60
void addFirstSegment()
Add first offset point.
Definition: OffsetSegmentGenerator.h:123
bool hasNarrowConcaveAngle() const
Definition: OffsetSegmentGenerator.h:87
void addLastSegment()
Add last offset point.
Definition: OffsetSegmentGenerator.h:130
static void computeOffsetSegment(const geom::LineSegment &seg, int side, double distance, geom::LineSegment &offset)
Compute an offset segment for an input segment on a given side and at a given distance.
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:104
Definition: OffsetSegmentString.h:42
Basic namespace for all GEOS functionalities.
Definition: geos.h:39