From cfe9d56e65e3d4c56cfb85efdf80bb1f7c27811b Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sat, 22 Apr 2023 13:48:02 +0200 Subject: [PATCH] getLayers() from a layerComposition --- src/LayerComposition.cpp | 3 +++ src/LayerComposition.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/LayerComposition.cpp b/src/LayerComposition.cpp index dac066f..0d360ba 100644 --- a/src/LayerComposition.cpp +++ b/src/LayerComposition.cpp @@ -167,6 +167,9 @@ void LayerComposition::removeLayer(const LayerID & id){ layers.erase(id); } +const unordered_map > & LayerComposition::getLayers(){ + return layers; +} shared_ptr LayerComposition::getLayer(const LayerID & layerID){ return layers[layerID]; } diff --git a/src/LayerComposition.h b/src/LayerComposition.h index 5841ad0..9c2d3a4 100644 --- a/src/LayerComposition.h +++ b/src/LayerComposition.h @@ -28,6 +28,7 @@ class LayerComposition { void findOrCreateNewMomForLayer(shared_ptr layer, ComboIdentifier idealMom); void removeLayer(const LayerID & id); // TODO: make bool, to catch nonexisting + const unordered_map > & getLayers(); shared_ptr getLayer(const LayerID & layerID); const unordered_map > & getAtlasLayerCombos() const; void setVFlip(bool vFlip);