GEOS 3.11.1
Public Types | Public Member Functions | Friends | List of all members
geos::noding::SegmentNodeList Class Reference

A list of the SegmentNode present along a NodedSegmentString. More...

#include <SegmentNodeList.h>

Public Types

using container = decltype(nodeMap)
 
using iterator = container::iterator
 
using const_iterator = container::const_iterator
 

Public Member Functions

 SegmentNodeList (const SegmentNodeList &other)=delete
 
SegmentNodeListoperator= (const SegmentNodeList &rhs)=delete
 
 SegmentNodeList (const NodedSegmentString *newEdge)
 
 SegmentNodeList (const NodedSegmentString &newEdge)
 
const NodedSegmentStringgetEdge () const
 
void add (const geom::Coordinate &intPt, std::size_t segmentIndex)
 
void add (const geom::Coordinate *intPt, std::size_t segmentIndex)
 
size_t size () const
 Return the number of nodes in this list.
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void addEndpoints ()
 
void addSplitEdges (std::vector< SegmentString * > &edgeList)
 
void addSplitEdges (std::vector< SegmentString * > *edgeList)
 
std::vector< geom::CoordinategetSplitCoordinates ()
 

Friends

std::ostream & operator<< (std::ostream &os, const SegmentNodeList &l)
 

Detailed Description

A list of the SegmentNode present along a NodedSegmentString.

Member Function Documentation

◆ add()

void geos::noding::SegmentNodeList::add ( const geom::Coordinate intPt,
std::size_t  segmentIndex 
)

Adds an intersection into the list, if it isn't already there. The input segmentIndex is expected to be normalized.

Parameters
intPtthe intersection Coordinate, will be copied
segmentIndex

◆ addEndpoints()

void geos::noding::SegmentNodeList::addEndpoints ( )

Adds entries for the first and last points of the edge to the list

◆ addSplitEdges()

void geos::noding::SegmentNodeList::addSplitEdges ( std::vector< SegmentString * > &  edgeList)

Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the input list (this is so a single list can be used to accumulate all split edges for a Geometry).

◆ getSplitCoordinates()

std::vector< geom::Coordinate > geos::noding::SegmentNodeList::getSplitCoordinates ( )

Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list. Repeated coordinates are collapsed.

Returns
an array of Coordinates

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