mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#2553 Well CF Visualization: Add findOrCreateSimWellExtractor()
This commit is contained in:
parent
0512d3fbbc
commit
50212fff0d
@ -24,6 +24,7 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -48,22 +49,32 @@ RigGeoMechWellLogExtractor* RiaExtractionTools::wellLogExtractorGeoMechCase(RimW
|
||||
return wlPlotCollection->findOrCreateExtractor(wellPath, geomCase);
|
||||
}
|
||||
|
||||
/*
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigEclipseWellLogExtractor* RiaExtractionTools::findOrCreateSimWellExtractor(const QString& simWellName,
|
||||
const QString& caseUserDescription,
|
||||
const RigWellPath* wellPathGeom,
|
||||
const RimEclipseCase* eclipseCase)
|
||||
RigEclipseWellLogExtractor* RiaExtractionTools::findOrCreateSimWellExtractor(const RimSimWellInView* simWell,
|
||||
const RigWellPath* wellPathGeom)
|
||||
{
|
||||
auto wlPlotCollection = wellLogPlotCollection();
|
||||
if (!wlPlotCollection) return nullptr;
|
||||
|
||||
if (!(simWell && wellPathGeom))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RimEclipseCase* eclipseCase = nullptr;
|
||||
simWell->firstAncestorOrThisOfType(eclipseCase);
|
||||
if (!(eclipseCase && eclipseCase->eclipseCaseData()))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QString caseUserDescription = eclipseCase->caseUserDescription();
|
||||
|
||||
return wlPlotCollection->findOrCreateSimWellExtractor(
|
||||
simWellName, caseUserDescription, wellPathGeom, eclipseCase->eclipseCaseData());
|
||||
simWell->name, caseUserDescription, wellPathGeom, eclipseCase->eclipseCaseData());
|
||||
}
|
||||
*/
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -20,11 +20,12 @@
|
||||
|
||||
class RigEclipseWellLogExtractor;
|
||||
class RigGeoMechWellLogExtractor;
|
||||
class RigWellPath;
|
||||
class RimEclipseCase;
|
||||
class RimGeoMechCase;
|
||||
class RimSimWellInView;
|
||||
class RimWellLogPlotCollection;
|
||||
class RimWellPath;
|
||||
class RigWellPath;
|
||||
|
||||
class QString;
|
||||
|
||||
@ -36,12 +37,7 @@ namespace RiaExtractionTools
|
||||
RigEclipseWellLogExtractor* wellLogExtractorEclipseCase(RimWellPath* wellPath, RimEclipseCase* eclipseCase);
|
||||
RigGeoMechWellLogExtractor* wellLogExtractorGeoMechCase(RimWellPath* wellPath, RimGeoMechCase* geomCase);
|
||||
|
||||
/*
|
||||
RigEclipseWellLogExtractor* findOrCreateSimWellExtractor(const QString& simWellName,
|
||||
const QString& caseUserDescription,
|
||||
const RigWellPath* wellPathGeom,
|
||||
const RimEclipseCase* eclipseCase);
|
||||
*/
|
||||
RigEclipseWellLogExtractor* findOrCreateSimWellExtractor(const RimSimWellInView* simWell, const RigWellPath* wellPathGeom);
|
||||
|
||||
RimWellLogPlotCollection* wellLogPlotCollection();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user