2019-12-17 02:20:40 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2019- 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 "RiaDefines.h"
|
2019-12-19 04:11:33 -06:00
|
|
|
#include "RimMultiPlotWindow.h"
|
2019-12-17 02:20:40 -06:00
|
|
|
|
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
class RimEclipseResultCase;
|
|
|
|
class RimFlowDiagSolution;
|
|
|
|
class RigTofWellDistributionCalculator;
|
|
|
|
|
|
|
|
class QTextBrowser;
|
|
|
|
class QwtPlot;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RimWellDistributionPlotCollection : public RimMultiPlotWindow
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimWellDistributionPlotCollection();
|
|
|
|
~RimWellDistributionPlotCollection() override;
|
|
|
|
|
2020-01-12 09:51:32 -06:00
|
|
|
void setData( RimEclipseResultCase* eclipseCase, QString wellName, int timeStepIndex );
|
|
|
|
|
2019-12-17 02:20:40 -06:00
|
|
|
private:
|
|
|
|
// RimPlotWindow overrides
|
2019-12-19 04:55:34 -06:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
|
|
bool* useOptionsOnly ) override;
|
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
|
|
|
const QVariant& oldValue,
|
|
|
|
const QVariant& newValue ) override;
|
2019-12-17 02:20:40 -06:00
|
|
|
|
2019-12-19 04:55:34 -06:00
|
|
|
void onLoadDataAndUpdate() override;
|
2019-12-17 02:20:40 -06:00
|
|
|
|
|
|
|
private:
|
2019-12-19 04:55:34 -06:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void fixupDependentFieldsAfterCaseChange();
|
|
|
|
void applyPlotParametersToContainedPlots();
|
2019-12-17 02:20:40 -06:00
|
|
|
|
|
|
|
private:
|
|
|
|
caf::PdmPtrField<RimEclipseResultCase*> m_case;
|
|
|
|
caf::PdmField<int> m_timeStepIndex;
|
|
|
|
caf::PdmField<QString> m_wellName;
|
2019-12-17 08:43:05 -06:00
|
|
|
caf::PdmField<bool> m_groupSmallContributions;
|
|
|
|
caf::PdmField<double> m_smallContributionsRelativeThreshold;
|
2020-01-12 06:27:18 -06:00
|
|
|
caf::PdmField<double> m_maximumTof;
|
2019-12-17 02:20:40 -06:00
|
|
|
};
|