mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2553 Well CF Visualization: Add recompute of virtual conn factors
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimVirtualPerforationResults.h"
|
||||
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimLegendConfig.h"
|
||||
|
||||
@@ -35,7 +36,7 @@ RimVirtualPerforationResults::RimVirtualPerforationResults()
|
||||
CAF_PDM_InitObject(connectionFactorUiName, ":/CellResult.png", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_isActive, "ShowConnectionFactors", false, "", "", "", "");
|
||||
CAF_PDM_InitField(&m_geometryScaleFactor, "GeometryScaleFactor", 0.2, "Geometry Scale Factor", "", "", "");
|
||||
CAF_PDM_InitField(&m_geometryScaleFactor, "GeometryScaleFactor", 1.0, "Geometry Scale Factor", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_legendConfig, "LegendDefinition", "Legend Definition", "", "", "");
|
||||
m_legendConfig.uiCapability()->setUiHidden(true);
|
||||
@@ -75,6 +76,19 @@ RimLegendConfig* RimVirtualPerforationResults::legendConfig() const
|
||||
return m_legendConfig();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimVirtualPerforationResults::loadData()
|
||||
{
|
||||
RimEclipseCase* eclipseCase = nullptr;
|
||||
this->firstAncestorOrThisOfType(eclipseCase);
|
||||
if (eclipseCase)
|
||||
{
|
||||
eclipseCase->computeAndGetVirtualPerforationTransmissibilities();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -85,6 +99,8 @@ void RimVirtualPerforationResults::fieldChangedByUi(const caf::PdmFieldHandle* c
|
||||
if (changedField == &m_isActive)
|
||||
{
|
||||
updateUiIconFromToggleField();
|
||||
|
||||
loadData();
|
||||
}
|
||||
|
||||
RimEclipseView* eclView = nullptr;
|
||||
@@ -124,7 +140,7 @@ void RimVirtualPerforationResults::defineUiOrdering(QString uiConfigName, caf::P
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimVirtualPerforationResults::initAfterRead()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user