19 #ifndef GEOS_NODING_SEGMENTNODELIST_H
20 #define GEOS_NODING_SEGMENTNODELIST_H
22 #include <geos/export.h>
24 #include <geos/inline.h>
31 #include <geos/noding/SegmentNode.h>
35 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
41 class CoordinateSequence;
45 class NodedSegmentString;
58 std::set<SegmentNode*,SegmentNodeLT> nodeMap;
69 void checkSplitEdgesCorrectness(std::vector<SegmentString*>& splitEdges);
89 void addCollapsedNodes();
95 void findCollapsesFromExistingVertices(
96 std::vector<std::size_t>& collapsedVertexIndexes);
105 void findCollapsesFromInsertedNodes(
106 std::vector<std::size_t>& collapsedVertexIndexes);
109 size_t& collapsedVertexIndex);
117 friend std::ostream& operator<< (std::ostream& os,
const SegmentNodeList& l);
119 typedef std::set<SegmentNode*,SegmentNodeLT> container;
120 typedef container::iterator iterator;
121 typedef container::const_iterator const_iterator;
146 return add(*intPt, segmentIndex);
154 std::set<SegmentNode*,SegmentNodeLT>* getNodes() {
return &nodeMap; }
157 size_t size()
const {
return nodeMap.size(); }
159 container::iterator begin() {
return nodeMap.begin(); }
160 container::const_iterator begin()
const {
return nodeMap.begin(); }
161 container::iterator end() {
return nodeMap.end(); }
162 container::const_iterator end()
const {
return nodeMap.end(); }
175 void addSplitEdges(std::vector<SegmentString*>& edgeList);
177 void addSplitEdges(std::vector<SegmentString*>* edgeList) {
179 addSplitEdges(*edgeList);
185 std::ostream& operator<< (std::ostream& os,
const SegmentNodeList& l);
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:46
Represents a list of contiguous line segments, and supports noding the segments.
Definition: NodedSegmentString.h:57
size_t size() const
Return the number of nodes in this list.
Definition: SegmentNodeList.h:157
A list of the SegmentNode present along a NodedSegmentString.
Definition: SegmentNodeList.h:56
Represents an intersection point between two NodedSegmentString.
Definition: SegmentNode.h:45