| 452 | } |
| 453 | |
| 454 | void mitk::nnInteractiveTool::SetAutoZoom(bool autoZoom) |
| 455 | { |
| 456 | m_Impl->AutoZoom = autoZoom; |
| 457 | |
| 458 | if (this->IsSessionRunning()) |
| 459 | { |
| 460 | try |
| 461 | { |
| 462 | m_Impl->SetAutoZoom(); |
| 463 | } |
| 464 | catch (const Exception& e) |
| 465 | { |
| 466 | // Non-critical: if the connection dropped, the loss is surfaced on the |
| 467 | // next interaction, or by the heartbeat timer if one is running. |
| 468 | if (!this->IsRemoteConnectionError(Description(e))) |
| 469 | throw; |
| 470 | |
| 471 | MITK_WARN << "nnInteractive: could not update auto-zoom on the remote server (connection lost)."; |
| 472 | } |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | bool mitk::nnInteractiveTool::GetAutoRefine() const |
| 477 | { |
no test coverage detected