mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2167 statistics dialog. Include statistics snapshot under 'Snapshot all views to file'
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RimViewWindow.h"
|
||||
#include "RimView.h"
|
||||
#include "RimCase.h"
|
||||
#include "Rim3dOverlayInfoConfig.h"
|
||||
|
||||
#include "RicSnapshotViewToFileFeature.h"
|
||||
#include "RicSnapshotFilenameGenerator.h"
|
||||
@@ -120,6 +121,11 @@ void RicSnapshotAllViewsToFileFeature::exportSnapshotOfAllViewsIntoFolder(QStrin
|
||||
QString absoluteFileName = caf::Utils::constructFullFileName(absSnapshotPath, fileName, ".png");
|
||||
|
||||
RicSnapshotViewToFileFeature::saveSnapshotAs(absoluteFileName, riv);
|
||||
|
||||
// Statistics dialog
|
||||
QImage img = riv->overlayInfoConfig()->statisticsDialogScreenShotImage();
|
||||
absoluteFileName = caf::Utils::constructFullFileName(absSnapshotPath, fileName + "_Statistics", ".png");
|
||||
RicSnapshotViewToFileFeature::saveSnapshotAs(absoluteFileName, img);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user