| 127 | } |
| 128 | |
| 129 | DataDescription EngineWorker::getSimulationData(IntVector2D const& rectUpperLeft, IntVector2D const& rectLowerRight) |
| 130 | { |
| 131 | EngineWorkerGuard access(this); |
| 132 | |
| 133 | auto dataTO = provideTO(); |
| 134 | _simulationCudaFacade->getSimulationData({rectUpperLeft.x, rectUpperLeft.y}, int2{rectLowerRight.x, rectLowerRight.y}, dataTO); |
| 135 | |
| 136 | DescriptionConverter converter(_settings.simulationParameters); |
| 137 | auto result = converter.convertTOtoDataDescription(dataTO); |
| 138 | return result; |
| 139 | } |
| 140 | |
| 141 | ClusteredDataDescription EngineWorker::getSelectedClusteredSimulationData(bool includeClusters) |
| 142 | { |