GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
geos::noding::snapround::MCIndexPointSnapper Class Reference

"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel. More...

#include <MCIndexPointSnapper.h>

Collaboration diagram for geos::noding::snapround::MCIndexPointSnapper:
[legend]

Public Member Functions

 MCIndexPointSnapper (index::SpatialIndex &nIndex)
 
bool snap (HotPixel &hotPixel, SegmentString *parentEdge, size_t vertexIndex)
 Snaps (nodes) all interacting segments to this hot pixel. More...
 
bool snap (HotPixel &hotPixel)
 
geom::Envelope getSafeEnvelope (const HotPixel &hp) const
 

Private Member Functions

 MCIndexPointSnapper (const MCIndexPointSnapper &other)=delete
 
MCIndexPointSnapperoperator= (const MCIndexPointSnapper &rhs)=delete
 

Private Attributes

index::SpatialIndexindex
 

Static Private Attributes

static constexpr double SAFE_ENV_EXPANSION_FACTOR = 0.75
 

Detailed Description

"Snaps" all SegmentStrings in a SpatialIndex containing MonotoneChains to a given HotPixel.

Definition at line 52 of file MCIndexPointSnapper.h.

Constructor & Destructor Documentation

geos::noding::snapround::MCIndexPointSnapper::MCIndexPointSnapper ( index::SpatialIndex nIndex)
inline

Definition at line 57 of file MCIndexPointSnapper.h.

geos::noding::snapround::MCIndexPointSnapper::MCIndexPointSnapper ( const MCIndexPointSnapper other)
privatedelete

Member Function Documentation

geom::Envelope geos::noding::snapround::MCIndexPointSnapper::getSafeEnvelope ( const HotPixel hp) const
MCIndexPointSnapper& geos::noding::snapround::MCIndexPointSnapper::operator= ( const MCIndexPointSnapper rhs)
privatedelete
bool geos::noding::snapround::MCIndexPointSnapper::snap ( HotPixel hotPixel,
SegmentString parentEdge,
size_t  vertexIndex 
)

Snaps (nodes) all interacting segments to this hot pixel.

The hot pixel may represent a vertex of an edge, in which case this routine uses the optimization of not noding the vertex itself.

Parameters
hotPixelthe hot pixel to snap to
parentEdgethe edge containing the vertex, if applicable, or null
vertexIndexthe index of the vertex, if applicable, or -1
Returns
true if a node was added for this pixel
bool geos::noding::snapround::MCIndexPointSnapper::snap ( HotPixel hotPixel)
inline

Definition at line 78 of file MCIndexPointSnapper.h.

Member Data Documentation

index::SpatialIndex& geos::noding::snapround::MCIndexPointSnapper::index
private

Definition at line 90 of file MCIndexPointSnapper.h.

constexpr double geos::noding::snapround::MCIndexPointSnapper::SAFE_ENV_EXPANSION_FACTOR = 0.75
staticprivate

Definition at line 88 of file MCIndexPointSnapper.h.


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