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;
152 return add(*intPt, segmentIndex);
160 std::set<SegmentNode*, SegmentNodeLT>*
170 return nodeMap.size();
176 return nodeMap.begin();
178 container::const_iterator
181 return nodeMap.begin();
186 return nodeMap.end();
188 container::const_iterator
191 return nodeMap.end();
205 void addSplitEdges(std::vector<SegmentString*>& edgeList);
208 addSplitEdges(std::vector<SegmentString*>* edgeList)
211 addSplitEdges(*edgeList);
217 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:168
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
A list of the SegmentNode present along a NodedSegmentString.
Definition: SegmentNodeList.h:56
Represents an intersection point between two NodedSegmentString.
Definition: SegmentNode.h:47