A directed EdgeEnd.
More...
#include <DirectedEdge.h>
|
static int | depthFactor (geom::Location currLocation, geom::Location nextLocation) |
| Computes the factor for the change in depth when moving from one location to another. E.g. if crossing from the INTERIOR to the EXTERIOR the depth decreases, so the factor is -1. More...
|
|
A directed EdgeEnd.
Definition at line 45 of file geomgraph/DirectedEdge.h.
geos::geomgraph::DirectedEdge::DirectedEdge |
( |
Edge * |
newEdge, |
|
|
bool |
newIsForward |
|
) |
| |
void geos::geomgraph::DirectedEdge::computeDirectedLabel |
( |
| ) |
|
|
private |
Compute the label in the appropriate orientation for this DirEdge.
Computes the factor for the change in depth when moving from one location to another. E.g. if crossing from the INTERIOR to the EXTERIOR the depth decreases, so the factor is -1.
int geos::geomgraph::DirectedEdge::getDepth |
( |
int |
position | ) |
|
int geos::geomgraph::DirectedEdge::getDepthDelta |
( |
| ) |
const |
EdgeRing* geos::geomgraph::DirectedEdge::getEdgeRing |
( |
| ) |
|
EdgeRing* geos::geomgraph::DirectedEdge::getMinEdgeRing |
( |
| ) |
|
Each Edge gives rise to a pair of symmetric DirectedEdges, in opposite directions.
- Returns
- the DirectedEdge for the same Edge but in the opposite direction
bool geos::geomgraph::DirectedEdge::isForward |
( |
| ) |
|
bool geos::geomgraph::DirectedEdge::isInResult |
( |
| ) |
|
bool geos::geomgraph::DirectedEdge::isInteriorAreaEdge |
( |
| ) |
|
Tells wheter this edge is an Area.
This is an interior Area edge if
- its label is an Area label for both Geometries
- and for each Geometry both sides are in the interior.
- Returns
- true if this is an interior Area edge
bool geos::geomgraph::DirectedEdge::isLineEdge |
( |
| ) |
|
Tells wheter this edge is a Line.
This edge is a line edge if
- at least one of the labels is a line label
- any labels which are not line labels have all Locations = EXTERIOR
bool geos::geomgraph::DirectedEdge::isVisited |
( |
| ) |
|
std::string geos::geomgraph::DirectedEdge::print |
( |
| ) |
const |
|
overridevirtual |
std::string geos::geomgraph::DirectedEdge::printEdge |
( |
| ) |
|
void geos::geomgraph::DirectedEdge::setDepth |
( |
int |
position, |
|
|
int |
newDepth |
|
) |
| |
void geos::geomgraph::DirectedEdge::setEdgeDepths |
( |
int |
position, |
|
|
int |
newDepth |
|
) |
| |
Set both edge depths.
One depth for a given side is provided. The other is computed depending on the Location transition and the depthDelta of the edge.
void geos::geomgraph::DirectedEdge::setEdgeRing |
( |
EdgeRing * |
newEdgeRing | ) |
|
void geos::geomgraph::DirectedEdge::setInResult |
( |
bool |
newIsInResult | ) |
|
void geos::geomgraph::DirectedEdge::setMinEdgeRing |
( |
EdgeRing * |
newMinEdgeRing | ) |
|
void geos::geomgraph::DirectedEdge::setNext |
( |
DirectedEdge * |
newNext | ) |
|
void geos::geomgraph::DirectedEdge::setNextMin |
( |
DirectedEdge * |
newNextMin | ) |
|
void geos::geomgraph::DirectedEdge::setSym |
( |
DirectedEdge * |
de | ) |
|
void geos::geomgraph::DirectedEdge::setVisited |
( |
bool |
newIsVisited | ) |
|
void geos::geomgraph::DirectedEdge::setVisitedEdge |
( |
bool |
newIsVisited | ) |
|
Marks both DirectedEdges attached to a given Edge.
This is used for edges corresponding to lines, which will only appear oriented in a single direction in the result.
int geos::geomgraph::DirectedEdge::depth[3] |
|
private |
The depth of each side (position) of this edge. The 0 element of the array is never used.
Definition at line 179 of file geomgraph/DirectedEdge.h.
EdgeRing* geos::geomgraph::DirectedEdge::edgeRing |
|
private |
bool geos::geomgraph::DirectedEdge::isForwardVar |
|
protected |
bool geos::geomgraph::DirectedEdge::isInResultVar |
|
private |
bool geos::geomgraph::DirectedEdge::isVisitedVar |
|
private |
EdgeRing* geos::geomgraph::DirectedEdge::minEdgeRing |
|
private |
The documentation for this class was generated from the following file: