2017-05-16 02:43:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- 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 <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-30 08:35:03 -06:00
|
|
|
#include "RicCaseAndFileExportSettingsUi.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
2017-06-14 08:30:50 -05:00
|
|
|
#include "cafAppEnum.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-05-30 07:37:51 -05:00
|
|
|
class RicExportCompletionDataSettingsUi : public RicCaseAndFileExportSettingsUi
|
2017-05-16 02:43:41 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2017-06-14 08:30:50 -05:00
|
|
|
enum ExportSplit {
|
|
|
|
UNIFIED_FILE,
|
|
|
|
SPLIT_ON_WELL,
|
|
|
|
SPLIT_ON_WELL_AND_COMPLETION_TYPE,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<ExportSplit> ExportSplitType;
|
|
|
|
|
2017-06-21 03:58:02 -05:00
|
|
|
enum CompdatExport {
|
|
|
|
TRANSMISSIBILITIES,
|
|
|
|
WPIMULT_AND_DEFAULT_CONNECTION_FACTORS,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<CompdatExport> CompdatExportType;
|
|
|
|
|
2018-04-13 05:13:27 -05:00
|
|
|
enum CombinationMode
|
|
|
|
{
|
|
|
|
INDIVIDUALLY,
|
|
|
|
COMBINED,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<CombinationMode> CombinationModeType;
|
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
|
2017-05-30 07:37:51 -05:00
|
|
|
RicExportCompletionDataSettingsUi();
|
2017-05-16 02:43:41 -05:00
|
|
|
|
2018-04-13 05:13:27 -05:00
|
|
|
caf::PdmField<int> timeStep;
|
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
caf::PdmField<ExportSplitType> fileSplit;
|
2017-06-21 03:58:02 -05:00
|
|
|
caf::PdmField<CompdatExportType> compdatExport;
|
|
|
|
|
2017-09-20 08:24:29 -05:00
|
|
|
caf::PdmField<bool> useLateralNTG;
|
2017-05-29 06:13:25 -05:00
|
|
|
caf::PdmField<bool> includePerforations;
|
|
|
|
caf::PdmField<bool> includeFishbones;
|
2017-06-21 08:54:18 -05:00
|
|
|
caf::PdmField<bool> excludeMainBoreForFishbones;
|
2018-04-13 05:13:27 -05:00
|
|
|
caf::PdmField<bool> includeFractures;
|
|
|
|
|
2017-06-12 05:03:42 -05:00
|
|
|
void showForSimWells();
|
|
|
|
void showForWellPath();
|
|
|
|
|
2018-04-13 05:13:27 -05:00
|
|
|
void setCombinationMode(CombinationMode combinationMode);
|
|
|
|
|
|
|
|
void showFractureInUi(bool enable);
|
|
|
|
void showPerforationsInUi(bool enable);
|
|
|
|
void showFishbonesInUi(bool enable);
|
|
|
|
|
|
|
|
bool reportCompletionsTypesIndividually() const;
|
2018-04-09 04:23:14 -05:00
|
|
|
|
2017-08-14 15:30:22 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
|
|
|
|
2017-05-30 08:42:05 -05:00
|
|
|
protected:
|
2017-06-12 05:03:42 -05:00
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
|
|
|
|
private:
|
2018-04-13 05:13:27 -05:00
|
|
|
caf::PdmField<CombinationModeType> m_reportCompletionTypesSeparately;
|
2018-04-09 04:23:14 -05:00
|
|
|
|
2018-04-13 05:13:27 -05:00
|
|
|
bool m_displayForSimWell;
|
|
|
|
bool m_fracturesEnabled;
|
|
|
|
bool m_perforationsEnabled;
|
|
|
|
bool m_fishbonesEnabled;
|
2017-05-16 02:43:41 -05:00
|
|
|
};
|