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

Method OnEnable

Modules/PythonSegmentation/src/mitknnInteractivePointInteractor.cpp:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void mitk::nnInteractive::PointInteractor::OnEnable()
173{
174 // Create a point set for the current prompt type if it doesn't already exist.
175 m_Impl->CreatePointSetNode();
176
177 // Enable the actual interactor for the appropriate point set and restrict
178 // points to the bounds of the reference image.
179 auto referenceGeometry = this->GetToolManager()->GetReferenceData(0)->GetData()->GetGeometry();
180
181 m_Impl->Interactor->SetBounds(referenceGeometry);
182 m_Impl->Interactor->SetDataNode(m_Impl->PointSetNodes.at(this->GetCurrentPromptType()));
183 m_Impl->Interactor->EnableInteraction(true);
184}
185
186void mitk::nnInteractive::PointInteractor::OnDisable()
187{

Callers

nothing calls this directly

Calls 9

CreatePointSetNodeMethod · 0.80
GetGeometryMethod · 0.80
atMethod · 0.80
GetCurrentPromptTypeMethod · 0.80
GetDataMethod · 0.45
GetReferenceDataMethod · 0.45
GetToolManagerMethod · 0.45
SetBoundsMethod · 0.45
SetDataNodeMethod · 0.45

Tested by

no test coverage detected