#4105 Remove sum from info box for Contour Maps

* The sum is misleading and isn't showing a value that makes any sense to the user.
This commit is contained in:
Gaute Lindkvist committed 2019-02-27 13:34:09 +01:00
1 parent e1dbbbaf51
commit 27f9e95e51
1 file changed
+23 -4
@@ -663,13 +663,12 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData,
} }
infoText += QString("<br><b>Statistics:</b> Current Time Step and Visible Cells"); infoText += QString("<br><b>Statistics:</b> Current Time Step and Visible Cells");
infoText += QString("<table border=0 cellspacing=5 >" infoText += QString("<table border=0 cellspacing=5 >"
"<tr> <td>Min</td> <td>Mean</td> <td>Max</td> <td>Sum</td> </tr>" "<tr> <td>Min</td> <td>Mean</td> <td>Max</td> </tr>"
"<tr> <td>%1</td> <td> %2</td> <td> %3</td> <td> %4</td> </tr>" "<tr> <td>%1</td> <td> %2</td> <td> %3</td> </tr>"
"</table>") "</table>")
.arg(histData.min) .arg(histData.min)
.arg(histData.mean) .arg(histData.mean)
.arg(histData.max) .arg(histData.max);
.arg(histData.sum);
} }
} }
else if (eclipseView) else if (eclipseView)
@@ -810,6 +809,25 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData, Ri
infoText += QString("<b>Cell result:</b> %1, %2, %3<br>").arg(resultPos).arg(fieldName).arg(compName); infoText += QString("<b>Cell result:</b> %1, %2, %3<br>").arg(resultPos).arg(fieldName).arg(compName);
} }
const RimGeoMechContourMapView* contourMapView = dynamic_cast<const RimGeoMechContourMapView*>(geoMechView);
if (contourMapView)
{
if (!diffResString.isEmpty())
{
infoText += QString("%1<br>").arg(diffResString);
}
infoText += QString("<br><b>Statistics:</b> ") + m_statisticsTimeRange().uiText() + " and " +
m_statisticsCellRange().uiText();
infoText += QString("<table border=0 cellspacing=5 >"
"<tr> <td>Min</td> <td>Mean</td> <td>Max</td> </tr>"
"<tr> <td>%1</td> <td> %2</td> <td> %3</td> </tr>"
"</table>")
.arg(histData.min)
.arg(histData.mean)
.arg(histData.max);
}
else
{
if (!diffResString.isEmpty()) if (!diffResString.isEmpty())
{ {
infoText += QString("%1<br>").arg(diffResString); infoText += QString("%1<br>").arg(diffResString);
@@ -827,6 +845,7 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData, Ri
.arg(histData.max) .arg(histData.max)
.arg(histData.sum); .arg(histData.sum);
} }
}
else else
{ {
infoText += QString("<b>No valid result selected</b>"); infoText += QString("<b>No valid result selected</b>");