mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4186 Dual Porosity Model : Show dual porosity text in label and text in 3D view
This commit is contained in:
parent
8382b5cfdd
commit
89b4279da2
@ -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>"
|
||||
|
@ -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();
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user