mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
(#428) Selecting well log plot in tree view when its viewer is activated
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RigGeoMechWellLogExtractor.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellLogPlotCollection, "WellLogPlotCollection");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -102,3 +104,22 @@ RigGeoMechWellLogExtractor* RimWellLogPlotCollection::findOrCreateExtractor(RimW
|
||||
|
||||
return extractor.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogPlot* RimWellLogPlotCollection::wellLogPlotFromViewer(RiuWellLogPlot* viewer) const
|
||||
{
|
||||
CVF_ASSERT(viewer);
|
||||
|
||||
for (size_t pIdx = 0; pIdx < wellLogPlots.size(); pIdx++)
|
||||
{
|
||||
RimWellLogPlot* wellLogPlot = wellLogPlots[pIdx];
|
||||
if (wellLogPlot->viewer() == viewer)
|
||||
{
|
||||
return wellLogPlot;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user