mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
* Refactor well log track settings into modular classes Major refactoring of RimWellLogTrack to delegate property axis, formation, region annotation, and well path attribute settings to dedicated settings classes. Introduces RimWellLogPropertyAxisSettings, RimWellLogFormationSettings, RimWellLogRegionAnnotationSettings, and RimWellLogWellPathAttributeSettings, each encapsulating related fields, UI logic, and option handling. Old fields are retained for migration and backward compatibility. Updates enums and signatures for consistency.
74 lines
2.5 KiB
C++
74 lines
2.5 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2017 Statoil ASA
|
|
//
|
|
// 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.
|
|
//
|
|
// 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>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "RimWellLogCurve.h"
|
|
|
|
#include "cafPdmChildField.h"
|
|
#include "cafPdmPtrField.h"
|
|
|
|
class RimEclipseResultCase;
|
|
class RimWellAllocationPlot;
|
|
|
|
//==================================================================================================
|
|
///
|
|
///
|
|
//==================================================================================================
|
|
class RimWellFlowRateCurve : public RimWellLogCurve
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
RimWellFlowRateCurve();
|
|
~RimWellFlowRateCurve() override;
|
|
|
|
void setFlowValuesPrDepthValue( const QString& curveName,
|
|
RiaDefines::DepthType depthType,
|
|
const std::vector<double>& depthValues,
|
|
const std::vector<double>& flowRates );
|
|
|
|
RimEclipseResultCase* rimCase();
|
|
int timeStep();
|
|
QString wellName() const override;
|
|
QString wellLogChannelUiName() const override;
|
|
QString wellLogChannelUnits() const override;
|
|
|
|
void setGroupId( int groupId );
|
|
int groupId() const;
|
|
|
|
void setDoFillCurve( bool doFill );
|
|
|
|
protected:
|
|
QString createCurveAutoName() override;
|
|
void onLoadDataAndUpdate( bool updateParentPlot ) override;
|
|
void updateCurveAppearance() override;
|
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
private:
|
|
bool isUsingConnectionNumberDepthType() const;
|
|
RimWellAllocationPlot* wellAllocationPlot() const;
|
|
|
|
QString m_curveAutoName;
|
|
|
|
int m_groupId;
|
|
bool m_doFillCurve;
|
|
};
|