Fix missing rebuild of intersections in geomech view

Fix missing ternary legend reset
Fix missing regular legend reset in geomech view
This commit is contained in:
Jacob Støren 2019-11-21 10:05:56 +01:00
parent 53f2c94763
commit 10257e3bfb
2 changed files with 12 additions and 0 deletions

View File

@ -1853,6 +1853,7 @@ void RimEclipseView::onResetLegendsInViewer()
this->separateIntersectionResultsCollection()->intersectionResultsDefinitions() ) this->separateIntersectionResultsCollection()->intersectionResultsDefinitions() )
{ {
sepInterResDef->regularLegendConfig()->recreateLegend(); sepInterResDef->regularLegendConfig()->recreateLegend();
sepInterResDef->ternaryLegendConfig()->recreateLegend();
} }
nativeOrOverrideViewer()->removeAllColorLegends(); nativeOrOverrideViewer()->removeAllColorLegends();

View File

@ -38,8 +38,11 @@
#include "RimGeoMechPropertyFilterCollection.h" #include "RimGeoMechPropertyFilterCollection.h"
#include "RimGridCollection.h" #include "RimGridCollection.h"
#include "RimIntersectionCollection.h" #include "RimIntersectionCollection.h"
#include "RimIntersectionResultDefinition.h"
#include "RimIntersectionResultsDefinitionCollection.h"
#include "RimRegularLegendConfig.h" #include "RimRegularLegendConfig.h"
#include "RimTensorResults.h" #include "RimTensorResults.h"
#include "RimTernaryLegendConfig.h"
#include "RimViewLinker.h" #include "RimViewLinker.h"
#include "RimViewNameConfig.h" #include "RimViewNameConfig.h"
@ -286,6 +289,7 @@ void RimGeoMechView::onCreateDisplayModel()
// Cross sections // Cross sections
m_crossSectionVizModel->removeAllParts(); m_crossSectionVizModel->removeAllParts();
m_crossSectionCollection->rebuildGeometry();
m_crossSectionCollection->appendPartsToModel( *this, m_crossSectionVizModel.p(), scaleTransform() ); m_crossSectionCollection->appendPartsToModel( *this, m_crossSectionVizModel.p(), scaleTransform() );
nativeOrOverrideViewer()->addStaticModelOnce( m_crossSectionVizModel.p(), isUsingOverrideViewer() ); nativeOrOverrideViewer()->addStaticModelOnce( m_crossSectionVizModel.p(), isUsingOverrideViewer() );
@ -423,6 +427,13 @@ void RimGeoMechView::onResetLegendsInViewer()
{ {
this->cellResult()->legendConfig->recreateLegend(); this->cellResult()->legendConfig->recreateLegend();
for ( RimIntersectionResultDefinition* sepInterResDef :
this->separateIntersectionResultsCollection()->intersectionResultsDefinitions() )
{
sepInterResDef->regularLegendConfig()->recreateLegend();
sepInterResDef->ternaryLegendConfig()->recreateLegend();
}
nativeOrOverrideViewer()->removeAllColorLegends(); nativeOrOverrideViewer()->removeAllColorLegends();
} }