///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2011-2012 Statoil ASA, Ceetron AS // // 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 "cvfObject.h" #include "cvfMath.h" #include "cvfVector3.h" #include //================================================================================================== /// //================================================================================================== class RigWellPath : public cvf::Object { public: RigWellPath(); std::vector m_wellPathPoints; std::vector m_measuredDepths; void setDatumElevation(double value); bool hasDatumElevation() const; double datumElevation() const; cvf::Vec3d interpolatedPointAlongWellPath(double measuredDepth) const; double wellPathAzimuthAngle(const cvf::Vec3d& position) const; void twoClosestPoints(const cvf::Vec3d& position, cvf::Vec3d* p1, cvf::Vec3d* p2) const; std::pair, std::vector > clippedPointSubset(double startMD, double endMD) const; std::vector wellPathPointsIncludingFractureIntersection(double fractureIntersectionMD) const; private: bool m_hasDatumElevation; double m_datumElevation; };