MCPcopy Create free account
hub / github.com/MITK/MITK / SetAutoZoom

Method SetAutoZoom

Modules/PythonSegmentation/src/mitknnInteractiveTool.cpp:454–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void 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
476bool mitk::nnInteractiveTool::GetAutoRefine() const
477{

Callers 2

ConstructLocalSessionMethod · 0.95

Calls 4

IsSessionRunningMethod · 0.95
DescriptionFunction · 0.85
ExecuteSessionMethod · 0.80

Tested by

no test coverage detected