///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2015- Statoil ASA // Copyright (C) 2015- 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 "cvfBase.h" #include "cvfObject.h" #include "cvfVector3.h" #include #include #include class RigFemPartCollection; //================================================================================================== // // Data interface base class // //================================================================================================== class RifGeoMechReaderInterface : public cvf::Object { public: RifGeoMechReaderInterface(); virtual ~RifGeoMechReaderInterface(); virtual bool openFile(const std::string& fileName) = 0; virtual bool readFemParts(RigFemPartCollection* geoMechCase) = 0; virtual std::vector stepNames() = 0; virtual std::vector frameTimes(int stepIndex) = 0; virtual std::map > scalarNodeFieldAndComponentNames() = 0; virtual std::map > scalarElementNodeFieldAndComponentNames() = 0; virtual std::map > scalarIntegrationPointFieldAndComponentNames() = 0; virtual void readScalarNodeField(const std::string& fieldName, const std::string& componmentName, int partIndex, int stepIndex, int frameIndex, std::vector* resultValues) = 0; virtual void readDisplacements(int partIndex, int stepIndex, int frameIndex, std::vector* displacements) = 0; private: };