mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 12:10:57 -06:00
4c3e1c3fe8
- add CONGRAT - add pressure track - add CONFAC - fix some plot layout issues - Fix bug for first segment MD location - Add default scale factor 1e-3 for gas curves - Avoid inf values in some curves, seen in PRESSURE and CONFAC - Use assignment in statements instead of std::get
92 lines
3.6 KiB
C++
92 lines
3.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2022 Equinor 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 "cafPdmPtrField.h"
|
|
|
|
#include "RiaRftDefines.h"
|
|
#include <QDateTime>
|
|
|
|
class RimSummaryCase;
|
|
|
|
//==================================================================================================
|
|
///
|
|
///
|
|
//==================================================================================================
|
|
class RimRftTopologyCurve : public RimWellLogCurve
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
enum class CurveType
|
|
{
|
|
PACKER,
|
|
TUBING,
|
|
DEVICE,
|
|
ANNULUS
|
|
};
|
|
|
|
public:
|
|
RimRftTopologyCurve();
|
|
|
|
static RimRftTopologyCurve* createPackerCurve( RimSummaryCase* summaryCase,
|
|
const QDateTime& timeStep,
|
|
const QString& wellName,
|
|
int segmentBranchIndex );
|
|
|
|
static RimRftTopologyCurve* createTopologyCurve( RimSummaryCase* summaryCase,
|
|
const QDateTime& timeStep,
|
|
const QString& wellName,
|
|
int segmentBranchIndex,
|
|
RiaDefines::RftBranchType branchType );
|
|
|
|
void setDataSource( RimSummaryCase* summaryCase, const QDateTime& timeStep, const QString& wellName, int segmentBranchIndex );
|
|
|
|
void applyDefaultAppearance();
|
|
|
|
QString wellName() const override;
|
|
QString wellLogChannelUiName() const override;
|
|
QString wellLogChannelUnits() const override;
|
|
|
|
static cvf::Color3f colorForBranchType( CurveType curveType );
|
|
static cvf::Color3f colorForRftBranchType( RiaDefines::RftBranchType branchType );
|
|
|
|
protected:
|
|
QString createCurveAutoName() override;
|
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
void onLoadDataAndUpdate( bool updateParentPlot ) override;
|
|
|
|
private:
|
|
caf::PdmPtrField<RimSummaryCase*> m_summaryCase;
|
|
caf::PdmField<QDateTime> m_timeStep;
|
|
caf::PdmField<QString> m_wellName;
|
|
caf::PdmField<int> m_segmentBranchIndex;
|
|
caf::PdmField<caf::AppEnum<RiaDefines::RftBranchType>> m_segmentBranchType;
|
|
caf::PdmField<caf::AppEnum<RimRftTopologyCurve::CurveType>> m_curveType;
|
|
|
|
public:
|
|
void setAdditionalDataSources( const std::vector<RimPlotCurve*>& additionalDataSources );
|
|
};
|