///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2025 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 "cafPdmChildArrayField.h" #include "cafPdmField.h" #include "cafPdmObject.h" #include "cvfObject.h" #include #include class RigImportedWellLogData; class RimWellLogChannelData; //================================================================================================== /// PDM class for storing imported well log data that can be persisted to project files //================================================================================================== class RimImportedWellLogData : public caf::PdmObject { CAF_PDM_HEADER_INIT; public: RimImportedWellLogData(); // Setters for data void setDepthValues( const std::vector& depths ); void setTvdMslValues( const std::vector& tvdMsl ); void setTvdRkbValues( const std::vector& tvdRkb ); void setChannelData( const QString& name, const std::vector& values ); // Getters for data std::vector depthValues() const; std::vector tvdMslValues() const; std::vector tvdRkbValues() const; std::vector channelNames() const; std::vector channelValues( const QString& name ) const; bool hasTvdMslValues() const; bool hasTvdRkbValues() const; // Method to produce RigImportedWellLogData from PDM data cvf::ref createRigData() const; private: caf::PdmField> m_depthValues; caf::PdmField> m_tvdMslValues; caf::PdmField> m_tvdRkbValues; caf::PdmChildArrayField m_channelDataObjects; };