2017-01-24 07:25:31 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-01-24 07:25:31 -06: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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-01-24 07:25:31 -06: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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-01-24 07:25:31 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RimWellLogCurve.h"
|
|
|
|
|
|
|
|
#include "cafPdmChildField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmPtrField.h"
|
2017-01-24 07:25:31 -06:00
|
|
|
|
|
|
|
class RimEclipseResultCase;
|
|
|
|
class RimWellAllocationPlot;
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2017-01-24 07:25:31 -06:00
|
|
|
//==================================================================================================
|
|
|
|
class RimWellFlowRateCurve : public RimWellLogCurve
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2017-01-24 07:25:31 -06:00
|
|
|
public:
|
|
|
|
RimWellFlowRateCurve();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimWellFlowRateCurve() override;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
void setFlowValuesPrDepthValue( const QString& curveName,
|
|
|
|
const std::vector<double>& depthValues,
|
|
|
|
const std::vector<double>& flowRates );
|
2017-02-01 12:17:56 -06:00
|
|
|
void updateStackedPlotData();
|
2017-01-24 07:25:31 -06:00
|
|
|
|
2018-10-18 12:45:57 -05:00
|
|
|
QString wellName() const override;
|
|
|
|
QString wellLogChannelName() const override;
|
2017-01-24 07:25:31 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setGroupId( int groupId );
|
|
|
|
int groupId() const;
|
2017-10-27 08:17:24 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setDoFillCurve( bool doFill );
|
2017-10-27 08:49:00 -05:00
|
|
|
|
2017-01-24 07:25:31 -06:00
|
|
|
protected:
|
2018-10-18 12:45:57 -05:00
|
|
|
QString createCurveAutoName() override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void onLoadDataAndUpdate( bool updateParentPlot ) override;
|
|
|
|
void updateCurveAppearance() override;
|
2017-01-24 07:25:31 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2017-04-07 07:43:26 -05:00
|
|
|
|
2017-01-24 07:25:31 -06:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
bool isUsingConnectionNumberDepthType() const;
|
2017-01-24 07:25:31 -06:00
|
|
|
RimWellAllocationPlot* wellAllocationPlot() const;
|
2017-01-31 08:28:15 -06:00
|
|
|
|
2017-11-08 04:22:16 -06:00
|
|
|
QString m_curveAutoName;
|
2017-10-27 08:17:24 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
int m_groupId;
|
|
|
|
bool m_doFillCurve;
|
2017-01-24 07:25:31 -06:00
|
|
|
};
|