| 45 | } |
| 46 | |
| 47 | void EngineWorker::tryDrawVectorGraphics( |
| 48 | RealVector2D const& rectUpperLeft, |
| 49 | RealVector2D const& rectLowerRight, |
| 50 | IntVector2D const& imageSize, |
| 51 | double zoom) |
| 52 | { |
| 53 | EngineWorkerGuard access(this, FrameTimeout); |
| 54 | |
| 55 | if (!access.isTimeout()) { |
| 56 | registerImageResource(); |
| 57 | _simulationCudaFacade->drawVectorGraphics( |
| 58 | {rectUpperLeft.x, rectUpperLeft.y}, {rectLowerRight.x, rectLowerRight.y}, _cudaResource, {imageSize.x, imageSize.y}, zoom); |
| 59 | syncSimulationWithRenderingIfDesired(); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | std::optional<OverlayDescription> EngineWorker::tryDrawVectorGraphicsAndReturnOverlay( |
| 64 | RealVector2D const& rectUpperLeft, |
no test coverage detected