Added functionality to update RelPerm and PVT plots when time step changes.

Also added line marker for current cell's pressure in PVT plots.
This commit is contained in:
sigurdp
2017-11-29 13:41:13 +01:00
parent 7f02791aba
commit 7c9a14f78c
14 changed files with 725 additions and 226 deletions

View File

@@ -39,6 +39,7 @@
#include "RiuMainWindow.h"
#include "RiuViewer.h"
#include "RiuTimeStepChangedHandler.h"
#include "cafDisplayCoordTransform.h"
#include "cafFrameAnimationControl.h"
@@ -354,9 +355,16 @@ void RimView::setCurrentTimeStepAndUpdate(int frameIndex)
//--------------------------------------------------------------------------------------------------
void RimView::setCurrentTimeStep(int frameIndex)
{
const int oldTimeStep = m_currentTimeStep;
m_currentTimeStep = frameIndex;
clampCurrentTimestep();
if (m_currentTimeStep != oldTimeStep)
{
RiuTimeStepChangedHandler::instance()->handleTimeStepChanged(this);
}
this->hasUserRequestedAnimation = true;
if (this->propertyFilterCollection() && this->propertyFilterCollection()->hasActiveDynamicFilters())
{