| 334 | } |
| 335 | |
| 336 | void QmitkPointListWidget::OnBtnAddPoint(bool checked) |
| 337 | { |
| 338 | if (m_PointSetNode.IsNotNull()) |
| 339 | { |
| 340 | if (checked) |
| 341 | { |
| 342 | m_DataInteractor = m_PointSetNode->GetDataInteractor(); |
| 343 | // If no data Interactor is present create a new one |
| 344 | if (m_DataInteractor.IsNull()) |
| 345 | { |
| 346 | // Create PointSetData Interactor |
| 347 | m_DataInteractor = mitk::PointSetDataInteractor::New(); |
| 348 | // Load the according state machine for regular point set interaction |
| 349 | m_DataInteractor->LoadStateMachine("PointSet.xml"); |
| 350 | // Set the configuration file that defines the triggers for the transitions |
| 351 | m_DataInteractor->SetEventConfig("PointSetConfig.xml"); |
| 352 | // set the DataNode (which already is added to the DataStorage |
| 353 | m_DataInteractor->SetDataNode(m_PointSetNode); |
| 354 | } |
| 355 | } |
| 356 | else |
| 357 | { |
| 358 | m_PointSetNode->SetDataInteractor(nullptr); |
| 359 | m_DataInteractor = nullptr; |
| 360 | } |
| 361 | emit PointListChanged(); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | void QmitkPointListWidget::OnBtnAddPointManually() |
| 366 | { |
nothing calls this directly
no test coverage detected