ResInsight/ApplicationLibCode/ProjectDataModel/Flow/RimWellFlowRateCurve.h

74 lines
2.5 KiB
C
Raw Normal View History

2017-01-24 07:25:31 -06:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2017 Statoil ASA
//
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.
//
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.
//
// 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"
#include "cafPdmPtrField.h"
2017-01-24 07:25:31 -06:00
class RimEclipseResultCase;
class RimWellAllocationPlot;
//==================================================================================================
///
///
2017-01-24 07:25:31 -06:00
//==================================================================================================
class RimWellFlowRateCurve : public RimWellLogCurve
{
CAF_PDM_HEADER_INIT;
2017-01-24 07:25:31 -06:00
public:
RimWellFlowRateCurve();
~RimWellFlowRateCurve() override;
void setFlowValuesPrDepthValue( const QString& curveName,
RiaDefines::DepthTypeEnum depthType,
const std::vector<double>& depthValues,
const std::vector<double>& flowRates );
2017-01-24 07:25:31 -06:00
RimEclipseResultCase* rimCase();
int timeStep();
QString wellName() const override;
QString wellLogChannelUiName() const override;
QString wellLogChannelUnits() const override;
2017-01-24 07:25:31 -06:00
void setGroupId( int groupId );
int groupId() const;
void setDoFillCurve( bool doFill );
2017-01-24 07:25:31 -06:00
protected:
QString createCurveAutoName() override;
void onLoadDataAndUpdate( bool updateParentPlot ) override;
void updateCurveAppearance() override;
2017-01-24 07:25:31 -06:00
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
2017-01-24 07:25:31 -06:00
private:
bool isUsingConnectionNumberDepthType() const;
2017-01-24 07:25:31 -06:00
RimWellAllocationPlot* wellAllocationPlot() const;
QString m_curveAutoName;
int m_groupId;
bool m_doFillCurve;
2017-01-24 07:25:31 -06:00
};