public class MCIndexPointSnapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MCIndexPointSnapper.HotPixelSnapAction |
| Constructor and Description |
|---|
MCIndexPointSnapper(SpatialIndex index) |
| Modifier and Type | Method and Description |
|---|---|
Envelope |
getSafeEnvelope(HotPixel hp)
Returns a "safe" envelope that is guaranteed to contain the hot pixel.
|
boolean |
snap(HotPixel hotPixel) |
boolean |
snap(HotPixel hotPixel,
SegmentString parentEdge,
int hotPixelVertexIndex)
Snaps (nodes) all interacting segments to this hot pixel.
|
public MCIndexPointSnapper(SpatialIndex index)
public boolean snap(HotPixel hotPixel, SegmentString parentEdge, int hotPixelVertexIndex)
hotPixel - the hot pixel to snap toparentEdge - the edge containing the vertex, if applicable, or nullhotPixelVertexIndex - the index of the hotPixel vertex, if applicable, or -1true if a node was added for this pixelpublic boolean snap(HotPixel hotPixel)
Copyright © 2024. All rights reserved.