mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
53f2c94763
commit
10257e3bfb
@ -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();
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user