Added ManagedViews and sync of camera, time step and cell result

This commit is contained in:
Magne Sjaastad
2015-08-25 12:40:55 +02:00
parent 792793b6ed
commit f6ac177ff2
17 changed files with 580 additions and 23 deletions

View File

@@ -64,6 +64,8 @@
#include "RigFemPartCollection.h"
#include "RigFemPart.h"
#include "RigFemPartGrid.h"
#include "RimProject.h"
#include "RimManagedViewCollection.h"
using cvf::ManipulatorTrackball;
@@ -278,6 +280,12 @@ void RiuViewer::slotSetCurrentFrame(int frameIndex)
if (m_reservoirView) m_reservoirView->setCurrentTimeStep(frameIndex);
caf::Viewer::slotSetCurrentFrame(frameIndex);
if (m_reservoirView)
{
m_reservoirView->managedViewCollection()->updateTimeStep(frameIndex);
}
}
//--------------------------------------------------------------------------------------------------
@@ -489,3 +497,16 @@ void RiuViewer::updateNavigationPolicy()
break;
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuViewer::paintEvent(QPaintEvent* event)
{
caf::Viewer::paintEvent(event);
if (m_reservoirView)
{
m_reservoirView->managedViewCollection()->updateViewers(this);
}
}