| 55 | } |
| 56 | |
| 57 | void mitk::Dispatcher::AddDataInteractor(const DataNode *dataNode) |
| 58 | { |
| 59 | RemoveDataInteractor(dataNode); |
| 60 | RemoveOrphanedInteractors(); |
| 61 | |
| 62 | auto dataInteractor = dataNode->GetDataInteractor().GetPointer(); |
| 63 | |
| 64 | if (dataInteractor != nullptr) |
| 65 | m_Interactors.push_back(dataInteractor); |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Note: One DataInteractor can only have one DataNode and vice versa, |
no test coverage detected