mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1395 Renamed TopologyItem to GeometrySelectionItem including Keywords with friends.
Changed keyword to GridTimeHistoryCurve (previously missing Grid)
This commit is contained in:
@@ -89,7 +89,7 @@ QString RiuFemResultTextBuilder::mainResultText()
|
||||
|
||||
if (!text.isEmpty()) text += "\n";
|
||||
|
||||
QString topoText = this->topologyText("\n");
|
||||
QString topoText = this->geometrySelectionText("\n");
|
||||
text += topoText;
|
||||
appendDetails(text, formationDetails());
|
||||
text += "\n";
|
||||
@@ -102,7 +102,7 @@ QString RiuFemResultTextBuilder::mainResultText()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiuFemResultTextBuilder::topologyText(QString itemSeparator)
|
||||
QString RiuFemResultTextBuilder::geometrySelectionText(QString itemSeparator)
|
||||
{
|
||||
QString text;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
QString mainResultText();
|
||||
|
||||
QString topologyText(QString itemSeparator);
|
||||
QString geometrySelectionText(QString itemSeparator);
|
||||
|
||||
private:
|
||||
void appendDetails(QString& text, const QString& details);
|
||||
|
||||
@@ -74,7 +74,7 @@ RiuFemTimeHistoryResultAccessor::RiuFemTimeHistoryResultAccessor(RigGeoMechCaseD
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiuFemTimeHistoryResultAccessor::topologyText() const
|
||||
QString RiuFemTimeHistoryResultAccessor::geometrySelectionText() const
|
||||
{
|
||||
QString text;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
const cvf::Vec3d& intersectionPoint,
|
||||
const std::array<cvf::Vec3f, 3>& m_intersectionTriangle);
|
||||
|
||||
QString topologyText() const;
|
||||
QString geometrySelectionText() const;
|
||||
std::vector<double> timeHistoryValues() const;
|
||||
int closestNodeId() const { return m_closestNodeId; }
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ QString RiuResultTextBuilder::mainResultText()
|
||||
text += "\n";
|
||||
}
|
||||
|
||||
QString topoText = this->topologyText("\n");
|
||||
QString topoText = this->geometrySelectionText("\n");
|
||||
text += topoText;
|
||||
appendDetails(text, formationDetails());
|
||||
text += "\n";
|
||||
@@ -134,7 +134,7 @@ QString RiuResultTextBuilder::mainResultText()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiuResultTextBuilder::topologyText(QString itemSeparator)
|
||||
QString RiuResultTextBuilder::geometrySelectionText(QString itemSeparator)
|
||||
{
|
||||
QString text;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
QString mainResultText();
|
||||
|
||||
QString topologyText(QString itemSeparator);
|
||||
QString geometrySelectionText(QString itemSeparator);
|
||||
|
||||
private:
|
||||
void appendDetails(QString& text, const QString& details);
|
||||
|
||||
@@ -123,7 +123,7 @@ void RiuSelectionChangedHandler::addCurveFromSelectionItem(const RiuEclipseSelec
|
||||
curveName += ", ";
|
||||
curveName += QString("Grid index %1").arg(eclipseSelectionItem->m_gridIndex);
|
||||
curveName += ", ";
|
||||
curveName += RigTimeHistoryResultAccessor::topologyText(eclipseView->eclipseCase()->eclipseCaseData(), eclipseSelectionItem->m_gridIndex, eclipseSelectionItem->m_cellIndex);
|
||||
curveName += RigTimeHistoryResultAccessor::geometrySelectionText(eclipseView->eclipseCase()->eclipseCaseData(), eclipseSelectionItem->m_gridIndex, eclipseSelectionItem->m_cellIndex);
|
||||
|
||||
|
||||
std::vector<double> timeHistoryValues = RigTimeHistoryResultAccessor::timeHistoryValues(eclipseView->eclipseCase()->eclipseCaseData(), eclipseView->cellResult(), eclipseSelectionItem->m_gridIndex, eclipseSelectionItem->m_cellIndex, timeStepDates.size());
|
||||
@@ -191,7 +191,7 @@ void RiuSelectionChangedHandler::addCurveFromSelectionItem(const RiuGeoMechSelec
|
||||
}
|
||||
curveName.append("\n");
|
||||
|
||||
curveName.append(timeHistResultAccessor->topologyText());
|
||||
curveName.append(timeHistResultAccessor->geometrySelectionText());
|
||||
|
||||
std::vector<double> timeHistoryValues = timeHistResultAccessor->timeHistoryValues();
|
||||
|
||||
@@ -274,7 +274,7 @@ void RiuSelectionChangedHandler::updateResultInfo(const RiuSelectionItem* itemAd
|
||||
|
||||
resultInfo = textBuilder.mainResultText();
|
||||
|
||||
pickInfo = textBuilder.topologyText(", ");
|
||||
pickInfo = textBuilder.geometrySelectionText(", ");
|
||||
}
|
||||
else if (itemAdded->type() == RiuSelectionItem::GEOMECH_SELECTION_OBJECT)
|
||||
{
|
||||
@@ -288,7 +288,7 @@ void RiuSelectionChangedHandler::updateResultInfo(const RiuSelectionItem* itemAd
|
||||
|
||||
resultInfo = textBuilder.mainResultText();
|
||||
|
||||
pickInfo = textBuilder.topologyText(", ");
|
||||
pickInfo = textBuilder.geometrySelectionText(", ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user