///////////////////////////////////////////////////////////////////////////////// // // 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 "RiaGridDefines.h" #include struct RifReaderSettings; //================================================================================================== /// /// //================================================================================================== 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 autoComputeDepthRelatedProperties() const; bool onlyLoadActiveCells() const; bool invalidateLongThinCells() const; QString preferredDynamicResult() const; RiaDefines::GridModelReader gridModelReader() const; void setGridModelReaderOverride( const std::string& readerName ); void setGridModelReaderOverride( const RiaDefines::GridModelReader readerType ); RiaDefines::GridModelReader gridModelReaderOverride() const; RiaGridDefines::RadialGridMode radialGridMode() const; void appendItems( caf::PdmUiOrdering& uiOrdering ); protected: QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override; 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_onlyLoadActiveCells; caf::PdmField m_invalidateLongThinCells; caf::PdmField m_preferredDynamicResult; caf::PdmField> m_radialGridMode; };