#6422 Detailed Fluid Loss: hide curves when disabled.

This commit is contained in:
Kristian Bendiksen 2020-09-03 16:35:03 +02:00
parent 452d50df8f
commit 0415f25d0a

View File

@ -28,6 +28,7 @@
#include "RimFractureModelCurve.h"
#include "RimFractureModelPropertyCurve.h"
#include "RimLayerCurve.h"
#include "RimWellLogTrack.h"
#include "RigWellLogCurveData.h"
@ -90,6 +91,31 @@ void RimFractureModelPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrd
//--------------------------------------------------------------------------------------------------
void RimFractureModelPlot::onLoadDataAndUpdate()
{
// Enable and disable detailed fluid loss curves
if ( fractureModel() != nullptr )
{
std::vector<RiaDefines::CurveProperty> fluidLossCurves = {RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT,
RiaDefines::CurveProperty::IMMOBILE_FLUID_SATURATION};
bool detailedFluidLoss = fractureModel()->useDetailedFluidLoss();
for ( auto curveProperty : fluidLossCurves )
{
RimWellLogExtractionCurve* curve = findCurveByProperty( curveProperty );
if ( curve )
{
RimWellLogTrack* track = nullptr;
curve->firstAncestorOfType( track );
if ( track )
{
track->setShowWindow( detailedFluidLoss );
}
}
}
}
RimDepthTrackPlot::onLoadDataAndUpdate();
}