///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2017 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RifDataSourceForRftPltQMetaType.h" #include "RimWellLogPlot.h" #include "RimWellPlotTools.h" #include "cafPdmChildArrayField.h" #include "cafPdmField.h" #include "cafPdmObject.h" #include "cafPdmPtrField.h" #include "cvfCollection.h" #include #include #include #include #include class RimEclipseCase; class RimEclipseResultCase; class RimWellLogCurve; class RimWellLogFileChannel; class RimWellPath; class RiuWellPltPlot; class RimWellLogTrack; class RiaRftPltCurveDefinition; class RimDataSourceForRftPlt; namespace cvf { class Color3f; } namespace caf { class PdmOptionItemInfo; } //================================================================================================== /// /// //================================================================================================== class RimWellPltPlot : public RimWellLogPlot { CAF_PDM_HEADER_INIT; static const char PLOT_NAME_QFORMAT_STRING[]; public: RimWellPltPlot(); ~RimWellPltPlot() override; void setCurrentWellName( const QString& currWellName ); static const char* plotNameFormatString(); protected: // Overridden PDM methods void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override; void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName ) override; QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly ) override; void calculateValueOptionsForWells( QList& options ); void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override; void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override; void onLoadDataAndUpdate() override; void initAfterRead() override; void setupBeforeSave() override; void initAfterLoad(); private: void syncSourcesIoFieldFromGuiField(); void syncCurvesFromUiSelection(); std::set selectedCurveDefs() const; void addStackedCurve( const QString& tracerName, const std::vector& depthValues, const std::vector& accFlow, RimWellLogTrack* plotTrack, cvf::Color3f color, int curveGroupId, bool doFillCurve ); std::vector selectedSourcesExpanded() const; // RimViewWindow overrides void setPlotXAxisTitles( RimWellLogTrack* plotTrack ); void updateFormationsOnPlot() const; private: caf::PdmField m_wellPathName; caf::PdmField> m_selectedSources; caf::PdmChildArrayField m_selectedSourcesForIo; caf::PdmField> m_selectedTimeSteps; caf::PdmChildField m_wellLogPlot_OBSOLETE; caf::PdmField m_useStandardConditionCurves; caf::PdmField m_useReservoirConditionCurves; caf::PdmField>> m_phases; bool m_doInitAfterLoad; bool m_isOnLoad; };