18 #include <geos/export.h>
19 #include <geos/geom/Coordinate.h>
26 #pragma warning(disable: 4251)
31 namespace planargraph {
32 class DirectedEdgeStar;
40 namespace planargraph {
49 typedef std::map<geom::Coordinate, Node*, geom::CoordinateLessThan> container;
58 container& getNodeMap();
93 return nodeMap.begin();
99 return nodeMap.begin();
101 container::const_iterator
104 return nodeMap.begin();
110 return nodeMap.end();
112 container::const_iterator
115 return nodeMap.end();
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:217
A map of Node, indexed by the coordinate of the node.
Definition: planargraph/NodeMap.h:47
Node * add(Node *n)
Adds a node to the std::map, replacing any that is already at that location.
void getNodes(std::vector< Node * > &nodes)
Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.
Node * remove(geom::Coordinate &pt)
Removes the Node at the given location, and returns it (or null if no Node was there).
NodeMap()
Constructs a NodeMap without any Nodes.
Node * find(const geom::Coordinate &coord)
Returns the Node at the given location, or null if no Node was there.
container::iterator iterator()
Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the posit...
Definition: planargraph/NodeMap.h:91
A node in a PlanarGraph is a location where 0 or more Edge meet.
Definition: planargraph/Node.h:44
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25