Make sure surfaces are turned off in all contourmaps. (#7241)

This commit is contained in:
jonjenssen
2021-01-19 14:59:06 +01:00
committed by GitHub
parent 18b145268e
commit a01c511308

View File

@@ -120,6 +120,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
// Must be run before buildViewItems, as wells are created in this function // Must be run before buildViewItems, as wells are created in this function
eclipseContourMap->loadDataAndUpdate(); eclipseContourMap->loadDataAndUpdate();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( eclipseContourMap->surfaceInViewCollection() )
eclipseContourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
if ( eclipseCase ) if ( eclipseCase )
{ {
eclipseCase->updateConnectedEditors(); eclipseCase->updateConnectedEditors();
@@ -134,6 +138,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
else if ( geoMechContourMap ) else if ( geoMechContourMap )
{ {
geoMechContourMap->loadDataAndUpdate(); geoMechContourMap->loadDataAndUpdate();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( geoMechContourMap->surfaceInViewCollection() )
geoMechContourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
if ( geoMechCase ) if ( geoMechCase )
{ {
geoMechCase->updateConnectedEditors(); geoMechCase->updateConnectedEditors();
@@ -350,9 +358,6 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setDefaultCustomName(); contourMap->setDefaultCustomName();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( contourMap->surfaceInViewCollection() ) contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
caf::PdmDocument::updateUiIconStateRecursively( contourMap ); caf::PdmDocument::updateUiIconStateRecursively( contourMap );
geoMechCase->contourMapCollection()->push_back( contourMap ); geoMechCase->contourMapCollection()->push_back( contourMap );