#5019 Update 2dIntersection views when toggling sparate intersection results

This commit is contained in:
Jacob Støren
2019-11-25 11:42:46 +01:00
parent 9bfe51b205
commit eed9f6abad
3 changed files with 34 additions and 7 deletions

View File

@@ -18,8 +18,9 @@
#include "RimIntersectionResultsDefinitionCollection.h"
#include "RimIntersectionResultDefinition.h"
#include "RimGridView.h"
#include "RimIntersectionCollection.h"
#include "RimIntersectionResultDefinition.h"
CAF_PDM_SOURCE_INIT( RimIntersectionResultsDefinitionCollection, "RimIntersectionResultsDefinitionCollection" );
@@ -42,10 +43,7 @@ RimIntersectionResultsDefinitionCollection::RimIntersectionResultsDefinitionColl
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimIntersectionResultsDefinitionCollection::~RimIntersectionResultsDefinitionCollection()
{
}
RimIntersectionResultsDefinitionCollection::~RimIntersectionResultsDefinitionCollection() {}
//--------------------------------------------------------------------------------------------------
///
@@ -81,8 +79,12 @@ void RimIntersectionResultsDefinitionCollection::fieldChangedByUi( const caf::Pd
this->updateUiIconFromToggleField();
RimGridView* gridView = nullptr;
this->firstAncestorOrThisOfType(gridView);
if ( gridView ) gridView->scheduleCreateDisplayModelAndRedraw();
this->firstAncestorOrThisOfType( gridView );
if ( gridView )
{
gridView->scheduleCreateDisplayModelAndRedraw();
gridView->crossSectionCollection()->scheduleCreateDisplayModelAndRedraw2dIntersectionViews();
}
}
//--------------------------------------------------------------------------------------------------