#1018 Force update of display model for scheduled updates before taking snapshot

This commit is contained in:
Magne Sjaastad 2016-12-22 08:44:36 +01:00
parent 8ff4b3d4f9
commit ebf5b01234
2 changed files with 9 additions and 1 deletions

View File

@ -212,9 +212,14 @@ private:
private slots:
void slotWorkerProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
void slotUpdateScheduledDisplayModels();
// Friend classes required to have access to slotUpdateScheduledDisplayModels
// As snapshots are produced fast in sequence, the feature must have access to force redraw
// of scheduled redraws
friend class RimView;
friend class RicExportMultipleSnapshotsFeature;
private:
caf::PdmPointer<RimView> m_activeReservoirView;
caf::PdmPointer<RimWellLogPlot> m_activeWellLogPlot;

View File

@ -260,6 +260,9 @@ QImage RimView::snapshotWindowContent()
{
if (m_viewer)
{
// Force update of scheduled display models before snapshotting
RiaApplication::instance()->slotUpdateScheduledDisplayModels();
m_viewer->repaint();
return m_viewer->snapshotImage();