MCPcopy Create free account
hub / github.com/MITK/MITK / ~ToolManager

Method ~ToolManager

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

Source from the content-addressed store, hash-verified

69}
70
71mitk::ToolManager::~ToolManager()
72{
73 for (auto dataIter = m_WorkingData.begin(); dataIter != m_WorkingData.end(); ++dataIter)
74 (*dataIter)->RemoveObserver(m_WorkingDataObserverTags[(*dataIter)]);
75
76 if (this->GetDataStorage() != nullptr)
77 this->GetDataStorage()->RemoveNodeEvent.RemoveListener(
78 mitk::MessageDelegate1<ToolManager, const mitk::DataNode *>(this, &ToolManager::OnNodeRemoved));
79
80 if (m_ActiveTool)
81 {
82 m_ActiveTool->Deactivated();
83 m_ActiveToolRegistration.Unregister();
84
85 m_ActiveTool = nullptr;
86 m_ActiveToolID = -1; // no tool active
87
88 ActiveToolChanged.Send();
89 }
90 for (auto observerTagMapIter = m_ReferenceDataObserverTags.begin();
91 observerTagMapIter != m_ReferenceDataObserverTags.end();
92 ++observerTagMapIter)
93 {
94 observerTagMapIter->first->RemoveObserver(observerTagMapIter->second);
95 }
96 this->StopTimeObservation();
97}
98
99void mitk::ToolManager::InitializeTools()
100{

Callers

nothing calls this directly

Calls 8

GetDataStorageMethod · 0.95
StopTimeObservationMethod · 0.95
beginMethod · 0.45
endMethod · 0.45
RemoveListenerMethod · 0.45
DeactivatedMethod · 0.45
UnregisterMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected