com.vividsolutions.jts.noding.snapround
Class MCIndexPointSnapper
java.lang.Object
com.vividsolutions.jts.noding.snapround.MCIndexPointSnapper
public class MCIndexPointSnapper
- extends Object
"Snaps" all SegmentString
s in a SpatialIndex
containing
MonotoneChain
s to a given HotPixel
.
- Version:
- 1.7
Field Summary |
static int |
nSnaps
|
Method Summary |
boolean |
snap(HotPixel hotPixel)
|
boolean |
snap(HotPixel hotPixel,
SegmentString parentEdge,
int hotPixelVertexIndex)
Snaps (nodes) all interacting segments to this hot pixel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nSnaps
public static int nSnaps
MCIndexPointSnapper
public MCIndexPointSnapper(SpatialIndex index)
snap
public boolean snap(HotPixel hotPixel,
SegmentString parentEdge,
int hotPixelVertexIndex)
- 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:
hotPixel
- the hot pixel to snap toparentEdge
- the edge containing the vertex, if applicable, or null
hotPixelVertexIndex
- the index of the hotPixel vertex, if applicable, or -1
- Returns:
true
if a node was added for this pixel
snap
public boolean snap(HotPixel hotPixel)
Copyright © 2012. All Rights Reserved.