개정판 783f8357
dev issue #1191 : segment 위치 수정
Change-Id: I8584bf53cf5898814262d2842cbdde3ee2acf7d9
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
2747 | 2747 |
Symbol connSymbol = connObj as Symbol; |
2748 | 2748 |
|
2749 | 2749 |
double zeroLengthMove = GridSetting.GetInstance().Length * 3; |
2750 |
double lineMove = GridSetting.GetInstance().Length; |
|
2750 |
double lineMove = GridSetting.GetInstance().Length * 3;
|
|
2751 | 2751 |
if (Convert.ToBoolean(targetConnector.get_IsZeroLength())) |
2752 | 2752 |
{ |
2753 | 2753 |
result = GetConnectorVertices(targetConnector)[0]; |
... | ... | |
2801 | 2801 |
result = new double[] { result[0], result[1] - lineMove }; |
2802 | 2802 |
if (targetLine.CONNECTORS[0].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_X < targetLine.SPPID.END_X) |
2803 | 2803 |
{ |
2804 |
result = new double[] { result[0] + lineMove, result[1] };
|
|
2804 |
result = new double[] { result[0] - lineMove, result[1] };
|
|
2805 | 2805 |
} |
2806 | 2806 |
else if (targetLine.CONNECTORS[0].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_X > targetLine.SPPID.END_X) |
2807 | 2807 |
{ |
2808 |
result = new double[] { result[0] - lineMove, result[1] };
|
|
2808 |
result = new double[] { result[0] + lineMove, result[1] };
|
|
2809 | 2809 |
} |
2810 | 2810 |
else if (targetLine.CONNECTORS[1].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_X < targetLine.SPPID.END_X) |
2811 | 2811 |
{ |
2812 |
result = new double[] { result[0] - lineMove, result[1] };
|
|
2812 |
result = new double[] { result[0] + lineMove, result[1] };
|
|
2813 | 2813 |
} |
2814 | 2814 |
else if (targetLine.CONNECTORS[1].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_X > targetLine.SPPID.END_X) |
2815 | 2815 |
{ |
2816 |
result = new double[] { result[0] + lineMove, result[1] };
|
|
2816 |
result = new double[] { result[0] - lineMove, result[1] };
|
|
2817 | 2817 |
} |
2818 | 2818 |
} |
2819 | 2819 |
else if (targetLine.SlopeType == SlopeType.VERTICAL) |
... | ... | |
2821 | 2821 |
result = new double[] { result[0] - lineMove, result[1] }; |
2822 | 2822 |
if (targetLine.CONNECTORS[0].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_Y < targetLine.SPPID.END_Y) |
2823 | 2823 |
{ |
2824 |
result = new double[] { result[0], result[1] + lineMove };
|
|
2824 |
result = new double[] { result[0], result[1] - lineMove };
|
|
2825 | 2825 |
} |
2826 | 2826 |
else if (targetLine.CONNECTORS[0].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_Y > targetLine.SPPID.END_Y) |
2827 | 2827 |
{ |
2828 |
result = new double[] { result[0], result[1] - lineMove };
|
|
2828 |
result = new double[] { result[0], result[1] + lineMove };
|
|
2829 | 2829 |
} |
2830 | 2830 |
else if (targetLine.CONNECTORS[1].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_Y < targetLine.SPPID.END_Y) |
2831 | 2831 |
{ |
2832 |
result = new double[] { result[0], result[1] - lineMove };
|
|
2832 |
result = new double[] { result[0], result[1] + lineMove };
|
|
2833 | 2833 |
} |
2834 | 2834 |
else if (targetLine.CONNECTORS[1].CONNECTEDITEM == connLine.UID && targetLine.SPPID.START_Y > targetLine.SPPID.END_Y) |
2835 | 2835 |
{ |
2836 |
result = new double[] { result[0], result[1] + lineMove };
|
|
2836 |
result = new double[] { result[0], result[1] - lineMove };
|
|
2837 | 2837 |
} |
2838 | 2838 |
} |
2839 | 2839 |
|
내보내기 Unified diff