RFT plot. Mark wells that have an observed well path in wells list

This commit is contained in:
Bjørn Erik Jensen 2017-12-06 15:45:19 +01:00
parent 8a35a53935
commit 609963bb73

View File

@ -818,12 +818,12 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
{ {
const std::vector<QString> simWellNames = proj->simulationWellNames(); const std::vector<QString> simWellNames = proj->simulationWellNames();
std::set<QString> simWellsAssociatedWithWellPath; std::set<QString> simWellsAssociatedWithWellPath;
std::set<QString> wellNames; std::set<std::pair<QString /*uitext*/, QString /*value*/>> wellNames;
// Observed wells // Observed wells
for (RimWellPath* const wellPath : proj->allWellPaths()) for (RimWellPath* const wellPath : proj->allWellPaths())
{ {
wellNames.insert(wellPath->name()); wellNames.insert(std::make_pair(wellPath->name() + " (Well Path)", wellPath->name()));
if (!wellPath->associatedSimulationWellName().isEmpty()) if (!wellPath->associatedSimulationWellName().isEmpty())
{ {
@ -836,13 +836,13 @@ void RimWellRftPlot::calculateValueOptionsForWells(QList<caf::PdmOptionItemInfo>
{ {
if (simWellsAssociatedWithWellPath.count(simWellName) == 0) if (simWellsAssociatedWithWellPath.count(simWellName) == 0)
{ {
wellNames.insert(simWellName); wellNames.insert(std::make_pair(simWellName, simWellName));
} }
} }
for (const auto& wellName : wellNames) for (const auto& wellName : wellNames)
{ {
options.push_back(caf::PdmOptionItemInfo(wellName, wellName)); options.push_back(caf::PdmOptionItemInfo(wellName.first, wellName.second));
} }
} }