| | |
| | | package com.flightfeather.uav.lightshare.service |
| | | |
| | | import com.flightfeather.uav.domain.entity.GridCell |
| | | import com.flightfeather.uav.domain.entity.GridDataDetail |
| | | |
| | | /** |
| | | * |
| | |
| | | */ |
| | | fun calGridVertex(groupId: Int): List<GridCell?> |
| | | |
| | | fun splitGrid(groupId: Int): List<GridCell?> |
| | | /** |
| | | * 将网格组进行细分 |
| | | * @param groupId 网格组索引id |
| | | * @param scale 拆分的系数,例如 2,表示将原有网格按边长的 1/2 拆分成 2 * 2 的4个网格 |
| | | */ |
| | | fun splitGrid(groupId: Int, scale: Int): List<GridCell?> |
| | | |
| | | /** |
| | | * 将原始网格的数据映射填充至细分网格 |
| | | * @param groupId 细分网格组索引id |
| | | * @param dataId 数据索引id |
| | | */ |
| | | fun splitData(groupId: Int, dataId:Int): List<GridDataDetail?> |
| | | } |