mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2077 Well Allocation Plot: Move formation logic from track to plot
This commit is contained in:
@@ -248,7 +248,7 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
RimWellLogTrack* plotTrack = new RimWellLogTrack();
|
||||
|
||||
plotTrack->setDescription(QString("Branch %1").arg(brIdx + 1));
|
||||
plotTrack->setBranchIndex((int)brIdx);
|
||||
plotTrack->setFormationBranchIndex((int)brIdx);
|
||||
|
||||
accumulatedWellFlowPlot()->addTrack(plotTrack);
|
||||
|
||||
@@ -793,6 +793,7 @@ void RimWellAllocationPlot::onLoadDataAndUpdate()
|
||||
updateMdiWindowVisibility();
|
||||
updateFromWell();
|
||||
m_accumulatedWellFlowPlot->loadDataAndUpdate();
|
||||
updateFormationNamesData();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -816,3 +817,15 @@ cvf::Color3f RimWellAllocationPlot::getTracerColor(const QString& tracerName)
|
||||
return cvf::Color3f::DARK_GRAY;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellAllocationPlot::updateFormationNamesData() const
|
||||
{
|
||||
for (size_t i = 0; i < m_accumulatedWellFlowPlot->trackCount(); ++i)
|
||||
{
|
||||
RimWellLogTrack* track = m_accumulatedWellFlowPlot->trackByIndex(i);
|
||||
track->updateFormationNamesData(m_case, RimWellLogTrack::SIMULATION_WELL, nullptr, m_wellName, track->formationBranchIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,8 @@ private:
|
||||
|
||||
cvf::Color3f getTracerColor(const QString& tracerName);
|
||||
|
||||
void updateFormationNamesData() const;
|
||||
|
||||
private:
|
||||
caf::PdmField<bool> m_showPlotTitle;
|
||||
caf::PdmField<QString> m_userName;
|
||||
|
||||
Reference in New Issue
Block a user