mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactored ensemble parameter legends
This commit is contained in:
@@ -37,10 +37,11 @@
|
||||
#include "cafPdmPtrField.h"
|
||||
|
||||
#include "RifEclipseSummaryAddressQMetaType.h"
|
||||
#include "RimEnsembleParameterColorHandlerInterface.h"
|
||||
#include "cafPdmProxyValueField.h"
|
||||
|
||||
class QwtPlot;
|
||||
class QwtPlotCurve;
|
||||
#include <QPointer>
|
||||
|
||||
class RimSummaryCase;
|
||||
class RimSummaryCaseCollection;
|
||||
class RimSummaryCurve;
|
||||
@@ -50,25 +51,21 @@ class RimSummaryPlotSourceStepping;
|
||||
class RimSummaryCurveAutoName;
|
||||
class RimEnsembleCurveFilterCollection;
|
||||
class RimEnsembleStatistics;
|
||||
class QKeyEvent;
|
||||
class RimEnsembleStatisticsCase;
|
||||
class RiuCvfOverlayItemWidget;
|
||||
|
||||
class QwtPlot;
|
||||
class QwtPlotCurve;
|
||||
class QKeyEvent;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimEnsembleCurveSet : public caf::PdmObject
|
||||
class RimEnsembleCurveSet : public caf::PdmObject, public RimEnsembleParameterColorHandlerInterface
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
enum ColorMode
|
||||
{
|
||||
SINGLE_COLOR,
|
||||
BY_ENSEMBLE_PARAM
|
||||
};
|
||||
|
||||
typedef std::pair<QString, EnsembleParameter> NameParameterPair;
|
||||
|
||||
RimEnsembleCurveSet();
|
||||
~RimEnsembleCurveSet() override;
|
||||
|
||||
@@ -90,20 +87,21 @@ public:
|
||||
void deleteEnsembleCurves();
|
||||
void deleteStatisticsCurves();
|
||||
|
||||
RimRegularLegendConfig* legendConfig();
|
||||
void onLegendDefinitionChanged();
|
||||
void onLegendDefinitionChanged();
|
||||
|
||||
void setSummaryCaseCollection( RimSummaryCaseCollection* sumCaseCollection );
|
||||
RimSummaryCaseCollection* summaryCaseCollection() const;
|
||||
|
||||
RimEnsembleCurveFilterCollection* filterCollection() const;
|
||||
|
||||
ColorMode colorMode() const;
|
||||
void setColorMode( ColorMode mode );
|
||||
void setEnsembleParameter( const QString& parameterName );
|
||||
void updateEnsembleLegendItem();
|
||||
ColorMode colorMode() const override;
|
||||
void setColorMode( ColorMode mode ) override;
|
||||
void setEnsembleParameter( const QString& parameterName ) override;
|
||||
void updateEnsembleLegendItem() override;
|
||||
RimRegularLegendConfig* legendConfig() override;
|
||||
QFrame* legendFrame() const override;
|
||||
|
||||
EnsembleParameter::Type currentEnsembleParameterType() const;
|
||||
static QString ensembleParameterUiName( const NameParameterPair& paramPair );
|
||||
|
||||
void updateAllCurves();
|
||||
void updateStatisticsCurves();
|
||||
@@ -169,9 +167,9 @@ private:
|
||||
caf::PdmField<RifEclipseSummaryAddress> m_yValuesSummaryAddressUiField;
|
||||
caf::PdmField<bool> m_yPushButtonSelectSummaryAddress;
|
||||
|
||||
caf::PdmField<caf::AppEnum<ColorMode>> m_colorMode;
|
||||
caf::PdmField<cvf::Color3f> m_color;
|
||||
caf::PdmField<QString> m_ensembleParameter;
|
||||
caf::PdmField<ColorModeEnum> m_colorMode;
|
||||
caf::PdmField<cvf::Color3f> m_color;
|
||||
caf::PdmField<QString> m_ensembleParameter;
|
||||
|
||||
caf::PdmField<caf::AppEnum<RiaDefines::PlotAxis>> m_plotAxis;
|
||||
|
||||
@@ -184,7 +182,8 @@ private:
|
||||
caf::PdmProxyValueField<QString> m_autoGeneratedName;
|
||||
caf::PdmChildField<RimSummaryCurveAutoName*> m_summaryAddressNameTools;
|
||||
|
||||
QwtPlotCurve* m_qwtPlotCurveForLegendText;
|
||||
QwtPlotCurve* m_qwtPlotCurveForLegendText;
|
||||
QPointer<RiuCvfOverlayItemWidget> m_legendOverlayFrame;
|
||||
|
||||
std::unique_ptr<RimEnsembleStatisticsCase> m_ensembleStatCase;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user