#1980 PLT Plot: Add argument for isExtractioncurve in setValuesWithTVD

This commit is contained in:
Rebecca Cox 2017-10-12 12:43:35 +02:00
parent b8245c310c
commit e3666a21fe
2 changed files with 5 additions and 4 deletions

View File

@ -379,7 +379,7 @@ void RimWellLogExtractionCurve::onLoadDataAndUpdate(bool updateParentPlot)
}
else
{
m_curveData->setValuesWithTVD(values, measuredDepthValues, tvDepthValues, depthUnit);
m_curveData->setValuesWithTVD(values, measuredDepthValues, tvDepthValues, depthUnit, true);
}
}

View File

@ -72,7 +72,8 @@ void RigWellLogCurveData::setValuesAndMD(const std::vector<double>& xValues,
void RigWellLogCurveData::setValuesWithTVD(const std::vector<double>& xValues,
const std::vector<double>& measuredDepths,
const std::vector<double>& tvDepths,
RiaDefines::DepthUnitType depthUnit)
RiaDefines::DepthUnitType depthUnit,
bool isExtractionCurve)
{
CVF_ASSERT(xValues.size() == measuredDepths.size());
@ -82,7 +83,7 @@ void RigWellLogCurveData::setValuesWithTVD(const std::vector<double>& xValues,
m_depthUnit = depthUnit;
// Always use value filtering when TVD is present
m_isExtractionCurve = true;
m_isExtractionCurve = isExtractionCurve;
calculateIntervalsOfContinousValidValues();
}
@ -235,7 +236,7 @@ cvf::ref<RigWellLogCurveData> RigWellLogCurveData::calculateResampledCurveData(d
if (isTvDepthsAvailable)
{
reSampledData->setValuesWithTVD(xValues, measuredDepths, tvDepths, m_depthUnit);
reSampledData->setValuesWithTVD(xValues, measuredDepths, tvDepths, m_depthUnit, true);
}
else
{