프로젝트

일반

사용자정보

개정판 cf520d0d

IDcf520d0d0d02365f69991a46fce0ad2e7d4803d6
상위 f78d485d
하위 25c5df17

gaqhf 이(가) 약 5년 전에 추가함

dev issue #000 : dev specbreak relocation

Change-Id: I5646096d0448921b6c6951cf74e1e4aa05c3b2e5

차이점 보기:

DTI_PID/SPPIDConverter/ConverterDocking.cs
961 961
            FindRangeWithOutLineString2d(dependency1, out d1X1, out d1Y1, out d1X2, out d1Y2);
962 962
            FindRangeWithOutLineString2d(dependency2, out d2X1, out d2Y1, out d2X2, out d2Y2);
963 963
            if (dependency3 != null)
964
                FindRangeWithOutLineString2d(dependency3, out d3X1, out d3Y1, out d3X2, out d3Y2);
964
                FindRangeWithOutLineString2dAndTextBox(dependency3, out d3X1, out d3Y1, out d3X2, out d3Y2);
965 965

  
966 966
            switch (degree)
967 967
            {
......
1042 1042
            }
1043 1043

  
1044 1044
        }
1045

  
1046
        private void FindRangeWithOutLineString2dAndTextBox(DependencyObject dependency, out double x1, out double y1, out double x2, out double y2)
1047
        {
1048
            x1 = double.MaxValue;
1049
            y1 = double.MaxValue;
1050
            x2 = double.MinValue;
1051
            y2 = double.MinValue;
1052
            foreach (DrawingObjectBase item in dependency.DrawingObjects)
1053
            {
1054
                if (item.GetType() != typeof(LineString2d) && item.GetType() != typeof(Ingr.RAD2D.TextBox))
1055
                {
1056
                    double minX, minY, maxX, maxY;
1057
                    item.Range(out minX, out minY, out maxX, out maxY);
1058
                    if (x1 > minX)
1059
                        x1 = minX;
1060
                    if (y1 > minY)
1061
                        y1 = minY;
1062
                    if (x2 < maxX)
1063
                        x2 = maxX;
1064
                    if (y2 < maxY)
1065
                        y2 = maxY;
1066
                }
1067
            }
1068

  
1069
        }
1045 1070
        #endregion
1046 1071
        #region Hot Key
1047 1072
        [System.Runtime.InteropServices.DllImport("user32.dll")]

내보내기 Unified diff

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