#1174 Added context menu to WellAllocationPlot and added feature

This commit is contained in:
Magne Sjaastad
2017-02-13 13:28:56 +01:00
parent 9aa98a3895
commit 45f3240932
7 changed files with 175 additions and 4 deletions

View File

@@ -221,6 +221,12 @@ void RimWellAllocationPlot::updateFromWell()
}
}
m_contributingTracerNames.clear();
if (wfCalculator)
{
m_contributingTracerNames = wfCalculator->tracerNames();
}
// Create tracks and curves from the calculated data
size_t branchCount = pipeBranchesCLCoords.size();
@@ -540,6 +546,14 @@ QString RimWellAllocationPlot::wellName() const
return m_wellName();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const std::vector<QString> RimWellAllocationPlot::contributingTracerNames() const
{
return m_contributingTracerNames;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -68,6 +68,7 @@ public:
QString wellName() const;
const std::vector<QString> contributingTracerNames() const;
void removeFromMdiAreaAndDeleteViewWidget();
@@ -112,4 +113,5 @@ private:
caf::PdmChildField<RimTotalWellAllocationPlot*> m_totalWellAllocationPlot;
caf::PdmChildField<RimWellAllocationPlotLegend*> m_wellAllocationPlotLegend;
std::vector<QString> m_contributingTracerNames;
};