프로젝트

일반

사용자정보

개정판 5a9353a9

ID5a9353a96445059c724a93128d1976ce11c206e9
상위 5a6a5dd1
하위 8742caa5

humkyung 이(가) 6년 이상 전에 추가함

Change arc depth for cloud from 0.8 to 0.55

차이점 보기:

MarkupToPDF/Controls/Polygon/CloudControl.cs
23 23
        public Path Base_CloudPath = null;
24 24
        public Path Base_CloudSubPath = null;
25 25

  
26
        private const double _CloudArcDepth = 0.55;  /// 2018.05.14 added by humkyung
27

  
26 28
        static CloudControl()
27 29
        {
28 30
            DefaultStyleKeyProperty.OverrideMetadata(typeof(CloudControl), new FrameworkPropertyMetadata(typeof(CloudControl)));
......
609 611
            this._pathSubGeometry = new PathGeometry();
610 612
            int count = this.PointSet.Count;
611 613

  
612

  
613
            //인구 수정 클라우드 크기 설정(2018.04.19)
614
            //double size = 0;
615
            //double tmp = 0;
616

  
617
            //for (int i = 0; i < count - 1; i++)
618
            //{
619
            //    tmp = size;
620
            //    size = Math.Max(MathSet.DistanceTo(this.PointSet[i], this.PointSet[i + 1]), tmp);
621
            //}
622
            //ArcLength = (size * 0.05);
623

  
624
            //if (ArcLength <= 3)
625
            //{
626
            //    ArcLength = 10;
627
            //}
628
            //else if (ArcLength <= 10)
629
            //{
630
            //    ArcLength = 20;
631
            //}
632
            //else if (ArcLength <= 30)
633
            //{
634
            //    ArcLength = 30;
635
            //}
636
            /////////////////////////////////////////
637

  
638 614
            if (isTransOn) // true라면 클라우드 컨트롤
639 615
            {
640 616
                for (int i = 0; i < (count - 1); i++)
......
713 689
            for (j = 1; j < (count - 1); j++)
714 690
            {
715 691
                ArcSegment arcSeg = new ArcSegment();
716
                arcSeg.Size = new Size(arcLength * 0.8, arcLength * 0.8);						/// x size and y size of arc
692
                arcSeg.Size = new Size(arcLength * CloudControl._CloudArcDepth, arcLength * CloudControl._CloudArcDepth);						/// x size and y size of arc
717 693
                arcSeg.Point = new Point(p1.X + j * dx * arcLength, p1.Y + j * dy * arcLength);	/// end point of arc
718 694
                lastPt = arcSeg.Point;  /// save last point
719 695
                arcSeg.RotationAngle = theta + 90;
......
726 702
            {
727 703
                arcLength = MathSet.DistanceTo(lastPt, p2);
728 704
                ArcSegment arcSeg = new ArcSegment();
729
                arcSeg.Size = new Size(arcLength * 0.8, arcLength * 0.8);	/// x size and y size of arc
705
                arcSeg.Size = new Size(arcLength * CloudControl._CloudArcDepth, arcLength * CloudControl._CloudArcDepth);	/// x size and y size of arc
730 706
                arcSeg.Point = new Point(p2.X, p2.Y);						/// end point of arc
731 707
                arcSeg.RotationAngle = theta;
732 708
                if (true == reverse) arcSeg.SweepDirection = SweepDirection.Clockwise;

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)