mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1178 Update well allocation plots when well color changes
This commit is contained in:
parent
b3e845ed5e
commit
d1743be8e7
@ -119,6 +119,11 @@ void RimEclipseWell::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
|
||||
RiuMainWindow::instance()->refreshDrawStyleActions();
|
||||
}
|
||||
|
||||
if (changedField == &wellPipeColor)
|
||||
{
|
||||
RimEclipseWellCollection::updateWellAllocationPlots();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -30,6 +30,8 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWell.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellAllocationPlot.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@ -435,6 +437,8 @@ void RimEclipseWellCollection::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
||||
|
||||
if (m_reservoirView) m_reservoirView->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
RimEclipseWellCollection::updateWellAllocationPlots();
|
||||
|
||||
m_applySingleColorToWells = false;
|
||||
}
|
||||
|
||||
@ -472,6 +476,24 @@ void RimEclipseWellCollection::assignDefaultWellColors()
|
||||
well->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
RimEclipseWellCollection::updateWellAllocationPlots();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseWellCollection::updateWellAllocationPlots()
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
|
||||
std::vector<RimWellAllocationPlot*> wellAllocationPlots;
|
||||
proj->descendantsIncludingThisOfType(wellAllocationPlots);
|
||||
|
||||
for (auto wap : wellAllocationPlots)
|
||||
{
|
||||
wap->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -122,6 +122,8 @@ public:
|
||||
|
||||
void assignDefaultWellColors();
|
||||
|
||||
static void updateWellAllocationPlots();
|
||||
|
||||
protected:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user