From 7e707f131c0903a2d4c3bea8809a8254512ee105 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Sun, 5 Nov 2017 11:27:51 +0100 Subject: [PATCH] #2039 PLT Plot: Add branch index getter --- ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.cpp | 8 ++++++++ ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.h | 1 + 2 files changed, 9 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.cpp index cb89e1ddba..5b2b35ea6d 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.cpp @@ -1135,6 +1135,14 @@ QString RimWellPltPlot::currentWellName() const return m_wellName; } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +int RimWellPltPlot::branchIndex() const +{ + return m_branchIndex; +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.h b/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.h index b55af754c0..3fe8c9ebc4 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.h +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellPltPlot.h @@ -91,6 +91,7 @@ public: void setCurrentWellName(const QString& currWellName); QString currentWellName() const; + int branchIndex() const; static bool hasFlowData(const RimWellLogFile* wellLogFile); static bool isFlowChannel(RimWellLogFileChannel* channel);