| 540 | } |
| 541 | |
| 542 | void mitk::ToolManager::RegisterClient() |
| 543 | { |
| 544 | if (m_RegisteredClients < 1) |
| 545 | { |
| 546 | if (m_ActiveTool) |
| 547 | { |
| 548 | m_ActiveTool->Activated(); |
| 549 | m_ActiveToolRegistration = |
| 550 | us::GetModuleContext()->RegisterService<InteractionEventObserver>(m_ActiveTool, us::ServiceProperties()); |
| 551 | } |
| 552 | } |
| 553 | ++m_RegisteredClients; |
| 554 | } |
| 555 | |
| 556 | void mitk::ToolManager::UnregisterClient() |
| 557 | { |