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

Method FinishTool

Modules/Segmentation/src/Interactions/mitkLassoTool.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void mitk::LassoTool::FinishTool()
56{
57 auto contourInteractor = mitk::ContourModelInteractor::New();
58 contourInteractor->SetDataNode(m_ContourNode);
59 contourInteractor->LoadStateMachine("ContourModelModificationInteractor.xml", us::GetModuleContext()->GetModule());
60 contourInteractor->SetEventConfig("ContourModelModificationConfig.xml", us::GetModuleContext()->GetModule());
61 contourInteractor->SetRestrictedArea(this->m_CurrentRestrictedArea);
62
63 this->m_ContourInteractor = contourInteractor;
64 m_ContourNode->SetDataInteractor(m_ContourInteractor.GetPointer());
65}

Callers 1

OnFinishMethod · 0.45

Calls 9

GetModuleContextFunction · 0.85
LoadStateMachineMethod · 0.80
SetEventConfigMethod · 0.80
SetRestrictedAreaMethod · 0.80
SetDataInteractorMethod · 0.80
GetPointerMethod · 0.80
NewFunction · 0.50
SetDataNodeMethod · 0.45
GetModuleMethod · 0.45

Tested by

no test coverage detected