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

Method OnEnable

Modules/PythonSegmentation/src/mitknnInteractiveLassoInteractor.cpp:520–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520void mitk::nnInteractive::LassoInteractor::OnEnable()
521{
522 auto toolManager = this->GetToolManager();
523 auto referenceNode = toolManager->GetReferenceData(0);
524 if (referenceNode == nullptr)
525 return;
526
527 const auto promptType = this->GetCurrentPromptType();
528 const auto& color = GetColor(promptType, ColorIntensity::Vibrant);
529
530 m_Impl->Interactor->SetDataStorage(this->GetDataStorage());
531 m_Impl->Interactor->SetReferenceNode(referenceNode);
532 m_Impl->Interactor->SetReferenceImage(referenceNode->GetDataAs<Image>());
533 m_Impl->Interactor->SetContourColor(color);
534}
535
536void mitk::nnInteractive::LassoInteractor::OnDisable()
537{

Callers

nothing calls this directly

Calls 8

GetCurrentPromptTypeMethod · 0.80
SetContourColorMethod · 0.80
GetToolManagerMethod · 0.45
GetReferenceDataMethod · 0.45
SetDataStorageMethod · 0.45
GetDataStorageMethod · 0.45
SetReferenceNodeMethod · 0.45
SetReferenceImageMethod · 0.45

Tested by

no test coverage detected