개정판 6b298450
dev issue #000 : text, note modeling && Branch line bug fix
Change-Id: Id6292a903cfe144a0f35839a74fc769feaff8849
DTI_PID/SPPIDConverter/Model/SPPID_Document.cs | ||
---|---|---|
99 | 99 |
item.SPPID.ORIGINAL_X = x; |
100 | 100 |
item.SPPID.ORIGINAL_Y = y; |
101 | 101 |
} |
102 |
|
|
103 |
foreach (var item in TEXTINFOS) |
|
104 |
{ |
|
105 |
if (item.SPPID == null) |
|
106 |
item.SPPID = new SPPIDSymbolInfo(); |
|
107 |
double x = double.NaN; |
|
108 |
double y = double.NaN; |
|
109 |
SPPIDUtil.ConvertPointBystring(item.LOCATION, ref x, ref y); |
|
110 |
SPPIDUtil.ConvertSPPIDPoint(ref x, ref y, SIZE_WIDTH, SIZE_HEIGHT, testX, testY); |
|
111 |
item.SPPID.ORIGINAL_X = x; |
|
112 |
item.SPPID.ORIGINAL_Y = y; |
|
113 |
} |
|
114 |
|
|
115 |
foreach (var item in NOTES) |
|
116 |
{ |
|
117 |
if (item.SPPID == null) |
|
118 |
item.SPPID = new SPPIDSymbolInfo(); |
|
119 |
double x = double.NaN; |
|
120 |
double y = double.NaN; |
|
121 |
SPPIDUtil.ConvertPointBystring(item.LOCATION, ref x, ref y); |
|
122 |
SPPIDUtil.ConvertSPPIDPoint(ref x, ref y, SIZE_WIDTH, SIZE_HEIGHT, testX, testY); |
|
123 |
item.SPPID.ORIGINAL_X = x; |
|
124 |
item.SPPID.ORIGINAL_Y = y; |
|
125 |
} |
|
102 | 126 |
} |
103 | 127 |
|
104 | 128 |
public bool SetSPPIDMapping() |
... | ... | |
143 | 167 |
return false; |
144 | 168 |
} |
145 | 169 |
|
170 |
ETCSetting etc = ETCSetting.GetInstance(); |
|
171 |
foreach (var item in NOTES) |
|
172 |
{ |
|
173 |
item.SPPID.MAPPINGNAME = etc.NoteSymbolPath; |
|
174 |
if (string.IsNullOrEmpty(item.SPPID.MAPPINGNAME)) |
|
175 |
return false; |
|
176 |
} |
|
177 |
|
|
178 |
foreach (var item in TEXTINFOS) |
|
179 |
{ |
|
180 |
item.SPPID.MAPPINGNAME = etc.TextSymbolPath; |
|
181 |
if (string.IsNullOrEmpty(item.SPPID.MAPPINGNAME)) |
|
182 |
return false; |
|
183 |
} |
|
146 | 184 |
return true; |
147 | 185 |
} |
148 | 186 |
|
내보내기 Unified diff