개정판 4804a4fb
issue #937: line size 계산 로직 수정, 텍스트가 뒤집혀 나오는 현상 수정, arc length 계산 로직 추가
Change-Id: I74b1e59bd6f2983c8cc107ea34654ecf791fc470
MarkupToPDF/Controls/Polygon/PolygonControl.cs | ||
---|---|---|
419 | 419 |
|
420 | 420 |
public void updateControl() |
421 | 421 |
{ |
422 |
//this.PointSet = new List<Point>(); |
|
423 |
|
|
424 |
//this.PointSet.Clear(); |
|
425 |
|
|
426 |
//this.PointSet.AddRange(PointC.pointSet); |
|
427 |
//this.PointSet.AddRange(PointSet); |
|
428 |
|
|
429 | 422 |
this.StartPoint = new Point(this.PointSet[0].X, this.PointSet[0].Y); |
430 |
|
|
431 | 423 |
this.EndPoint = new Point(this.PointSet[this.PointSet.Count - 1].X, this.PointSet[this.PointSet.Count - 1].Y); |
432 | 424 |
|
433 | 425 |
SetPolyPath(); |
... | ... | |
445 | 437 |
|
446 | 438 |
PathGeometry pathGeometry = new PathGeometry(); |
447 | 439 |
PathFigure pathFigure = new PathFigure(); |
448 |
PolyLineSegment instance = new PolyLineSegment(); |
|
449 |
foreach (var Inneritem in PointSet) |
|
450 |
{ |
|
451 |
instance.Points.Add(Inneritem); |
|
452 |
} |
|
440 |
PolyLineSegment instance = new PolyLineSegment(this.PointSet, true); |
|
453 | 441 |
|
454 | 442 |
StartPoint = instance.Points.First(); |
455 | 443 |
pathFigure.StartPoint = StartPoint; |
... | ... | |
464 | 452 |
{ |
465 | 453 |
case PaintSet.None: |
466 | 454 |
{ |
455 |
pathFigure.IsFilled = false; |
|
467 | 456 |
//강인구 추가 |
468 | 457 |
Base_PolyPath.Fill = null; |
469 | 458 |
} |
... | ... | |
484 | 473 |
} |
485 | 474 |
|
486 | 475 |
this.PathData = pathGeometry; |
487 |
this.OverViewPathData = PathData;
|
|
476 |
this.ApplyOverViewData();
|
|
488 | 477 |
} |
489 | 478 |
} |
490 | 479 |
|
... | ... | |
584 | 573 |
PointSet = s.PointSet, |
585 | 574 |
UserID = s.UserID, |
586 | 575 |
Paint = s.PaintState, |
587 |
//PointC = s.PointC, |
|
588 | 576 |
Memo = s.Memo |
589 | 577 |
}; |
590 | 578 |
} |
591 | 579 |
} |
592 |
//public PaintSet Paint { get; set; } |
|
593 | 580 |
|
594 | 581 |
|
595 | 582 |
#region Dispose |
내보내기 Unified diff