| 170 | } |
| 171 | |
| 172 | void 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 | |
| 186 | void mitk::nnInteractive::PointInteractor::OnDisable() |
| 187 | { |
nothing calls this directly
no test coverage detected