#1807 Ensure flow characteristics plot is updated when view geometry changes when using visible cells filtering

This commit is contained in:
Bjørnar Grip Fjær
2017-08-24 13:28:17 +02:00
parent dbee70b222
commit 78760d569e
3 changed files with 26 additions and 0 deletions

View File

@@ -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();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -67,6 +67,8 @@ public:
virtual void deleteViewWidget() override;
virtual void loadDataAndUpdate() override;
void viewGeometryUpdated();
enum TimeSelectionType
{
ALL_AVAILABLE,