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

Wraps a Noder and transforms its input into the integer domain. More...

#include <ScaledNoder.h>

Inheritance diagram for geos::noding::ScaledNoder:
geos::noding::Noder

Public Member Functions

bool isIntegerPrecision ()
 
 ScaledNoder (Noder &n, double nScaleFactor, double nOffsetX=0.0, double nOffsetY=0.0)
 
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 * > &inputSegStr) override
 Computes the noding for a collection of SegmentStrings.
 
void filter_ro (const geom::Coordinate *c)
 
void filter_rw (geom::Coordinate *c) const
 

Friends

class ScaledNoder::Scaler
 
class ScaledNoder::ReScaler
 

Detailed Description

Wraps a Noder and transforms its input into the integer domain.

This is intended for use with Snap-Rounding noders, which typically are only intended to work in the integer domain. Offsets can be provided to increase the number of digits of available precision.

Member Function Documentation

◆ computeNodes()

void geos::noding::ScaledNoder::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::ScaledNoder::getNodedSubstrings ( )
overridevirtual

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: