Exemple #1
0
 public PointSnapperItemVisitor(Envelope pixelEnv,
                                HotPixelSnapAction hotPixelSnapAction,
                                MCIndexPointSnapper pointSnapper)
 {
     this.pixelEnv           = pixelEnv;
     this.hotPixelSnapAction = hotPixelSnapAction;
     this.enclosingInstance  = pointSnapper;
 }
Exemple #2
0
            public HotPixelSnapAction(MCIndexPointSnapper pointSnapper,
                                      HotPixel hotPixel, SegmentString parentEdge, int vertexIndex)
            {
                this.enclosingInstance = pointSnapper;

                this.hotPixel    = hotPixel;
                this.parentEdge  = parentEdge;
                this.vertexIndex = vertexIndex;
            }
        public void ComputeNodes(IList inputSegmentStrings)
        {
            this.nodedSegStrings = inputSegmentStrings;
            noder        = new MCIndexNoder();
            pointSnapper = new MCIndexPointSnapper(
                noder.MonotoneChains, noder.Index);

            SnapRound(inputSegmentStrings, li);

            // testing purposes only - remove in final version
            //checkCorrectness(inputSegmentStrings);
        }