mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Statistics Contourmap UI updates (#12060)
* Enable time step selections and controls in view * Support loading just what we need for statistics contour maps by using custom reader settings * Close case once done with it unless there are active views. * Add selection of user interface case (for result selection, display of wells, faults...) * Avoid int overflow for nested progresses by using double * Improve auto naming * Misc. UI improvements
This commit is contained in:
@@ -330,9 +330,13 @@ QString Rim3dOverlayInfoConfig::caseInfoText( RimEclipseView* eclipseView )
|
||||
}
|
||||
|
||||
infoText += QString( "<p><b>-- Contour Map: %1 --</b><p> "
|
||||
"<b>Sample Count. Total:</b> %2 <b>Valid Results:</b> %3 <br>"
|
||||
"<b>Projection Type:</b> %4%5<br>" )
|
||||
.arg( caseName, totCellCount, activeCellCountText, aggregationType, weightingParameterString );
|
||||
"<b>Sample Count. Total:</b> %2 <b>Valid Results:</b> %3 <br>" )
|
||||
.arg( caseName, totCellCount, activeCellCountText );
|
||||
|
||||
if ( !contourMap->contourMapProjection()->isColumnResult() )
|
||||
{
|
||||
infoText += QString( "<b>Projection Type:</b> %1%2<br>" ).arg( aggregationType, weightingParameterString );
|
||||
}
|
||||
}
|
||||
else if ( eclipseView->mainGrid() )
|
||||
{
|
||||
@@ -392,9 +396,13 @@ QString Rim3dOverlayInfoConfig::caseInfoText( RimGeoMechView* geoMechView )
|
||||
QString aggregationType = contourMap->contourMapProjection()->resultAggregationText();
|
||||
|
||||
infoText += QString( "<p><b>-- Contour Map: %1 --</b><p> "
|
||||
"<b>Sample Count. Total:</b> %2 <b>Valid Results:</b> %3 <br>"
|
||||
"<b>Projection Type:</b> %4<br>" )
|
||||
.arg( caseName, totCellCount, activeCellCountText, aggregationType );
|
||||
"<b>Sample Count. Total:</b> %2 <b>Valid Results:</b> %3 <br>" )
|
||||
.arg( caseName, totCellCount, activeCellCountText );
|
||||
|
||||
if ( !contourMap->contourMapProjection()->isColumnResult() )
|
||||
{
|
||||
infoText += QString( "<b>Projection Type:</b> %1<br>" ).arg( aggregationType );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -456,10 +464,7 @@ QString Rim3dOverlayInfoConfig::resultInfoText( const RigHistogramData& histData
|
||||
{
|
||||
QString propName = contourMap->contourMapProjection()->resultVariableName();
|
||||
QString diffResString = eclipseView->cellResult()->additionalResultText();
|
||||
if ( !contourMap->contourMapProjection()->isColumnResult() )
|
||||
{
|
||||
infoText += QString( "<b>Cell Property:</b> %1<br>" ).arg( propName );
|
||||
}
|
||||
infoText += QString( "<b>Cell Property:</b> %1<br>" ).arg( propName );
|
||||
if ( !diffResString.isEmpty() )
|
||||
{
|
||||
infoText += QString( "%1<br>" ).arg( diffResString );
|
||||
@@ -1048,7 +1053,7 @@ QString Rim3dOverlayInfoConfig::timeStepText( RimEclipseView* eclipseView )
|
||||
QString dateString = RiaQDateTimeTools::toStringUsingApplicationLocale( timeSteps[currTimeStepIndex], dateFormat );
|
||||
|
||||
dateTimeString =
|
||||
QString( "Time Step: %1/%2 %3" ).arg( QString::number( currTimeStepIndex ), QString::number( timeSteps.size() - 1 ), dateString );
|
||||
QString( "Time Step: %1/%2 %3" ).arg( QString::number( currTimeStepIndex + 1 ), QString::number( timeSteps.size() ), dateString );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1071,7 +1076,7 @@ QString Rim3dOverlayInfoConfig::timeStepText( RimGeoMechView* geoMechView )
|
||||
{
|
||||
dateTimeString =
|
||||
QString( "Time Step: %1/%2 %3" )
|
||||
.arg( QString::number( currTimeStepIndex ), QString::number( timeSteps.size() - 1 ), timeSteps[currTimeStepIndex] );
|
||||
.arg( QString::number( currTimeStepIndex + 1 ), QString::number( timeSteps.size() ), timeSteps[currTimeStepIndex] );
|
||||
}
|
||||
|
||||
return QString( "<p><b><center>-- %1 --</center></b>" ).arg( dateTimeString ) +
|
||||
|
||||
Reference in New Issue
Block a user