2017-11-29 13:41:13 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2017-11-29 13:41:13 +01:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2017-11-29 13:41:13 +01:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-11-29 13:41:13 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2026-02-19 10:59:18 +01:00
|
|
|
#include "RiaPorosityModel.h"
|
2025-02-25 14:58:33 +01:00
|
|
|
#include "RiuPlotUpdater.h"
|
2017-11-29 13:41:13 +01:00
|
|
|
|
|
|
|
|
class RiuRelativePermeabilityPlotPanel;
|
|
|
|
|
class RigEclipseCaseData;
|
2019-11-27 16:03:21 +01:00
|
|
|
class RimEclipseResultDefinition;
|
2017-11-29 13:41:13 +01:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//==================================================================================================
|
2025-02-25 14:58:33 +01:00
|
|
|
class RiuRelativePermeabilityPlotUpdater : public RiuPlotUpdater
|
2017-11-29 13:41:13 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RiuRelativePermeabilityPlotUpdater( RiuRelativePermeabilityPlotPanel* targetPlotPanel );
|
2017-11-29 13:41:13 +01:00
|
|
|
|
2026-02-19 10:59:18 +01:00
|
|
|
static QString constructCellReferenceText( const RigEclipseCaseData* eclipseCaseData,
|
|
|
|
|
size_t gridIndex,
|
|
|
|
|
size_t gridLocalCellIndex,
|
|
|
|
|
RiaDefines::PorosityModelType porosityModel );
|
2017-11-29 13:41:13 +01:00
|
|
|
|
2025-02-25 14:58:33 +01:00
|
|
|
protected:
|
|
|
|
|
void clearPlot() override;
|
|
|
|
|
QWidget* plotPanel() override;
|
2019-11-27 16:03:21 +01:00
|
|
|
|
2025-02-25 14:58:33 +01:00
|
|
|
bool queryDataAndUpdatePlot( const RimEclipseResultDefinition* eclipseResDef,
|
|
|
|
|
size_t timeStepIndex,
|
|
|
|
|
size_t gridIndex,
|
|
|
|
|
size_t gridLocalCellIndex ) override;
|
2017-11-29 13:41:13 +01:00
|
|
|
|
|
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
QPointer<RiuRelativePermeabilityPlotPanel> m_targetPlotPanel;
|
2017-11-29 13:41:13 +01:00
|
|
|
};
|