diff --git a/doxygen/OffsetCurve_8h_source.html b/doxygen/OffsetCurve_8h_source.html index 4f621254d..ce425bd7f 100644 --- a/doxygen/OffsetCurve_8h_source.html +++ b/doxygen/OffsetCurve_8h_source.html @@ -116,135 +116,138 @@
101
102 // Methods
103
-
104 std::unique_ptr<Geometry> computeCurve(
-
105 const LineString& lineGeom, double distance);
+
104 std::unique_ptr<Geometry> computePolygonCurve(
+
105 const Polygon& polyGeom, double distance);
106
-
107 std::vector<std::unique_ptr<OffsetCurveSection>> computeSections(
+
107 std::unique_ptr<Geometry> computeCurve(
108 const LineString& lineGeom, double distance);
109
-
110 std::unique_ptr<LineString> offsetSegment(
-
111 const CoordinateSequence* pts, double distance);
+
110 std::vector<std::unique_ptr<OffsetCurveSection>> computeSections(
+
111 const LineString& lineGeom, double distance);
112
-
113 static std::unique_ptr<Polygon> getBufferOriented(
-
114 const LineString& geom, double distance,
-
115 BufferParameters& bufParams);
-
116
-
125 static const Polygon* extractMaxAreaPolygon(const Geometry* geom);
-
126
-
127 void computeCurveSections(
-
128 const CoordinateSequence* bufferRingPts,
-
129 const CoordinateSequence& rawCurve,
-
130 std::vector<std::unique_ptr<OffsetCurveSection>>& sections);
-
131
-
144 std::size_t matchSegments(
-
145 const Coordinate& raw0, const Coordinate& raw1,
-
146 std::size_t rawCurveIndex,
-
147 SegmentMCIndex& bufferSegIndex,
-
148 const CoordinateSequence* bufferPts,
-
149 std::vector<double>& rawCurvePos);
-
150
-
151 static double segmentMatchFrac(
-
152 const Coordinate& p0, const Coordinate& p1,
-
153 const Coordinate& seg0, const Coordinate& seg1,
-
154 double matchDistance);
-
155
-
167 void extractSections(
-
168 const CoordinateSequence* ringPts,
-
169 std::vector<double>& rawCurveLoc,
-
170 std::size_t startIndex,
-
171 std::vector<std::unique_ptr<OffsetCurveSection>>& sections);
-
172
-
173 std::size_t findSectionStart(
-
174 const std::vector<double>& loc,
-
175 std::size_t end);
-
176
-
177 std::size_t findSectionEnd(
-
178 const std::vector<double>& loc,
-
179 std::size_t start,
-
180 std::size_t firstStartIndex);
-
181
-
182 static std::size_t nextIndex(std::size_t i, std::size_t size);
-
183 static std::size_t prevIndex(std::size_t i, std::size_t size);
+
113 std::unique_ptr<LineString> offsetSegment(
+
114 const CoordinateSequence* pts, double distance);
+
115
+
116 static std::unique_ptr<Polygon> getBufferOriented(
+
117 const LineString& geom, double distance,
+
118 BufferParameters& bufParams);
+
119
+
128 static const Polygon* extractMaxAreaPolygon(const Geometry* geom);
+
129
+
130 void computeCurveSections(
+
131 const CoordinateSequence* bufferRingPts,
+
132 const CoordinateSequence& rawCurve,
+
133 std::vector<std::unique_ptr<OffsetCurveSection>>& sections);
+
134
+
147 std::size_t matchSegments(
+
148 const Coordinate& raw0, const Coordinate& raw1,
+
149 std::size_t rawCurveIndex,
+
150 SegmentMCIndex& bufferSegIndex,
+
151 const CoordinateSequence* bufferPts,
+
152 std::vector<double>& rawCurvePos);
+
153
+
154 static double segmentMatchFrac(
+
155 const Coordinate& p0, const Coordinate& p1,
+
156 const Coordinate& seg0, const Coordinate& seg1,
+
157 double matchDistance);
+
158
+
170 void extractSections(
+
171 const CoordinateSequence* ringPts,
+
172 std::vector<double>& rawCurveLoc,
+
173 std::size_t startIndex,
+
174 std::vector<std::unique_ptr<OffsetCurveSection>>& sections);
+
175
+
176 std::size_t findSectionStart(
+
177 const std::vector<double>& loc,
+
178 std::size_t end);
+
179
+
180 std::size_t findSectionEnd(
+
181 const std::vector<double>& loc,
+
182 std::size_t start,
+
183 std::size_t firstStartIndex);
184
-
185
-
186public:
+
185 static std::size_t nextIndex(std::size_t i, std::size_t size);
+
186 static std::size_t prevIndex(std::size_t i, std::size_t size);
187
-
188 // Constants
-
189 static constexpr int MATCH_DISTANCE_FACTOR = 10000;
+
188
+
189public:
190
-
195 static constexpr int MIN_QUADRANT_SEGMENTS = 8;
-
196
-
-
207 OffsetCurve(const Geometry& geom, double dist)
-
208 : inputGeom(geom)
-
209 , distance(dist)
-
210 , matchDistance(std::abs(dist)/MATCH_DISTANCE_FACTOR)
-
211 , geomFactory(geom.getFactory())
-
212 {
-
213 if (!std::isfinite(dist)) {
-
214 throw util::IllegalArgumentException("OffsetCurve distance must be a finite value");
-
215 }
-
216 };
+
191 // Constants
+
192 static constexpr int MATCH_DISTANCE_FACTOR = 10000;
+
193
+
198 static constexpr int MIN_QUADRANT_SEGMENTS = 8;
+
199
+
+
210 OffsetCurve(const Geometry& geom, double dist)
+
211 : inputGeom(geom)
+
212 , distance(dist)
+
213 , matchDistance(std::abs(dist)/MATCH_DISTANCE_FACTOR)
+
214 , geomFactory(geom.getFactory())
+
215 {
+
216 if (!std::isfinite(dist)) {
+
217 throw util::IllegalArgumentException("OffsetCurve distance must be a finite value");
+
218 }
+
219 };
-
217
-
-
227 OffsetCurve(const Geometry& geom, double dist, BufferParameters& bp)
-
228 : inputGeom(geom)
-
229 , distance(dist)
-
230 , matchDistance(std::abs(dist)/MATCH_DISTANCE_FACTOR)
-
231 , geomFactory(geom.getFactory())
-
232 {
-
233 if (!std::isfinite(dist)) {
-
234 throw util::IllegalArgumentException("OffsetCurve distance must be a finite value");
-
235 }
-
236 //-- set buffer params, leaving cap style as the default CAP_ROUND
-
237
-
242 int quadSegs = bp.getQuadrantSegments();
-
243 if (quadSegs < MIN_QUADRANT_SEGMENTS) {
-
244 quadSegs = MIN_QUADRANT_SEGMENTS;
-
245 }
-
246 bufferParams.setQuadrantSegments(quadSegs);
-
247
-
248 bufferParams.setJoinStyle( bp.getJoinStyle());
-
249 bufferParams.setMitreLimit( bp.getMitreLimit());
-
250 };
+
220
+
+
230 OffsetCurve(const Geometry& geom, double dist, BufferParameters& bp)
+
231 : inputGeom(geom)
+
232 , distance(dist)
+
233 , matchDistance(std::abs(dist)/MATCH_DISTANCE_FACTOR)
+
234 , geomFactory(geom.getFactory())
+
235 {
+
236 if (!std::isfinite(dist)) {
+
237 throw util::IllegalArgumentException("OffsetCurve distance must be a finite value");
+
238 }
+
239 //-- set buffer params, leaving cap style as the default CAP_ROUND
+
240
+
245 int quadSegs = bp.getQuadrantSegments();
+
246 if (quadSegs < MIN_QUADRANT_SEGMENTS) {
+
247 quadSegs = MIN_QUADRANT_SEGMENTS;
+
248 }
+
249 bufferParams.setQuadrantSegments(quadSegs);
+
250
+
251 bufferParams.setJoinStyle( bp.getJoinStyle());
+
252 bufferParams.setMitreLimit( bp.getMitreLimit());
+
253 };
-
251
-
259 void setJoined(bool pIsJoined);
-
260
-
261 static std::unique_ptr<Geometry> getCurve(
-
262 const Geometry& geom,
-
263 double dist,
-
264 int quadSegs,
- -
266 double mitreLimit);
-
267
-
268 static std::unique_ptr<Geometry> getCurve(
-
269 const Geometry& geom, double dist);
+
254
+
262 void setJoined(bool pIsJoined);
+
263
+
264 static std::unique_ptr<Geometry> getCurve(
+
265 const Geometry& geom,
+
266 double dist,
+
267 int quadSegs,
+ +
269 double mitreLimit);
270
-
279 static std::unique_ptr<Geometry> getCurveJoined(
-
280 const Geometry& geom, double dist);
-
281
-
287 std::unique_ptr<Geometry> getCurve();
-
288
-
302 static std::unique_ptr<CoordinateSequence> rawOffsetCurve(
-
303 const LineString& line,
-
304 double distance,
-
305 BufferParameters& bufParams);
-
306
-
315 static std::unique_ptr<CoordinateSequence> rawOffset(
-
316 const LineString& line,
-
317 double distance);
-
318
-
319};
+
271 static std::unique_ptr<Geometry> getCurve(
+
272 const Geometry& geom, double dist);
+
273
+
282 static std::unique_ptr<Geometry> getCurveJoined(
+
283 const Geometry& geom, double dist);
+
284
+
290 std::unique_ptr<Geometry> getCurve();
+
291
+
305 static std::unique_ptr<CoordinateSequence> rawOffsetCurve(
+
306 const LineString& line,
+
307 double distance,
+
308 BufferParameters& bufParams);
+
309
+
318 static std::unique_ptr<CoordinateSequence> rawOffset(
+
319 const LineString& line,
+
320 double distance);
+
321
+
322};
-
320
-
321} // namespace geos::operation::buffer
-
322} // namespace geos::operation
-
323} // namespace geos
-
324
-
325
-
326
+
323
+
324} // namespace geos::operation::buffer
+
325} // namespace geos::operation
+
326} // namespace geos
+
327
+
328
+
329
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
@@ -260,13 +263,13 @@
void setQuadrantSegments(int quadSegs)
Sets the number of line segments used to approximate an angle fillet in round joins.
JoinStyle
Join styles.
Definition BufferParameters.h:74
Definition OffsetCurve.h:83
-
OffsetCurve(const Geometry &geom, double dist, BufferParameters &bp)
Definition OffsetCurve.h:227
+
OffsetCurve(const Geometry &geom, double dist, BufferParameters &bp)
Definition OffsetCurve.h:230
std::unique_ptr< Geometry > getCurve()
static std::unique_ptr< CoordinateSequence > rawOffsetCurve(const LineString &line, double distance, BufferParameters &bufParams)
static std::unique_ptr< CoordinateSequence > rawOffset(const LineString &line, double distance)
static std::unique_ptr< Geometry > getCurveJoined(const Geometry &geom, double dist)
void setJoined(bool pIsJoined)
-
OffsetCurve(const Geometry &geom, double dist)
Definition OffsetCurve.h:207
+
OffsetCurve(const Geometry &geom, double dist)
Definition OffsetCurve.h:210
Indicates one or more illegal arguments.
Definition IllegalArgumentException.h:33
Basic namespace for all GEOS functionalities.
Definition geos.h:39
diff --git a/doxygen/functions_func_s.html b/doxygen/functions_func_s.html index efac6137f..c4a11532b 100644 --- a/doxygen/functions_func_s.html +++ b/doxygen/functions_func_s.html @@ -134,8 +134,8 @@

- s -