///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) Statoil ASA // Copyright (C) Ceetron Solutions 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 "cvfVector3.h" #include #include #include #include class RigGeoMechCaseData; class RigFemResultAddress; class RiuFemTimeHistoryResultAccessor { public: RiuFemTimeHistoryResultAccessor( RigGeoMechCaseData* geomData, RigFemResultAddress femResultAddress, size_t gridIndex, int elementIndex, int face, const cvf::Vec3d& intersectionPointInDomain ); RiuFemTimeHistoryResultAccessor( RigGeoMechCaseData* geomData, RigFemResultAddress femResultAddress, size_t gridIndex, int elementIndex, int face, const cvf::Vec3d& intersectionPointInDomain, const std::array& m_intersectionTriangle ); QString geometrySelectionText() const; std::vector timeHistoryValues() const; int closestNodeId() const; private: void computeTimeHistoryData(); private: RigGeoMechCaseData* m_geoMechCaseData; std::unique_ptr m_femResultAddress; size_t m_gridIndex; int m_elementIndex; int m_face; int m_closestNodeId; cvf::Vec3d m_intersectionPointInDomain; bool m_hasIntersectionTriangle; std::array m_intersectionTriangle; std::vector m_timeHistoryValues; };