| 304 | } |
| 305 | |
| 306 | void mitk::nnInteractiveTool::EnableInteractor(InteractionType nextInteractionType, PromptType promptType) |
| 307 | { |
| 308 | // Disable any other interactor if enabled. |
| 309 | for (const auto& [interactionType, interactor] : m_Impl->Interactors) |
| 310 | { |
| 311 | if (interactionType != nextInteractionType && interactor->IsEnabled()) |
| 312 | { |
| 313 | this->DisableInteractor(interactionType); |
| 314 | break; |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | // Enable the requested interactor for the given prompt type. |
| 319 | m_Impl->Interactors[nextInteractionType]->Enable(promptType); |
| 320 | m_Impl->PromptType = promptType; |
| 321 | } |
| 322 | |
| 323 | void mitk::nnInteractiveTool::DisableInteractor(std::optional<InteractionType> interactionType) |
| 324 | { |
no test coverage detected