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