///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2016- 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 "cvfCollection.h" #include #include class RimWellLogCurve; class RigWellLogCurveData; class SingleLasFileMetaData; class RigLasFileExporter { public: explicit RigLasFileExporter( const std::vector& curves ); void setResamplingInterval( double interval ); void wellPathsAndRkbDiff( std::vector* wellNames, std::vector* rkbDiffs ); void setRkbDiffs( const std::vector& wellNames, const std::vector& rkbDiffs ); std::vector writeToFolder( const QString& exportFolder, const QString& filePrefix = "", bool capitalizeFileName = false, bool alwaysOverwrite = false, bool convertCurveUnits = false ); private: std::vector createLasFileDescriptions( const std::vector& curves, bool convertCurveUnits ); void appendLasFileDescriptions( const std::vector& curves, std::vector* lasFileDescriptions, bool convertCurveUnits ); QString caseNameFromCurve( RimWellLogCurve* curve ); double rkbDiff( RimWellLogCurve* curve ); void applyUserDefinedRkbOffsets( std::vector* lasFileDescriptions ); private: std::vector m_curves; std::vector m_userDefinedRkbOffsets; bool m_isResampleActive; double m_resamplingInterval; cvf::Collection m_resampledCurveDatas; };