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);