Class MCIndexPointSnapper.HotPixelSnapAction
- java.lang.Object
-
- org.locationtech.jts.index.chain.MonotoneChainSelectAction
-
- org.locationtech.jts.noding.snapround.MCIndexPointSnapper.HotPixelSnapAction
-
- Enclosing class:
- MCIndexPointSnapper
public static class MCIndexPointSnapper.HotPixelSnapAction extends MonotoneChainSelectAction
-
-
Constructor Summary
Constructors Constructor Description HotPixelSnapAction(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNodeAdded()
Reports whether the HotPixel caused a node to be added in any target segmentString (including its own).void
select(MonotoneChain mc, int startIndex)
Check if a segment of the monotone chain intersects the hot pixel vertex and introduce a snap node if so.-
Methods inherited from class org.locationtech.jts.index.chain.MonotoneChainSelectAction
select
-
-
-
-
Constructor Detail
-
HotPixelSnapAction
public HotPixelSnapAction(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
-
-
Method Detail
-
isNodeAdded
public boolean isNodeAdded()
Reports whether the HotPixel caused a node to be added in any target segmentString (including its own). If so, the HotPixel must be added as a node as well.- Returns:
- true if a node was added in any target segmentString.
-
select
public void select(MonotoneChain mc, int startIndex)
Check if a segment of the monotone chain intersects the hot pixel vertex and introduce a snap node if so. Optimized to avoid noding segments which contain the vertex (which otherwise would cause every vertex to be noded).- Overrides:
select
in classMonotoneChainSelectAction
- Parameters:
mc
- the parent chainstartIndex
- the index of the start vertex of the segment being processed
-
-