#2360 Elm Props: Correct UI text

This commit is contained in:
Rebecca Cox 2018-01-10 16:32:59 +01:00
parent 5751acf2b9
commit 81a7fb204d
4 changed files with 10 additions and 2 deletions

View File

@ -177,6 +177,7 @@ QString RicNewGridTimeHistoryCurveFeature::suggestedNewPlotName()
case RIG_NODAL: posName = "N"; break;
case RIG_ELEMENT_NODAL: posName = "EN"; break;
case RIG_INTEGRATION_POINT: posName = "IP"; break;
case RIG_ELEMENT: posName = "E"; break;
}
QString fieldUiName = resultDefinition->resultFieldUiName();

View File

@ -597,7 +597,10 @@ QString Rim3dOverlayInfoConfig::resultInfoText(const HistogramData& histData, Ri
case RIG_INTEGRATION_POINT:
resultPos = "Integration point";
break;
case RIG_ELEMENT:
resultPos = "Element";
break;
default:
break;
}

View File

@ -311,6 +311,7 @@ void RimGeoMechPropertyFilter::updateFilterName()
case RIG_NODAL: posName = "N"; break;
case RIG_ELEMENT_NODAL: posName = "EN"; break;
case RIG_INTEGRATION_POINT: posName = "IP"; break;
case RIG_ELEMENT: posName = "E"; break;
}
QString fieldUiName = resultDefinition->resultFieldUiName();

View File

@ -244,9 +244,12 @@ void RiuFemResultTextBuilder::appendTextFromResultColors(RigGeoMechCaseData* geo
int nodeIdx = elmentConn[lNodeIdx];
if (resultDefinition->resultPositionType() == RIG_NODAL)
{
scalarValue = scalarResults[nodeIdx];
}
else if (resultDefinition->resultPositionType() == RIG_ELEMENT)
{
scalarValue = cellIndex;
}
else
{
size_t resIdx = femPart->elementNodeResultIdx(cellIndex, lNodeIdx);