///////////////////////////////////////////////////////////////////////////////// // // 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 "cvfBase.h" #include "cvfVector3.h" #include //================================================================================================== /// /// //================================================================================================== class RigSimulationWellCoordsAndMD { public: explicit RigSimulationWellCoordsAndMD(const std::vector& wellPathPoints); const std::vector& wellPathPoints() const; const std::vector& measuredDepths() const; cvf::Vec3d interpolatedPointAlongWellPath(double measuredDepth) const; double locationAlongWellCoords(const cvf::Vec3d& position) const; size_t findClosestIndex(const cvf::Vec3d& position) const; double simWellAzimuthAngle(const cvf::Vec3d& position) const; double simWellDipAngle(const cvf::Vec3d& position) const; private: void computeMeasuredDepths(); private: std::vector m_wellPathPoints; std::vector m_measuredDepths; };