mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 09:00:20 -05:00
Create multiple polygons from a contour map
* Fix overwrite of value thresholds * Fix performance issue with filtered values * Add "Delete All Polygons" from the polygon collection * Add area threshold where user can specify area cutoff
This commit is contained in:
1 parent
bbd79cca6a
commit
f4c31e0b28
23 files changed
+390
-112
No files matched your search
@@ -44,8 +44,6 @@
|
||||
#include "RimEclipseCaseEnsemble.h"
|
||||
#include "RimEclipseContourMapProjection.h"
|
||||
#include "RimEclipseResultDefinition.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellInViewCollection.h"
|
||||
#include "RimStatisticsContourMapProjection.h"
|
||||
#include "RimStatisticsContourMapView.h"
|
||||
@@ -213,8 +211,7 @@ void RimStatisticsContourMap::defineUiOrdering( QString uiConfigName, caf::PdmUi
|
||||
if ( m_enableFormationFilter ) formationGrp->add( &m_selectedFormations );
|
||||
}
|
||||
|
||||
RimProject* proj = RimProject::current();
|
||||
if ( auto polygonCollection = proj->activeOilField()->polygonCollection().p() )
|
||||
if ( auto polygonCollection = RimTools::polygonCollection() )
|
||||
{
|
||||
if ( !polygonCollection->allPolygons().empty() )
|
||||
{
|
||||
@@ -389,8 +386,7 @@ QList<caf::PdmOptionItemInfo> RimStatisticsContourMap::calculateValueOptions( co
|
||||
}
|
||||
else if ( &m_selectedPolygons == fieldNeedingOptions )
|
||||
{
|
||||
RimProject* proj = RimProject::current();
|
||||
if ( auto polygonCollection = proj->activeOilField()->polygonCollection().p() )
|
||||
if ( auto polygonCollection = RimTools::polygonCollection() )
|
||||
{
|
||||
for ( auto p : polygonCollection->allPolygons() )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user