/// <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; }
public void DigitizeLineString(LineStringDigitizationCallback callback, LineDigitizationCallback segmentDigitized) { DigitizeLineString(callback, segmentDigitized, null); }
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(); }
public void DigitizeLine(LineDigitizationCallback callback) { DigitizeLine(callback, null); }