예제 #1
0
파일: MgMapViewer.cs 프로젝트: kanbang/Colt
 /// <summary>
 /// Starts the digitization process for a line
 /// </summary>
 /// <param name="callback">The callback to be invoked when the digitization process completes</param>
 /// <param name="customPrompt">The custom prompt to use for the tracking tooltip</param>
 public void DigitizeLine(LineDigitizationCallback callback, string customPrompt)
 {
     this.DigitizingType = MapDigitizationType.Line;
     _digitzationCallback = callback;
     _digitizationYetToStart = true;
     _lineCustomDigitizationPrompt = customPrompt;
 }
예제 #2
0
파일: MgMapViewer.cs 프로젝트: kanbang/Colt
 public void DigitizeLineString(LineStringDigitizationCallback callback, LineDigitizationCallback segmentDigitized)
 {
     DigitizeLineString(callback, segmentDigitized, null);
 }
예제 #3
0
파일: MgMapViewer.cs 프로젝트: kanbang/Colt
 private void ResetDigitzationState()
 {
     _digitzationCallback = null;
     _segmentCallback = null;
     dPath.Clear();
     dPtEnd.X = dPtStart.Y = 0;
     dPtStart.X = dPtStart.Y = 0;
     this.DigitizingType = MapDigitizationType.None;
     _circleCustomDigitizationPrompt = null;
     _lineCustomDigitizationPrompt = null;
     _lineStringCustomDigitizationPrompt = null;
     _polygonCustomDigitizationPrompt = null;
     _pointCustomDigitizationPrompt = null;
     _rectangleCustomDigitizationPrompt = null;
     Invalidate();
 }
예제 #4
0
파일: MgMapViewer.cs 프로젝트: kanbang/Colt
 public void DigitizeLine(LineDigitizationCallback callback)
 {
     DigitizeLine(callback, null);
 }