A node in a PlanarGraph is a location where 0 or more Edge meet.
More...
#include <Node.h>
|
| static std::vector< Edge * > * | getEdgesBetween (Node *node0, Node *node1) |
| | Returns all Edges that connect the two nodes (which are assumed to be different).
|
| template<typename T> |
| static void | setVisited (T start, T end, bool visited) |
| | Sets the Visited state for the elements of a container, from start to end iterator.
|
| template<typename T> |
| static void | setVisitedMap (T start, T end, bool visited) |
| | Sets the Visited state for the values of each map container element, from start to end iterator.
|
| template<typename T> |
| static void | setMarked (T start, T end, bool marked) |
| | Sets the Marked state for the elements of a container, from start to end iterator.
|
| template<typename T> |
| static void | setMarkedMap (T start, T end, bool marked) |
| | Sets the Marked state for the values of each map container element, from start to end iterator.
|
A node in a PlanarGraph is a location where 0 or more Edge meet.
A node is connected to each of its incident Edges via an outgoing DirectedEdge. Some clients using a PlanarGraph may want to subclass Node to add their own application-specific data and methods.
◆ Node() [1/2]
◆ Node() [2/2]
Constructs a Node with the given location and collection of outgoing DirectedEdges. Takes ownership of the given DirectedEdgeStar!!
References deStar, and pt.
◆ addOutEdge()
| void geos::planargraph::Node::addOutEdge |
( |
DirectedEdge * | de | ) |
|
|
inline |
◆ getCoordinate()
Returns the location of this Node.
References pt.
◆ getDegree()
| size_t geos::planargraph::Node::getDegree |
( |
| ) |
const |
|
inline |
◆ getEdgesBetween()
| std::vector< Edge * > * geos::planargraph::Node::getEdgesBetween |
( |
Node * | node0, |
|
|
Node * | node1 ) |
|
static |
Returns all Edges that connect the two nodes (which are assumed to be different).
Note: returned vector is newly allocated, ownership to the caller.
References Node().
◆ getIndex()
| int geos::planargraph::Node::getIndex |
( |
Edge * | edge | ) |
|
|
inline |
◆ getOutEdges()
Returns the collection of DirectedEdges that leave this Node.
References deStar.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Node & | n ) |
|
friend |
◆ deStar
◆ pt
The documentation for this class was generated from the following file: