mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add multiple selected cell edge results
This commit is contained in:
@@ -1400,11 +1400,6 @@ void RimEclipseView::onUpdateLegends()
|
||||
{
|
||||
if ( this->cellEdgeResult()->hasResult() )
|
||||
{
|
||||
if ( this->cellEdgeResult()->isUsingSingleVariable() )
|
||||
{
|
||||
this->cellEdgeResult()->singleVarEdgeResultColors()->updateRangesForEmbeddedLegends( m_currentTimeStep );
|
||||
}
|
||||
else
|
||||
{
|
||||
double globalMin, globalMax;
|
||||
double globalPosClosestToZero, globalNegClosestToZero;
|
||||
@@ -1416,21 +1411,6 @@ void RimEclipseView::onUpdateLegends()
|
||||
globalPosClosestToZero,
|
||||
globalNegClosestToZero );
|
||||
this->cellEdgeResult()->legendConfig()->setAutomaticRanges( globalMin, globalMax, globalMin, globalMax );
|
||||
|
||||
if ( this->cellEdgeResult()->hasCategoryResult() )
|
||||
{
|
||||
if ( cellEdgeResult()->singleVarEdgeResultColors()->resultType() !=
|
||||
RiaDefines::ResultCatType::FORMATION_NAMES )
|
||||
{
|
||||
cellEdgeResult()->legendConfig()->setIntegerCategories( results->uniqueCellScalarValues(
|
||||
cellEdgeResult()->singleVarEdgeResultColors()->eclipseResultAddress() ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
const std::vector<QString> fnVector = eclipseCase->formationNames();
|
||||
cellEdgeResult()->legendConfig()->setNamedCategories( fnVector );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this->cellEdgeResult()->legendConfig()->setTitle( QString( "Edge Results: \n" ) +
|
||||
@@ -1557,7 +1537,6 @@ void RimEclipseView::setEclipseCase( RimEclipseCase* reservoir )
|
||||
faultResultSettings()->customFaultResult()->setEclipseCase( reservoir );
|
||||
cellFilterCollection()->setCase( reservoir );
|
||||
m_streamlineCollection->setEclipseCase( reservoir );
|
||||
cellEdgeResult()->setEclipseCase( reservoir );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user