#2127 Sim Well Branches : Add branch detection and branc index to RtfCurve

This commit is contained in:
Magne Sjaastad
2017-12-08 08:38:55 +01:00
parent 1841379e64
commit 9ef040d891
5 changed files with 80 additions and 21 deletions

View File

@@ -164,6 +164,17 @@ bool RimWellPlotTools::hasFlowData(RimWellPath* wellPath)
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellPlotTools::isWellPath(const QString& wellName)
{
RimProject* proj = RiaApplication::instance()->project();
RimWellPath* wellPath = proj->wellPathByName(wellName);
return wellPath != nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -79,6 +79,7 @@ public:
// others
static bool hasFlowData(const RimWellLogFile* wellLogFile);
static bool isWellPath(const QString& wellName);
// Both
static std::vector<RimEclipseResultCase*> gridCasesForWell(const QString& simWellName);

View File

@@ -489,6 +489,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<RiaRftPltCurveDefinition>
RifEclipseRftAddress address(simWellName, curveDefToAdd.timeStep(), RifEclipseRftAddress::PRESSURE);
curve->setRftAddress(address);
curve->setZOrder(1);
curve->setSimWellBranchData(m_branchDetection, m_branchIndex);
applyCurveAppearance(curve);
}