GEOS  3.8.0dev
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
geos::geomgraph::DirectedEdge Class Reference

A directed EdgeEnd. More...

#include <DirectedEdge.h>

Inheritance diagram for geos::geomgraph::DirectedEdge:

Public Member Functions

 DirectedEdge (Edge *newEdge, bool newIsForward)
void setInResult (bool newIsInResult)
bool isInResult ()
bool isVisited ()
void setVisited (bool newIsVisited)
void setEdgeRing (EdgeRing *newEdgeRing)
EdgeRinggetEdgeRing ()
void setMinEdgeRing (EdgeRing *newMinEdgeRing)
EdgeRinggetMinEdgeRing ()
int getDepth (int position)
void setDepth (int position, int newDepth)
int getDepthDelta () const
void setVisitedEdge (bool newIsVisited)
 Marks both DirectedEdges attached to a given Edge. More...
DirectedEdgegetSym ()
 Each Edge gives rise to a pair of symmetric DirectedEdges, in opposite directions. More...
bool isForward ()
void setSym (DirectedEdge *de)
DirectedEdgegetNext ()
void setNext (DirectedEdge *newNext)
DirectedEdgegetNextMin ()
void setNextMin (DirectedEdge *newNextMin)
bool isLineEdge ()
 Tells wheter this edge is a Line. More...
bool isInteriorAreaEdge ()
 Tells wheter this edge is an Area. More...
void setEdgeDepths (int position, int newDepth)
 Set both edge depths. More...
std::string print () const override
std::string printEdge ()
- Public Member Functions inherited from geos::geomgraph::EdgeEnd
 EdgeEnd (Edge *newEdge, const geom::Coordinate &newP0, const geom::Coordinate &newP1, const Label &newLabel)
 EdgeEnd (Edge *newEdge, const geom::Coordinate &newP0, const geom::Coordinate &newP1)
EdgegetEdge ()
LabelgetLabel ()
const LabelgetLabel () const
virtual geom::CoordinategetCoordinate ()
const geom::CoordinategetCoordinate () const
virtual geom::CoordinategetDirectedCoordinate ()
virtual int getQuadrant ()
virtual double getDx ()
virtual double getDy ()
virtual void setNode (Node *newNode)
virtual NodegetNode ()
virtual int compareTo (const EdgeEnd *e) const
virtual int compareDirection (const EdgeEnd *e) const
virtual void computeLabel (const algorithm::BoundaryNodeRule &bnr)

Static Public Member Functions

static int depthFactor (int currLocation, int 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.

Protected Attributes

bool isForwardVar
- Protected Attributes inherited from geos::geomgraph::EdgeEnd
Label label

Additional Inherited Members

- Protected Member Functions inherited from geos::geomgraph::EdgeEnd
 EdgeEnd (Edge *newEdge)
virtual void init (const geom::Coordinate &newP0, const geom::Coordinate &newP1)

Detailed Description

A directed EdgeEnd.

Member Function Documentation

DirectedEdge* geos::geomgraph::DirectedEdge::getSym ( )

Each Edge gives rise to a pair of symmetric DirectedEdges, in opposite directions.

the DirectedEdge for the same Edge but in the opposite direction
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.
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
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::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.

The documentation for this class was generated from the following file: