GEOS 3.15.0dev
Public Member Functions | List of all members
geos::noding::SimpleNoder Class Reference

Nodes a set of SegmentStrings by performing a brute-force comparison of every segment to every other one. More...

#include <SimpleNoder.h>

Inheritance diagram for geos::noding::SimpleNoder:
geos::noding::SinglePassNoder geos::noding::Noder

Public Member Functions

 SimpleNoder (SegmentIntersector *nSegInt=nullptr)
 
void computeNodes (const std::vector< SegmentString * > &inputSegmentStrings) override
 Computes the noding for a collection of SegmentStrings.
 
std::vector< std::unique_ptr< SegmentString > > getNodedSubstrings () override
 Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
 
- Public Member Functions inherited from geos::noding::SinglePassNoder
 SinglePassNoder (SegmentIntersector *nSegInt=nullptr)
 
virtual void setSegmentIntersector (SegmentIntersector *newSegInt)
 Sets the SegmentIntersector to use with this noder.
 

Additional Inherited Members

- Protected Attributes inherited from geos::noding::SinglePassNoder
SegmentIntersectorsegInt
 Externally owned.
 

Detailed Description

Nodes a set of SegmentStrings by performing a brute-force comparison of every segment to every other one.

This has n^2 performance, so is too slow for use on large numbers of segments.

Version
1.7

Member Function Documentation

◆ computeNodes()

void geos::noding::SimpleNoder::computeNodes ( const std::vector< SegmentString * > &  segStrings)
overridevirtual

Computes the noding for a collection of SegmentStrings.

Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.

Parameters
segStringsa collection of SegmentStrings to node The caller remains responsible for releasing the memory associated with the SegmentStrings.

Implements geos::noding::Noder.

◆ getNodedSubstrings()

std::vector< std::unique_ptr< SegmentString > > geos::noding::SimpleNoder::getNodedSubstrings ( )
inlineoverridevirtual

Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.

Returns
a std::vector of SegmentStrings (copies of input, if needs be). Caller is responsible to delete elements of container. This method may only be called once.

Implements geos::noding::Noder.


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