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

Method UnregisterClient

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

Source from the content-addressed store, hash-verified

554}
555
556void mitk::ToolManager::UnregisterClient()
557{
558 if (m_RegisteredClients < 1)
559 return;
560
561 --m_RegisteredClients;
562 if (m_RegisteredClients < 1)
563 {
564 if (m_ActiveTool)
565 {
566 m_ActiveTool->Deactivated();
567 m_ActiveToolRegistration.Unregister();
568 }
569 }
570}
571
572int mitk::ToolManager::GetToolID(const Tool *tool)
573{

Callers 2

SetToolManagerMethod · 0.80
setEnabledMethod · 0.80

Calls 2

DeactivatedMethod · 0.45
UnregisterMethod · 0.45

Tested by

no test coverage detected