2017-10-09 14:30:27 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2017-12-07 14:51:58 +01:00
|
|
|
//
|
2017-10-09 14:30:27 +02:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
2017-12-07 14:51:58 +01:00
|
|
|
//
|
2017-10-09 14:30:27 +02:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2017-12-07 14:51:58 +01:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-10-09 14:30:27 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-08-17 10:04:10 +02:00
|
|
|
#include "RiaRftDefines.h"
|
|
|
|
|
|
2017-12-07 14:51:58 +01:00
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2019-10-09 09:21:28 +02:00
|
|
|
class RimCase;
|
2017-10-13 09:29:42 +02:00
|
|
|
class RimSimWellInView;
|
2018-01-09 10:11:28 +01:00
|
|
|
class Rim3dView;
|
2018-04-19 11:26:03 +02:00
|
|
|
class Rim3dWellLogCurveCollection;
|
2017-10-09 14:30:27 +02:00
|
|
|
class RimWellLogExtractionCurve;
|
2024-05-27 12:09:47 +02:00
|
|
|
class RimWellLogChannel;
|
2023-10-02 12:39:44 +02:00
|
|
|
class RimWellLogLasFileCurve;
|
2017-10-09 14:30:27 +02:00
|
|
|
class RimWellLogRftCurve;
|
|
|
|
|
class RimWellLogTrack;
|
2019-10-03 14:16:56 +02:00
|
|
|
class RimWellLogWbsCurve;
|
2017-10-09 14:30:27 +02:00
|
|
|
class RimWellPath;
|
2019-11-19 11:07:51 +01:00
|
|
|
class RimWellMeasurementCurve;
|
2022-08-17 10:04:10 +02:00
|
|
|
class RimSummaryCase;
|
|
|
|
|
class RimWellLogCurve;
|
2023-05-27 10:30:03 +02:00
|
|
|
class RimWellLogCalculatedCurve;
|
2017-10-09 14:30:27 +02:00
|
|
|
|
2017-12-07 14:51:58 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-10-09 14:30:27 +02:00
|
|
|
class RicWellLogTools
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-10-03 14:16:56 +02:00
|
|
|
static RimSimWellInView* selectedSimulationWell( int* branchIndex );
|
2021-12-09 09:16:41 +01:00
|
|
|
static bool hasRftData();
|
|
|
|
|
static bool hasRftDataForWell( const QString& wellName );
|
2019-10-03 14:16:56 +02:00
|
|
|
static bool isWellPathOrSimWellSelectedInView();
|
2024-05-27 12:09:47 +02:00
|
|
|
static void addWellLogChannelsToPlotTrack( RimWellLogTrack* plotTrack, const std::vector<RimWellLogChannel*>& wellLogFileChannels );
|
2024-05-29 10:57:59 +02:00
|
|
|
static RimWellPath* selectedWellPathWithLog();
|
|
|
|
|
static RimWellPath* findWellPathWithLogFromSelection();
|
2023-10-02 12:39:44 +02:00
|
|
|
static RimWellLogRftCurve* addRftCurve( RimWellLogTrack* plotTrack, const RimSimWellInView* simWell, bool showPlotWindow = true );
|
|
|
|
|
static RimWellLogLasFileCurve* addFileCurve( RimWellLogTrack* plotTrack, bool showPlotWindow = true );
|
2019-10-03 14:16:56 +02:00
|
|
|
|
|
|
|
|
static RimWellLogExtractionCurve* addWellLogExtractionCurve( RimWellLogTrack* plotTrack,
|
2019-10-09 09:21:28 +02:00
|
|
|
RimCase* rimCase,
|
2019-10-03 14:16:56 +02:00
|
|
|
Rim3dView* view,
|
|
|
|
|
RimWellPath* wellPath,
|
|
|
|
|
const RimSimWellInView* simWell,
|
|
|
|
|
int branchIndex,
|
|
|
|
|
bool useBranchDetection,
|
|
|
|
|
bool showPlotWindow = true );
|
2019-10-09 09:21:28 +02:00
|
|
|
static RimWellLogWbsCurve* addWellLogWbsCurve( RimWellLogTrack* plotTrack,
|
|
|
|
|
RimCase* rimCase,
|
|
|
|
|
Rim3dView* view,
|
|
|
|
|
RimWellPath* wellPath,
|
|
|
|
|
int branchIndex,
|
|
|
|
|
bool useBranchDetection,
|
|
|
|
|
bool showPlotWindow = true );
|
2023-02-26 10:48:40 +01:00
|
|
|
static RimWellMeasurementCurve*
|
|
|
|
|
addWellMeasurementCurve( RimWellLogTrack* plotTrack, RimWellPath* wellPath, const QString& measurementName, bool showPlotWindow = true );
|
2023-05-27 10:30:03 +02:00
|
|
|
static RimWellLogCalculatedCurve* addWellLogCalculatedCurve( RimWellLogTrack* plotTrack, bool showPlotWindow = true );
|
2019-10-03 14:16:56 +02:00
|
|
|
|
2022-10-27 11:17:41 +02:00
|
|
|
static RimWellLogCurve* addSummaryRftCurve( RimWellLogTrack* plotTrack, RimSummaryCase* rimCase );
|
|
|
|
|
static RimWellLogRftCurve* addSummaryRftSegmentCurve( RimWellLogTrack* plotTrack,
|
|
|
|
|
const QString& resultName,
|
|
|
|
|
const QString& wellName,
|
|
|
|
|
RiaDefines::RftBranchType branchType,
|
|
|
|
|
RimSummaryCase* rimCase );
|
2023-02-26 10:48:40 +01:00
|
|
|
static bool hasData( const QString& resultName, const QString& wellName, RiaDefines::RftBranchType branchType, RimSummaryCase* rimCase );
|
2022-08-17 10:04:10 +02:00
|
|
|
|
2019-10-03 14:16:56 +02:00
|
|
|
private:
|
|
|
|
|
template <typename ExtractionCurveType>
|
|
|
|
|
static ExtractionCurveType* addExtractionCurve( RimWellLogTrack* plotTrack,
|
2019-10-09 09:21:28 +02:00
|
|
|
RimCase* rimCase,
|
2019-10-03 14:16:56 +02:00
|
|
|
Rim3dView* view,
|
|
|
|
|
RimWellPath* wellPath,
|
|
|
|
|
const RimSimWellInView* simWell,
|
|
|
|
|
int branchIndex,
|
|
|
|
|
bool useBranchDetection,
|
|
|
|
|
bool showPlotWindow );
|
2017-12-07 14:51:58 +01:00
|
|
|
};
|