mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
fd2989972d
* Add option to choose if the user wants to skip/invalidate long, thin cells.
81 lines
2.8 KiB
C++
81 lines
2.8 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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 <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "cafPdmField.h"
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "RiaDefines.h"
|
|
|
|
#include "RifReaderSettings.h"
|
|
|
|
#include <QString>
|
|
|
|
//==================================================================================================
|
|
///
|
|
///
|
|
//==================================================================================================
|
|
class RiaPreferencesGrid : public caf::PdmObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
using GridModelEnum = caf::AppEnum<RiaDefines::GridModelReader>;
|
|
|
|
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;
|
|
bool invalidateLongThinCells() const;
|
|
|
|
RiaDefines::GridModelReader gridModelReader() const;
|
|
void setGridModelReaderOverride( const std::string& readerName );
|
|
|
|
void appendItems( caf::PdmUiOrdering& uiOrdering );
|
|
|
|
private:
|
|
caf::PdmField<GridModelEnum> m_gridModelReader;
|
|
RiaDefines::GridModelReader m_gridModelReaderOverride;
|
|
|
|
caf::PdmField<bool> m_importFaults;
|
|
caf::PdmField<bool> m_importNNCs;
|
|
caf::PdmField<bool> m_includeInactiveCellsInFaultGeometry;
|
|
caf::PdmField<bool> m_importAdvancedMswData;
|
|
caf::PdmField<QString> m_includeFileAbsolutePathPrefix;
|
|
caf::PdmField<bool> m_useResultIndexFile;
|
|
caf::PdmField<bool> m_skipWellData;
|
|
caf::PdmField<bool> m_autoComputeDepthRelatedProperties;
|
|
caf::PdmField<bool> m_loadAndShowSoil;
|
|
caf::PdmField<bool> m_onlyLoadActiveCells;
|
|
caf::PdmField<bool> m_invalidateLongThinCells;
|
|
};
|