mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1807 Ensure flow characteristics plot is updated when view geometry changes when using visible cells filtering
This commit is contained in:
parent
dbee70b222
commit
78760d569e
@ -627,6 +627,18 @@ void RimFlowCharacteristicsPlot::loadDataAndUpdate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimFlowCharacteristicsPlot::viewGeometryUpdated()
|
||||||
|
{
|
||||||
|
if (m_cellFilter() == RigFlowDiagResults::CELLS_VISIBLE)
|
||||||
|
{
|
||||||
|
// Only need to reload data if cell filtering is based on visible cells in view.
|
||||||
|
loadDataAndUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -67,6 +67,8 @@ public:
|
|||||||
virtual void deleteViewWidget() override;
|
virtual void deleteViewWidget() override;
|
||||||
virtual void loadDataAndUpdate() override;
|
virtual void loadDataAndUpdate() override;
|
||||||
|
|
||||||
|
void viewGeometryUpdated();
|
||||||
|
|
||||||
enum TimeSelectionType
|
enum TimeSelectionType
|
||||||
{
|
{
|
||||||
ALL_AVAILABLE,
|
ALL_AVAILABLE,
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include "RimViewController.h"
|
#include "RimViewController.h"
|
||||||
#include "RimViewLinker.h"
|
#include "RimViewLinker.h"
|
||||||
#include "RimWellPathCollection.h"
|
#include "RimWellPathCollection.h"
|
||||||
|
#include "RimFlowCharacteristicsPlot.h"
|
||||||
|
|
||||||
#include "RiuMainWindow.h"
|
#include "RiuMainWindow.h"
|
||||||
#include "RiuSelectionManager.h"
|
#include "RiuSelectionManager.h"
|
||||||
@ -494,6 +495,17 @@ void RimEclipseView::createDisplayModel()
|
|||||||
m_overlayInfoConfig()->update3DInfo();
|
m_overlayInfoConfig()->update3DInfo();
|
||||||
updateLegends();
|
updateLegends();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<caf::PdmFieldHandle*> objects;
|
||||||
|
this->referringPtrFields(objects);
|
||||||
|
for (auto object : objects)
|
||||||
|
{
|
||||||
|
RimFlowCharacteristicsPlot* plot = dynamic_cast<RimFlowCharacteristicsPlot*>(object->ownerObject());
|
||||||
|
if (plot != nullptr)
|
||||||
|
{
|
||||||
|
plot->viewGeometryUpdated();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user