프로젝트

일반

사용자정보

개정판 f1a7faf9

IDf1a7faf9b7927c4466b6d21bfc0eedf99827e6d4
상위 8829d0c5
하위 b48f882e

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

dev issue #1163 : Priority Symbol 순서 수정 및 Bug fix

Change-Id: I84b52947111e3dd32d0e12ba4eb8b2ef7773f95c

차이점 보기:

DTI_PID/SPPIDConverter/SPPIDModel/SPPID_Document.cs
303 303
                    Line connLine = connectedItem as Line;
304 304

  
305 305
                    Connector otherConnector = connLine.CONNECTORS.Find(x => x.CONNECTEDITEM != symbol.UID);
306

  
306
                    int connectorIndex = connLine.CONNECTORS.IndexOf(otherConnector);
307 307
                    double lineX = double.NaN;
308 308
                    double lineY = double.NaN;
309 309
                    // Symbol의 Connector ScenePoint
310
                    SPPIDUtil.ConvertPointBystring(otherConnector.SCENECONNECTPOINT, ref lineX, ref lineY);
310
                    SPPIDUtil.ConvertPointBystring(connectorIndex == 0 ? connLine.STARTPOINT : connLine.ENDPOINT, ref lineX, ref lineY);
311 311
                    double symbolX = double.NaN;
312 312
                    double symbolY = double.NaN;
313 313
                    SPPIDUtil.ConvertPointBystring(symbol.ORIGINALPOINT, ref symbolX, ref symbolY);
......
325 325
            }
326 326
        }
327 327

  
328
        private void FindGroupByLineAndSlopeType(Line Line, List<object> group, SlopeType searchType)
328
        private void FindGroupByLineAndSlopeType(Line line, List<object> group, SlopeType searchType)
329 329
        {
330
            foreach (var connector in Line.CONNECTORS)
330
            foreach (var connector in line.CONNECTORS)
331 331
            {
332 332
                object connectedItem = SPPIDUtil.FindObjectByUID(this, connector.CONNECTEDITEM);
333 333
                if (connectedItem != null && connectedItem.GetType() == typeof(Symbol))
334 334
                {
335 335
                    Symbol connSymbol = connectedItem as Symbol;
336 336

  
337
                    Connector otherConnector = Line.CONNECTORS.Find(x => x.CONNECTEDITEM != connSymbol.UID);
338

  
337
                    Connector otherConnector = line.CONNECTORS.Find(x => x.CONNECTEDITEM != connSymbol.UID);
338
                    int connectorIndex = line.CONNECTORS.IndexOf(otherConnector);
339 339
                    double lineX = double.NaN;
340 340
                    double lineY = double.NaN;
341 341
                    // Line의 Connector ScenePoint
342
                    SPPIDUtil.ConvertPointBystring(otherConnector.SCENECONNECTPOINT, ref lineX, ref lineY);
342
                    SPPIDUtil.ConvertPointBystring(connectorIndex == 0 ? line.STARTPOINT : line.ENDPOINT, ref lineX, ref lineY);
343 343
                    double symbolX = double.NaN;
344 344
                    double symbolY = double.NaN;
345 345
                    SPPIDUtil.ConvertPointBystring(connSymbol.ORIGINALPOINT, ref symbolX, ref symbolY);

내보내기 Unified diff

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