프로젝트

일반

사용자정보

개정판 cf210438

IDcf21043833e36fa207265a878b011ba4f2bd8650
상위 a925672d
하위 c52c1783, c2b9f64e

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

dev issue #000 : add branched Line 판별 메소드 추가

Change-Id: Ibda182fd403affd6aeeef72054b2c2d7de4ffec9

차이점 보기:

DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs
502 502

  
503 503
        public static bool IsBranchLine(Line line)
504 504
        {
505
            Connector connector = line.CONNECTORS.Find(x => 
506
            x.ConnectedObject != null && 
507
            x.ConnectedObject.GetType() == typeof(Line) && 
505
            Connector connector = line.CONNECTORS.Find(x =>
506
            x.ConnectedObject != null &&
507
            x.ConnectedObject.GetType() == typeof(Line) &&
508 508
            IsBranchLine(line, x.ConnectedObject as Line));
509 509
            return connector != null ? true : false;
510 510
        }
511

  
512
        public static bool IsBranchedLine(Document document,Line line)
513
        {
514
            return document.LINES.Find(x => x.CONNECTORS.Find(y => y.CONNECTEDITEM == line.UID && IsBranchLine(x, y.ConnectedObject as Line)) != null) != null ? true : false;
515
        }
516

  
511 517
        public static void CalcOverlap(double[] range1, double[] range2, ref double x, ref double y, ref bool overlapX, ref bool overlapY)
512 518
        {
513 519
            if (range1[0] <= range2[2] && range1[2] >= range2[0])

내보내기 Unified diff

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