| 530 | } |
| 531 | |
| 532 | void mitk::nnInteractive::ScribbleInteractor::OnEnable() |
| 533 | { |
| 534 | auto toolManager = this->GetToolManager(); |
| 535 | auto referenceNode = toolManager->GetReferenceData(0); |
| 536 | if (referenceNode == nullptr) |
| 537 | return; |
| 538 | |
| 539 | const auto promptType = this->GetCurrentPromptType(); |
| 540 | const auto& color = GetColor(promptType, ColorIntensity::Vibrant); |
| 541 | |
| 542 | m_Impl->Interactor->SetDataStorage(this->GetDataStorage()); |
| 543 | m_Impl->Interactor->SetReferenceNode(referenceNode); |
| 544 | m_Impl->Interactor->SetReferenceImage(referenceNode->GetDataAs<Image>()); |
| 545 | m_Impl->Interactor->SetBrushColor(color); |
| 546 | m_Impl->Interactor->SetBrushSize(3); |
| 547 | } |
| 548 | |
| 549 | void mitk::nnInteractive::ScribbleInteractor::OnDisable() |
| 550 | { |
nothing calls this directly
no test coverage detected