16 #ifndef GEOS_PLANARGRAPH_NODE_H 17 #define GEOS_PLANARGRAPH_NODE_H 27 namespace planargraph {
34 namespace planargraph {
65 static std::vector<Edge*>* getEdgesBetween(
Node* node0,
149 Node& operator=(
const Node&) =
delete;
163 #endif // GEOS_PLANARGRAPH_NODE_H geom::Coordinate & getCoordinate()
Returns the location of this Node.
int getIndex(Edge *edge)
Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the po...
DirectedEdgeStar * deStar
The collection of DirectedEdges that leave this Node.
A sorted collection of DirectedEdge which leave a Node in a PlanarGraph.
Node(const geom::Coordinate &newPt)
Constructs a Node with the given location.
int getIndex(const Edge *edge)
Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the po...
Coordinate is the lightweight class used to store coordinates.
Represents a directed edge in a PlanarGraph.
size_t getDegree() const
Returns the number of edges around this Node.
const DirectedEdgeStar * getOutEdges() const
Node(geom::Coordinate &newPt, DirectedEdgeStar *newDeStar)
Constructs a Node with the given location and collection of outgoing DirectedEdges. Takes ownership of the given DirectedEdgeStar!!
DirectedEdgeStar * getOutEdges()
Returns the collection of DirectedEdges that leave this Node.
std::size_t getDegree() const
Returns the number of edges around the Node associated with this DirectedEdgeStar.
void add(DirectedEdge *de)
Adds a new member to this DirectedEdgeStar.
Basic namespace for all GEOS functionalities.
Represents an undirected edge of a PlanarGraph.
void addOutEdge(DirectedEdge *de)
Adds an outgoing DirectedEdge to this Node.
geom::Coordinate pt
The location of this Node.
The base class for all graph component classes.
A node in a PlanarGraph is a location where 0 or more Edge meet.
std::ostream & operator<<(std::ostream &, const DirectedEdge &)
Output operator.