#2037 RFT Plot: Set formation case from plot

This commit is contained in:
Rebecca Cox
2017-11-06 13:39:14 +01:00
parent 1e943e1607
commit bac2d2b4b2
3 changed files with 26 additions and 33 deletions

View File

@@ -260,7 +260,7 @@ void RimWellRftPlot::updateFormationNamesData() const
{
for (size_t i = 0; i < m_wellLogPlot->trackCount(); i++)
{
m_wellLogPlot->trackByIndex(i)->updateFormationNamesData(RimWellLogTrack::WELL_PATH, nullptr, QString(), 0);
m_wellLogPlot->trackByIndex(i)->updateFormationNamesData(nullptr, RimWellLogTrack::WELL_PATH, nullptr, QString(), 0);
}
return;
}
@@ -282,9 +282,17 @@ void RimWellRftPlot::updateFormationNamesData() const
trajectoryType = RimWellLogTrack::SIMULATION_WELL;
}
RimCase* rimCase = nullptr;
std::vector<RimCase*> cases;
proj->allCases(cases);
if (!cases.empty())
{
rimCase = cases[0];
}
if (m_wellLogPlot->trackCount() > 0)
{
m_wellLogPlot->trackByIndex(0)->updateFormationNamesData(trajectoryType, wellPath, m_wellName, m_branchIndex);
m_wellLogPlot->trackByIndex(0)->updateFormationNamesData(rimCase, trajectoryType, wellPath, m_wellName, m_branchIndex);
}
}