///////////////////////////////////////////////////////////////////////////////// // // 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 "cafPdmField.h" #include "cafPdmObject.h" #include "RiaDefines.h" #include "RifReaderSettings.h" #include //================================================================================================== /// /// //================================================================================================== class RiaPreferencesGrid : public caf::PdmObject { CAF_PDM_HEADER_INIT; using GridModelEnum = caf::AppEnum; public: RiaPreferencesGrid(); static RiaPreferencesGrid* current(); static RifReaderSettings gridOnlyReaderSettings(); RifReaderSettings readerSettings(); bool importFaults() const; bool importNNCs() const; bool includeInactiveCellsInFaultGeometry() const; bool importAdvancedMswData() const; QString includeFileAbsolutePathPrefix() const; bool useResultIndexFile() const; bool skipWellData() const; bool loadAndShowSoil() const; bool autoComputeDepthRelatedProperties() const; bool onlyLoadActiveCells() const; RiaDefines::GridModelReader gridModelReader() const; void setGridModelReaderOverride( const std::string& readerName ); void appendItems( caf::PdmUiOrdering& uiOrdering ); private: caf::PdmField m_gridModelReader; RiaDefines::GridModelReader m_gridModelReaderOverride; caf::PdmField m_importFaults; caf::PdmField m_importNNCs; caf::PdmField m_includeInactiveCellsInFaultGeometry; caf::PdmField m_importAdvancedMswData; caf::PdmField m_includeFileAbsolutePathPrefix; caf::PdmField m_useResultIndexFile; caf::PdmField m_skipWellData; caf::PdmField m_autoComputeDepthRelatedProperties; caf::PdmField m_loadAndShowSoil; caf::PdmField m_onlyLoadActiveCells; };