mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added ManagedViews and sync of camera, time step and cell result
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user