8 contextMenuActions[
index] = std::move(action);
15 transformEndAction = std::make_optional(std::move(action));
23 auto iterator = contextMenuActions.find(
interaction.chosenContextMenuEntry());
25 if (iterator != contextMenuActions.end())
27 auto [
index, action] = *iterator;
34 if (transformEndAction.has_value())
36 transformEndAction.value()(
interaction.transformation());
44 observedLayers.erase(layer.
data_.name);
49 for (
auto& [name, observedLayer] : observedLayers)
59 auto layerIterator = observedLayers.find(
interaction.layer());
61 if (layerIterator != observedLayers.end())
63 auto& [name, layer] = *layerIterator;
65 auto observationIterator = layer.observations.find(
interaction.element());
67 if (observationIterator != layer.observations.end())
69 auto& [element, observation] = *observationIterator;