2016-06-13 06:29:40 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 Statoil 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 "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cafPdmPointer.h"
|
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
|
|
|
|
#include "RimPlotCurve.h"
|
|
|
|
#include "RifEclipseSummaryAddress.h"
|
|
|
|
#include "cafAppEnum.h"
|
|
|
|
|
|
|
|
#include "RimSummaryCurve.h"
|
|
|
|
|
|
|
|
class RimSummaryCase;
|
|
|
|
class RifReaderEclipseSummary;
|
|
|
|
class RiuLineSegmentQwtPlotCurve;
|
|
|
|
|
2016-06-15 08:18:45 -05:00
|
|
|
Q_DECLARE_METATYPE(RifEclipseSummaryAddress);
|
|
|
|
|
2016-06-13 06:29:40 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimSummaryCurveFilter : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
RimSummaryCurveFilter();
|
|
|
|
virtual ~RimSummaryCurveFilter();
|
|
|
|
|
|
|
|
void loadDataAndUpdate() {}
|
2016-06-13 07:50:28 -05:00
|
|
|
void setParentQwtPlot(QwtPlot* plot);
|
|
|
|
void detachQwtCurve();
|
2016-06-13 06:29:40 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
RifReaderEclipseSummary* summaryReader();
|
2016-06-15 08:18:45 -05:00
|
|
|
void syncronizeCurves();
|
2016-06-13 06:29:40 -05:00
|
|
|
|
|
|
|
// Overridden PDM methods
|
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly);
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
|
|
|
|
// Fields
|
|
|
|
caf::PdmPtrField<RimSummaryCase*> m_selectedSummaryCase;
|
|
|
|
caf::PdmChildArrayField<RimSummaryCurve*> m_curves;
|
|
|
|
|
|
|
|
caf::PdmField<QString> m_selectedVariableDisplayField;
|
|
|
|
|
|
|
|
// Filter fields
|
|
|
|
|
|
|
|
caf::PdmField<caf::AppEnum<RimSummaryCurve::SummaryFilterType> >
|
|
|
|
m_filterType;
|
|
|
|
caf::PdmField<QString> m_completeVarStringFilter;
|
|
|
|
|
|
|
|
caf::PdmField<QString> m_filterQuantityName;
|
|
|
|
caf::PdmField<QString> m_regionNumberFilter;
|
|
|
|
caf::PdmField<QString> m_regionNumber2Filter;
|
|
|
|
caf::PdmField<QString> m_wellGroupNameFilter;
|
|
|
|
caf::PdmField<QString> m_wellNameFilter;
|
|
|
|
caf::PdmField<QString> m_wellSegmentNumberFilter;
|
|
|
|
caf::PdmField<QString> m_lgrNameFilter;
|
|
|
|
caf::PdmField<QString> m_cellIJKFilter;
|
|
|
|
|
2016-06-15 08:18:45 -05:00
|
|
|
caf::PdmField<std::vector<RifEclipseSummaryAddress> > m_uiFilterResultMultiSelection;
|
2016-06-13 06:29:40 -05:00
|
|
|
|
|
|
|
};
|
2016-06-15 08:18:45 -05:00
|
|
|
|