| | |
| | | * @Description: 组装id |
| | | */ |
| | | public static List<String> assembleId(List<MonitorPointPosition> checkPoints) { |
| | | List<String> ids2d = new ArrayList<String>(); |
| | | List<String> ids2d = new ArrayList<>(); |
| | | for (MonitorPointPosition point : checkPoints) { |
| | | ids2d.add(point.getX() + "_" + point.getY() + "_" + point.getZ()); |
| | | // ids2d.add(point.getX() + "_" + point.getY() + "_" + point.getZ()); |
| | | ids2d.add(point.getX() + "_" + point.getY() + "_" + 0); |
| | | } |
| | | return ids2d; |
| | | } |
| | |
| | | * @backup 强制将层级改为 0 |
| | | */ |
| | | public static List<String> aloneCrosswiseExtend(MonitorPointPosition checkPoint, int range) { |
| | | List<String> ids = new ArrayList<String>(); |
| | | List<String> ids = new ArrayList<>(); |
| | | Integer x = checkPoint.getX(); |
| | | Integer y = checkPoint.getY(); |
| | | for (int i = x - range / 2; i <= x + range / 2; i++) { |
| | |
| | | } |
| | | |
| | | public static List<String> temporary(MonitorPointPosition point, int range) { |
| | | List<String> ids3d = new ArrayList<String>(); |
| | | List<String> ids3d = new ArrayList<>(); |
| | | Integer x = point.getX(); |
| | | Integer y = point.getY(); |
| | | Integer z = point.getZ(); |