Files
ResInsight/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleStatistics.h
T

97 lines
3.5 KiB
C++
Raw Normal View History

2018-06-07 10:02:54 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2017- Statoil ASA
//
2018-06-07 10:02:54 +02: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.
//
2018-06-07 10:02:54 +02: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>
2018-06-07 10:02:54 +02:00
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cafPdmField.h"
2021-06-02 13:11:47 +02:00
#include "cafPdmFieldCvfColor.h"
2018-06-07 10:02:54 +02:00
#include "cafPdmObject.h"
2023-10-04 07:48:32 +02:00
#include "cafPdmProxyValueField.h"
2018-06-07 10:02:54 +02:00
2021-06-02 13:11:47 +02:00
class RimEnsembleCurveSetInterface;
2018-06-07 10:02:54 +02:00
//==================================================================================================
///
2018-06-07 10:02:54 +02:00
//==================================================================================================
class RimEnsembleStatistics : public caf::PdmObject
{
CAF_PDM_HEADER_INIT;
public:
2021-06-02 13:11:47 +02:00
RimEnsembleStatistics( RimEnsembleCurveSetInterface* parentCurveSet = nullptr );
2018-06-07 10:02:54 +02:00
2023-04-19 15:36:06 +02:00
bool isActive() const;
void setShowStatisticsCurves( bool show );
2023-10-04 07:48:32 +02:00
bool showStatisticsCurveLegends() const;
bool hideEnsembleCurves() const;
bool basedOnFilteredCases() const;
bool showP10Curve() const;
bool showP50Curve() const;
bool showP90Curve() const;
bool showMeanCurve() const;
2023-04-19 15:36:06 +02:00
2023-10-04 07:48:32 +02:00
bool showCurveLabels() const;
void enableCurveLabels( bool enable );
2023-04-19 15:36:06 +02:00
cvf::Color3f color() const { return m_color; }
2023-10-04 07:48:32 +02:00
void setColor( const cvf::Color3f& color );
2023-10-04 07:48:32 +02:00
bool includeIncompleteCurves() const;
2023-09-25 12:45:47 +02:00
int crossPlotCurvesBinCount() const;
2023-09-28 14:32:32 +02:00
int crossPlotRealizationCountThresholdPerBin() const;
2023-09-25 12:45:47 +02:00
void disableP10Curve( bool disable );
void disableP50Curve( bool disable );
void disableP90Curve( bool disable );
void disableMeanCurve( bool disable );
2023-04-19 15:36:06 +02:00
void showColorField( bool show );
2023-10-12 14:57:09 +02:00
void defaultUiOrdering( bool showCrossPlotGroup, caf::PdmUiOrdering& uiOrdering );
2018-06-07 10:02:54 +02:00
2023-10-04 07:48:32 +02:00
private:
2023-10-12 14:57:09 +02:00
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
2023-10-04 07:48:32 +02:00
bool onShowEnsembleCurves() const;
void onSetShowEnsembleCurves( const bool& enable );
private:
2021-06-02 13:11:47 +02:00
RimEnsembleCurveSetInterface* m_parentCurveSet;
2018-06-07 10:02:54 +02:00
2023-10-04 07:48:32 +02:00
caf::PdmField<bool> m_active;
caf::PdmField<bool> m_showStatisticsCurveLegends;
caf::PdmField<bool> m_hideEnsembleCurves;
caf::PdmProxyValueField<bool> m_showEnsembleCurves;
caf::PdmField<bool> m_basedOnFilteredCases;
caf::PdmField<bool> m_showP10Curve;
caf::PdmField<bool> m_showP50Curve;
caf::PdmField<bool> m_showP90Curve;
caf::PdmField<bool> m_showMeanCurve;
caf::PdmField<bool> m_showCurveLabels;
caf::PdmField<bool> m_includeIncompleteCurves;
2018-06-07 10:02:54 +02:00
2023-09-25 12:45:47 +02:00
// Ensemble cross plot settings
caf::PdmField<int> m_crossPlotCurvesBinCount;
2023-09-28 14:32:32 +02:00
caf::PdmField<int> m_crossPlotCurvesStatisticsRealizationCountThresholdPerBin;
2023-09-25 12:45:47 +02:00
caf::PdmField<QString> m_warningLabel;
2023-04-19 15:36:06 +02:00
bool m_showColorField;
caf::PdmField<cvf::Color3f> m_color;
2018-06-07 10:02:54 +02:00
};