Skip to content
Snippets Groups Projects
Commit db89145e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

submaps contain hierarchy structure overview

parent 5afb3d0c
No related branches found
No related tags found
1 merge request!231Resolve "No hierarchical masking in submaps"
Pipeline #
......@@ -537,7 +537,7 @@ public class ProjectService implements IProjectService {
}
updateProjectStatus(originalModel.getProject(), ProjectStatus.GENERATING_IMAGES, 0, params);
List<Model> models = new ArrayList<Model>();
List<Model> models = new ArrayList<>();
models.add(originalModel);
int size = originalModel.getLayouts().size();
for (ModelSubmodelConnection connection : originalModel.getSubmodelConnections()) {
......@@ -558,7 +558,6 @@ public class ProjectService implements IProjectService {
IProgressUpdater.MAX_PROGRESS * imgCounter / finalSize + progress / finalSize, params);
}
};
generateImagesForBuiltInOverlay(params, model, layout, updater);
}
counter++;
......@@ -578,7 +577,6 @@ public class ProjectService implements IProjectService {
output = new CopyCommand(model).execute();
new ClearColorModelCommand(output).execute();
}
MapGeneratorParams imgParams = generator.new MapGeneratorParams().directory(directory).sbgn(params.isSbgnFormat())
.nested(layout.isHierarchicalView()).updater(updater);
imgParams.model(output);
......@@ -911,6 +909,10 @@ public class ProjectService implements IProjectService {
if (!params.isSemanticZoom()) {
new CreateHierarchyCommand(originalModel, generator.computeZoomLevels(originalModel),
generator.computeZoomFactor(originalModel)).execute();
for (Model model : originalModel.getSubmodels()) {
new CreateHierarchyCommand(model, generator.computeZoomLevels(model), generator.computeZoomFactor(model))
.execute();
}
}
addUsers(project, params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment