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

Nodes a set of SegmentString using a index based on MonotoneChain and a SpatialIndex. More...

#include <MCIndexNoder.h>

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

Public Member Functions

 MCIndexNoder (SegmentIntersector *nSegInt=nullptr, double p_overlapTolerance=0.0)
 
std::vector< index::chain::MonotoneChain > & getMonotoneChains ()
 Return a reference to this instance's std::vector of MonotoneChains.
 
index::SpatialIndexgetIndex ()
 
std::vector< std::unique_ptr< SegmentString > > getNodedSubstrings () override
 Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
 
void computeNodes (const std::vector< SegmentString * > &inputSegmentStrings) override
 Computes the noding for a collection of SegmentStrings.
 
- 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 SegmentString using a index based on MonotoneChain and a SpatialIndex.

The SpatialIndex used should be something that supports envelope (range) queries efficiently (such as a Quadtree or STRtree).

Last port: noding/MCIndexNoder.java rev. 1.4 (JTS-1.7)

Member Function Documentation

◆ computeNodes()

void geos::noding::MCIndexNoder::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::MCIndexNoder::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: