mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improved UI for surface band and curves (#8026)
* Add surface intersection bands and curves * #8024 Ensemble Surface : Fix mix of files for a ensemble layer surface
This commit is contained in:
@@ -124,9 +124,11 @@ void RimEnsembleSurface::loadDataAndUpdate()
|
||||
{
|
||||
cvf::ref<RigSurface> firstSurface = sourceSurfaceForStatistics[0]->surfaceData();
|
||||
|
||||
// The search tree must be created before the multi threading loop is initiated to avoid crash
|
||||
firstSurface->ensureIntersectionSearchTreeIsBuilt();
|
||||
|
||||
auto surfaceCount = static_cast<int>( sourceSurfaceForStatistics.size() );
|
||||
std::vector<cvf::ref<RigSurface>> sourceSurfaces( surfaceCount );
|
||||
|
||||
#pragma omp parallel for
|
||||
for ( int i = 0; i < surfaceCount; i++ )
|
||||
{
|
||||
@@ -282,6 +284,21 @@ void RimEnsembleSurface::loadData()
|
||||
loadDataAndUpdate();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSurface* RimEnsembleSurface::findStatisticsSurface( RigSurfaceStatisticsCalculator::StatisticsType statisticsType )
|
||||
{
|
||||
for ( auto s : surfaces() )
|
||||
{
|
||||
auto ensembleSurface = dynamic_cast<RimEnsembleStatisticsSurface*>( s );
|
||||
|
||||
if ( ensembleSurface && ensembleSurface->statisticsType() == statisticsType ) return s;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user