///////////////////////////////////////////////////////////////////////////////// // // 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 "RiaDefines.h" #include "cvfVector2.h" #include #include #include #include #include #include namespace RiaDefines { enum class WellLogTrackFormationLevel; } struct RigWellPathFormation { double mdTop{ 0.0 }; double mdBase{ 0.0 }; double tvdTop{ 0.0 }; double tvdBase{ 0.0 }; QString formationName; std::optional topXY; }; //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- class RigWellPathFormations { public: using FormationLevel = RiaDefines::WellLogTrackFormationLevel; public: RigWellPathFormations( const std::vector& formations, const QString& filePath, const QString& key ); // Returns formation names and depths as parallel vectors std::pair, std::vector> depthAndFormationNamesUpToLevel( FormationLevel level, bool includeFluids, RiaDefines::DepthType depthType ) const; // Returns formation name and (top, base) depth range per zone, for shaded region plotting. std::vector> depthRangesUpToLevel( FormationLevel level, RiaDefines::DepthType depthType ) const; std::vector formationsLevelsPresent() const; QString filePath() const; QString keyInFile() const; size_t formationNamesCount() const; size_t formationCount() const; const RigWellPathFormation& formationAt( size_t index ) const; private: QString m_filePath; QString m_keyInFile; std::set m_formationsLevelsPresent; std::vector> m_formations; std::vector m_fluids; };