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

Method RegisterClient

Modules/Segmentation/src/Controllers/mitkToolManager.cpp:542–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542void 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
556void mitk::ToolManager::UnregisterClient()
557{

Callers 3

SetToolManagerMethod · 0.80
setEnabledMethod · 0.80
RunTestWithParametersMethod · 0.80

Calls 2

GetModuleContextFunction · 0.85
ActivatedMethod · 0.45

Tested by 1

RunTestWithParametersMethod · 0.64