개정판 cf520d0d
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