GEOS  3.9.1dev
Public Member Functions | Protected Member Functions | List of all members
geos::noding::Noder Class Referenceabstract

Computes all intersections between segments in a set of SegmentString. More...

#include <Noder.h>

Inheritance diagram for geos::noding::Noder:
[legend]

Public Member Functions

virtual void computeNodes (std::vector< SegmentString * > *segStrings)=0
 Computes the noding for a collection of SegmentStrings. More...
 
virtual std::vector< SegmentString * > * getNodedSubstrings () const =0
 Returns a collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent. More...
 
virtual ~Noder ()
 

Protected Member Functions

 Noder ()
 

Detailed Description

Computes all intersections between segments in a set of SegmentString.

Intersections found are represented as SegmentNodes and added to the SegmentStrings in which they occur. As a final step in the noding a new set of segment strings split at the nodes may be returned.

Last port: noding/Noder.java rev. 1.8 (JTS-1.7)

TODO: this was really an interface, we should avoid making it a Base class

Definition at line 49 of file Noder.h.

Constructor & Destructor Documentation

virtual geos::noding::Noder::~Noder ( )
inlinevirtual

Definition at line 74 of file Noder.h.

geos::noding::Noder::Noder ( )
inlineprotected

Definition at line 77 of file Noder.h.

Member Function Documentation

virtual void geos::noding::Noder::computeNodes ( std::vector< SegmentString * > *  segStrings)
pure virtual

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 container and its elements.

Implemented in geos::noding::snapround::SnapRoundingNoder, geos::noding::IteratedNoder, geos::noding::snap::SnappingNoder, geos::noding::MCIndexNoder, geos::noding::snapround::MCIndexSnapRounder, geos::noding::ScaledNoder, geos::noding::SinglePassNoder, geos::noding::ValidatingNoder, and geos::noding::SimpleNoder.

virtual std::vector<SegmentString*>* geos::noding::Noder::getNodedSubstrings ( ) const
pure virtual

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

Returns
a newly allocated std::vector of newly allocated SegmentStrings (copies of input, if needs be). Caller is responsible to delete container and elements.

Implemented in geos::noding::snapround::SnapRoundingNoder, geos::noding::snap::SnappingNoder, geos::noding::IteratedNoder, geos::noding::MCIndexNoder, geos::noding::SinglePassNoder, geos::noding::snapround::MCIndexSnapRounder, geos::noding::ScaledNoder, geos::noding::ValidatingNoder, and geos::noding::SimpleNoder.


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