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

Method InsertMapping

Modules/Core/src/Interactions/mitkEventConfig.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void mitk::EventConfigPrivate::InsertMapping(const EventMapping &mapping)
125{
126 for (auto it = m_EventList.begin(); it != m_EventList.end(); ++it)
127 {
128 if (*(it->interactionEvent) == *mapping.interactionEvent)
129 {
130 // MITK_INFO<< "Configuration overwritten:" << (*it).variantName;
131 m_EventList.erase(it);
132 break;
133 }
134 }
135 m_EventList.push_back(mapping);
136}
137
138void mitk::EventConfigPrivate::CopyMapping(const EventListType eventList)
139{

Callers 2

EndElementMethod · 0.80
EventConfigMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected