16 #ifndef GEOS_PLANARGRAPH_EDGE_H
17 #define GEOS_PLANARGRAPH_EDGE_H
19 #include <geos/export.h>
21 #include <geos/planargraph/GraphComponent.h>
30 #pragma warning(disable: 4251)
35 namespace planargraph {
36 class DirectedEdgeStar;
44 namespace planargraph {
98 setDirectedEdges(de0, de1);
Represents a directed edge in a PlanarGraph.
Definition: planargraph/DirectedEdge.h:46
Represents an undirected edge of a PlanarGraph.
Definition: planargraph/Edge.h:55
std::vector< const Edge * > ConstVect
Vector of const Edges pointers.
Definition: planargraph/Edge.h:71
Edge()
Constructs a Edge whose DirectedEdges are not yet set.
Definition: planargraph/Edge.h:86
Edge(DirectedEdge *de0, DirectedEdge *de1)
Constructs an Edge initialized with the given DirectedEdges.
Definition: planargraph/Edge.h:94
std::set< const Edge * > ConstSet
Set of const Edges pointers.
Definition: planargraph/Edge.h:62
std::set< Edge * > NonConstSet
Set of non-const Edges pointers.
Definition: planargraph/Edge.h:65
DirectedEdge * getDirEdge(Node *fromNode)
Returns the DirectedEdge that starts from the given node, or null if the node is not one of the two n...
DirectedEdge * getDirEdge(int i)
Returns one of the DirectedEdges associated with this Edge.
Node * getOppositeNode(Node *node)
If node is one of the two nodes associated with this Edge, returns the other node; otherwise returns ...
std::vector< DirectedEdge * > dirEdge
The two DirectedEdges associated with this Edge.
Definition: planargraph/Edge.h:76
void setDirectedEdges(DirectedEdge *de0, DirectedEdge *de1)
Initializes this Edge's two DirectedEdges.
std::vector< Edge * > NonConstVect
Vector of non-const Edges pointers.
Definition: planargraph/Edge.h:68
The base class for all graph component classes.
Definition: planargraph/GraphComponent.h:46
A node in a PlanarGraph is a location where 0 or more Edge meet.
Definition: planargraph/Node.h:45
std::ostream & operator<<(std::ostream &, const DirectedEdge &)
Output operator.
Basic namespace for all GEOS functionalities.
Definition: Angle.h:26