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

Method InitActions

Modules/Core/src/Interactions/mitkDisplayActionEventHandler.cpp:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void mitk::DisplayActionEventHandler::InitActions(std::string prefixFilter /* = "" */)
91{
92 auto observableBroadcast = m_ObservableBroadcast.Lock();
93
94 if (observableBroadcast.IsNull())
95 {
96 mitkThrow() << "No display action event broadcast class set to observe. Use 'SetObservableBroadcast' before initializing actions.";
97 }
98
99 // remove all current display action events as observer
100 auto allObserverTags = GetAllObserverTags();
101 for (const auto& tag : allObserverTags)
102 {
103 observableBroadcast->RemoveObserver(tag);
104 }
105 m_ObserverTags.clear();
106
107 InitActionsImpl(prefixFilter);
108}
109
110void mitk::DisplayActionEventHandler::InitActionsImpl(const std::string&)
111{

Callers 3

InitializeMultiWidgetMethod · 0.80
InitializeMultiWidgetMethod · 0.80
SynchronizeMethod · 0.80

Calls 3

LockMethod · 0.45
IsNullMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected