| 321 | } |
| 322 | |
| 323 | void 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 | |
| 344 | void mitk::nnInteractiveTool::ResetInteractions() |
| 345 | { |
no test coverage detected