Files
ResInsight/ApplicationLibCode/ProjectDataModel/Flow/RimWellRftEnsembleCurveSet.h
T

83 lines
3.1 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
// 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 "RimEnsembleCurveSetColorManager.h"
#include "cafPdmChildField.h"
#include "cafPdmObject.h"
#include "cafPdmProxyValueField.h"
#include "cafPdmPtrField.h"
#include "cvfColor3.h"
class RiuCvfOverlayItemWidget;
class RimSummaryEnsemble;
2023-09-04 10:08:30 +02:00
class RimEclipseCase;
class RifReaderEnsembleStatisticsRft;
class RifReaderRftInterface;
class RimCurveSetAppearance;
class RimSummaryCase;
class RimRegularLegendConfig;
class RimWellRftEnsembleCurveSet : public caf::PdmObject
{
CAF_PDM_HEADER_INIT;
public:
RimWellRftEnsembleCurveSet();
~RimWellRftEnsembleCurveSet() override;
void setEnsemble( RimSummaryEnsemble* ensemble );
RimSummaryEnsemble* ensemble() const;
QString ensembleName() const;
void setCurveColor( const cvf::Color3f& color );
cvf::Color3f curveColor( RimSummaryEnsemble* ensemble, const RimSummaryCase* summaryCase ) const;
RimRegularLegendConfig* legendConfig();
2023-09-04 10:08:30 +02:00
void setEclipseCase( RimEclipseCase* eclipseCase );
RimEclipseCase* eclipseCase() const;
RifReaderRftInterface* statisticsEclipseRftReader();
void clearEnsembleStatistics();
2023-09-04 10:08:30 +02:00
private:
2020-02-12 11:43:15 +01:00
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
2023-02-26 10:48:40 +01:00
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "" ) override;
caf::PdmFieldHandle* userDescriptionField() override;
void initAfterRead() override;
void updatePlot( const SignalEmitter* emitter );
private:
caf::PdmPtrField<RimEclipseCase*> m_eclipseCase;
caf::PdmPtrField<RimSummaryEnsemble*> m_ensemble;
caf::PdmProxyValueField<QString> m_ensembleName;
caf::PdmChildField<RimCurveSetAppearance*> m_appearance;
2023-09-04 10:08:30 +02:00
std::unique_ptr<RifReaderEnsembleStatisticsRft> m_statisticsEclipseRftReader;
2023-09-04 10:08:30 +02:00
caf::PdmField<RimEnsembleCurveSetColorManager::ColorModeEnum> m_ensembleColorMode_OBSOLETE;
caf::PdmField<QString> m_ensembleParameter_OBSOLETE;
};