Merge pull request #6270 from OPM/surface_bugfixes

Hide surfaces when generating contour map view
This commit is contained in:
jonjenssen
2020-08-05 14:58:43 +02:00
committed by GitHub

View File

@@ -33,6 +33,7 @@
#include "RimFaultInViewCollection.h"
#include "RimSimWellInViewCollection.h"
#include "RimSurfaceInViewCollection.h"
#include "Riu3DMainWindowTools.h"
@@ -299,6 +300,9 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setBackgroundColor( cvf::Color3f( 1.0f, 1.0f, 0.98f ) ); // Ignore original view background
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 );
geoMechCase->contourMapCollection()->push_back( contourMap );