#4186 Dual Porosity Model : Show dual porosity text in label and text in 3D view

This commit is contained in:
Magne Sjaastad 2019-03-08 14:52:43 +01:00
parent 8382b5cfdd
commit 89b4279da2
3 changed files with 18 additions and 2 deletions

View File

@ -696,6 +696,14 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData,
{
infoText += QString("%1<br>").arg(diffResString);
}
if (eclipseView->cellResult()->hasDualPorFractureResult())
{
QString porosityModelText = caf::AppEnum<RiaDefines::PorosityModelType>::uiText(eclipseView->cellResult()->porosityModel());
infoText += QString("<b>Dual Porosity Type:</b> %1<br>").arg(porosityModelText);
}
infoText += QString("<br><b>Statistics:</b> ") + timeRangeText + " and " + m_statisticsCellRange().uiText();
infoText += QString("<table border=0 cellspacing=5 >"
"<tr> <td>Min</td> <td>P90</td> <td>Mean</td> <td>P10</td> <td>Max</td> <td>Sum</td> </tr>"

View File

@ -122,6 +122,9 @@ public:
void setDiffResultOptionsEnabled(bool enabled);
void setLabelsOnTop(bool labelsOnTop);
bool hasDualPorFractureResult();
protected:
virtual void updateLegendCategorySettings() {};
@ -180,8 +183,6 @@ private:
private:
void assignFlowSolutionFromCase();
bool hasDualPorFractureResult();
QString flowDiagResUiText(bool shortLabel, int maxTracerStringLength = std::numeric_limits<int>::max()) const;
QList<caf::PdmOptionItemInfo> calcOptionsForVariableUiFieldStandard();

View File

@ -1236,6 +1236,13 @@ void RimEclipseView::updateMinMaxValuesAndAddLegendToView(QString
title += QString("\n%1").arg(resultColors->diffResultUiShortName());
}
if (resultColors->hasDualPorFractureResult())
{
QString porosityModelText = caf::AppEnum<RiaDefines::PorosityModelType>::uiText(resultColors->porosityModel());
title += QString("\nDual Por : %1").arg(porosityModelText);
}
resultColors->legendConfig()->setTitle(title);
m_viewer->addColorLegendToBottomLeftCorner(resultColors->legendConfig()->titledOverlayFrame());
}