///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2026- 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RiaWellLogTrackDefines.h" #include "Well/RigWellPathFormations.h" #include "cafAppEnum.h" #include "cafPdmField.h" #include "cafPdmObject.h" #include "cafPdmPtrField.h" class RimCase; class RimWellPath; class RimWellLogTrack; //================================================================================================== /// /// Settings class for formation/trajectory configuration in well log tracks /// //================================================================================================== class RimWellLogFormationSettings : public caf::PdmObject { CAF_PDM_HEADER_INIT; public: RimWellLogFormationSettings(); // Formation source RiaDefines::WellLogTrackFormationSource formationSource() const; void setFormationSource( RiaDefines::WellLogTrackFormationSource source ); // Formation case RimCase* formationCase() const; void setFormationCase( RimCase* rimCase ); // Trajectory type RiaDefines::WellLogTrackTrajectoryType trajectoryType() const; void setTrajectoryType( RiaDefines::WellLogTrackTrajectoryType trajectoryType ); // Well paths RimWellPath* wellPathForSourceCase() const; void setWellPathForSourceCase( RimWellPath* wellPath ); RimWellPath* wellPathForSourceWellPath() const; void setWellPathForSourceWellPath( RimWellPath* wellPath ); // Simulation well QString simWellName() const; void setSimWellName( const QString& simWellName ); int branchIndex() const; void setBranchIndex( int branchIndex ); bool branchDetection() const; void setBranchDetection( bool branchDetection ); // Formation level RiaDefines::WellLogTrackFormationLevel formationLevel() const; void setFormationLevel( RiaDefines::WellLogTrackFormationLevel level ); // Show fluids bool showFormationFluids() const; void setShowFormationFluids( bool show ); // UI ordering helper void uiOrdering( const QString& uiConfigName, caf::PdmUiOrdering& uiOrdering, bool formationsForCaseWithSimWellOnly ); protected: void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override; QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override; private: caf::PdmField> m_formationSource; caf::PdmPtrField m_formationCase; caf::PdmField> m_formationTrajectoryType; caf::PdmPtrField m_formationWellPathForSourceCase; caf::PdmPtrField m_formationWellPathForSourceWellPath; caf::PdmField m_formationSimWellName; caf::PdmField m_formationBranchIndex; caf::PdmField m_formationBranchDetection; caf::PdmField> m_formationLevel; caf::PdmField m_showFormationFluids; };