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

Method DisableInteractor

Modules/PythonSegmentation/src/mitknnInteractiveTool.cpp:323–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void mitk::nnInteractiveTool::DisableInteractor(std::optional<InteractionType> interactionType)
324{
325 if (interactionType.has_value())
326 {
327 // Disable a specific interactor.
328 m_Impl->Interactors[interactionType.value()]->Disable();
329 }
330 else
331 {
332 // Disable the currently enabled interator, if any.
333 for (auto& [interactionType, interactor] : m_Impl->Interactors)
334 {
335 if (interactor->IsEnabled())
336 {
337 interactor->Disable();
338 break;
339 }
340 }
341 }
342}
343
344void mitk::nnInteractiveTool::ResetInteractions()
345{

Callers 5

DeactivatedMethod · 0.95
EnableInteractorMethod · 0.95
AbortSessionMethod · 0.95
OnTimePointChangedMethod · 0.95
OnInteractorToggledMethod · 0.80

Calls 3

DisableMethod · 0.45
valueMethod · 0.45
IsEnabledMethod · 0.45

Tested by

no test coverage detected