GEOS 3.11.1
Public Member Functions | Friends | List of all members
geos::operation::overlayng::OverlayEdge Class Reference

#include <OverlayEdge.h>

Inheritance diagram for geos::operation::overlayng::OverlayEdge:
geos::edgegraph::HalfEdge

Public Member Functions

 OverlayEdge (const Coordinate &p_orig, const Coordinate &p_dirPt, bool p_direction, OverlayLabel *p_label, const CoordinateSequence *p_pts)
 
bool isForward () const
 
const CoordinatedirectionPt () const override
 
OverlayLabelgetLabel () const
 
Location getLocation (uint8_t index, int position) const
 
const CoordinategetCoordinate () const
 
const CoordinateSequencegetCoordinatesRO () const
 
std::unique_ptr< CoordinateSequencegetCoordinates ()
 
std::unique_ptr< CoordinateSequencegetCoordinatesOriented ()
 
void addCoordinates (CoordinateArraySequence *coords) const
 
OverlayEdgesymOE () const
 
OverlayEdgeoNextOE () const
 
bool isInResultArea () const
 
bool isInResultAreaBoth () const
 
bool isInResultEither () const
 
void unmarkFromResultAreaBoth ()
 
void markInResultArea ()
 
void markInResultAreaBoth ()
 
bool isInResultLine () const
 
void markInResultLine ()
 
bool isInResult () const
 
void setNextResult (OverlayEdge *e)
 
OverlayEdgenextResult () const
 
bool isResultLinked () const
 
void setNextResultMax (OverlayEdge *e)
 
OverlayEdgenextResultMax () const
 
bool isResultMaxLinked () const
 
bool isVisited () const
 
void markVisitedBoth ()
 
void setEdgeRing (const OverlayEdgeRing *p_edgeRing)
 
const OverlayEdgeRing * getEdgeRing () const
 
const MaximalEdgeRing * getEdgeRingMax () const
 
void setEdgeRingMax (const MaximalEdgeRing *p_maximalEdgeRing)
 
std::string resultSymbol () const
 
- Public Member Functions inherited from geos::edgegraph::HalfEdge
 HalfEdge (const geom::Coordinate &p_orig)
 
void link (HalfEdge *p_sym)
 
const geom::Coordinateorig () const
 
const geom::Coordinatedest () const
 
double directionX () const
 
double directionY () const
 
HalfEdgesym () const
 
HalfEdgenext () const
 
HalfEdgeprev () const
 
HalfEdgeoNext () const
 
void setNext (HalfEdge *e)
 
HalfEdgefind (const geom::Coordinate &dest)
 
bool equals (const geom::Coordinate &p0, const geom::Coordinate &p1) const
 
void insert (HalfEdge *eAdd)
 
bool isEdgesSorted () const
 
int compareAngularDirection (const HalfEdge *e) const
 
int compareTo (const HalfEdge *e) const
 
int degree ()
 
HalfEdgeprevNode ()
 

Friends

std::ostream & operator<< (std::ostream &os, const OverlayEdge &oe)
 

Additional Inherited Members

- Static Public Member Functions inherited from geos::edgegraph::HalfEdge
static HalfEdgecreate (const geom::Coordinate &p0, const geom::Coordinate &p1)
 
static void toStringNode (const HalfEdge *he, std::ostream &os)
 
virtual const geom::CoordinatedirectionPt () const
 

Detailed Description

Creates a single OverlayEdge.

Member Function Documentation

◆ addCoordinates()

void geos::operation::overlayng::OverlayEdge::addCoordinates ( CoordinateArraySequence coords) const

Adds the coordinates of this edge to the given list, in the direction of the edge. Duplicate coordinates are removed (which means that this is safe to use for a path of connected edges in the topology graph).

Parameters
coordsthe coordinate list to add to

◆ directionPt()

const Coordinate & geos::operation::overlayng::OverlayEdge::directionPt ( ) const
inlineoverridevirtual

Gets the direction point of this edge. In the base case this is the dest coordinate of the edge. Subclasses may override to allow a HalfEdge to represent an edge with more than two coordinates.

Returns
the direction point for the edge

Reimplemented from geos::edgegraph::HalfEdge.


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