public void Reset() { _currentMarker = null; _nextMarkNo = 0; _total_accum_len = 0; _expectedSegmentLen = 0; _state = WalkState.Init; _nextMarkNo = 0; _latest_X = _latest_Y = _latest_moveto_Y = _latest_moveto_Y = 0; }
//----------------------------------------------------- void StepToNextMarkerSegment() { _currentMarker = _segmentMarks[_nextMarkNo]; _expectedSegmentLen = _currentMarker.Len; if (_nextMarkNo + 1 < _segmentMarks.Count) { _nextMarkNo++; } else { _nextMarkNo = 0; } }
public void AddWalkMark(LineWalkerMark walkerMark) { lineMarker.AddSegmentMark(walkerMark); }
public static void AddMark(this LineWalker walker, double len, LineSegmentDelegate segDel) { var mark = new LineWalkerMark(len, segDel); walker.AddWalkMark(mark); }
public void AddSegmentMark(LineWalkerMark segMark) { _segmentMarks.Add(segMark); }