Exemple #1
0
 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;
 }
Exemple #2
0
 //-----------------------------------------------------
 void StepToNextMarkerSegment()
 {
     _currentMarker      = _segmentMarks[_nextMarkNo];
     _expectedSegmentLen = _currentMarker.Len;
     if (_nextMarkNo + 1 < _segmentMarks.Count)
     {
         _nextMarkNo++;
     }
     else
     {
         _nextMarkNo = 0;
     }
 }
Exemple #3
0
 public void AddWalkMark(LineWalkerMark walkerMark)
 {
     lineMarker.AddSegmentMark(walkerMark);
 }
Exemple #4
0
        public static void AddMark(this LineWalker walker, double len, LineSegmentDelegate segDel)
        {
            var mark = new LineWalkerMark(len, segDel);

            walker.AddWalkMark(mark);
        }
Exemple #5
0
 public void AddSegmentMark(LineWalkerMark segMark)
 {
     _segmentMarks.Add(segMark);
 }