mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
#6878 Export Completion: Add settings from command file commands
This commit is contained in:
parent
d002ee1d6e
commit
69a03df9da
@ -69,6 +69,7 @@ RicfExportWellPathCompletions::RicfExportWellPathCompletions()
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitScriptableField( &m_includeMsw, "includeMsw", true, "Export Multi Segment Well Model", "", "", "" );
|
||||
CAF_PDM_InitScriptableField( &m_useLateralNTG, "useNtgHorizontally", false, "Use NTG Horizontally", "", "", "" );
|
||||
CAF_PDM_InitScriptableField( &m_includePerforations, "includePerforations", true, "Include Perforations", "", "", "" );
|
||||
CAF_PDM_InitScriptableField( &m_includeFishbones, "includeFishbones", true, "Include Fishbones", "", "", "" );
|
||||
@ -110,6 +111,16 @@ RicfExportWellPathCompletions::RicfExportWellPathCompletions()
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitScriptableField( &m_exportWelspec, "exportWelspec", true, "Export WELSPEC keyword", "", "", "" );
|
||||
CAF_PDM_InitScriptableField( &m_completionWelspecAfterMainBore,
|
||||
"completionWelspecAfterMainBore",
|
||||
false,
|
||||
"WELSEGS per Completion Type",
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
CAF_PDM_InitScriptableField( &m_customFileName, "customFileName", QString(), "Custom Filename", "", "", "" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -139,6 +150,7 @@ caf::PdmScriptResponse RicfExportWellPathCompletions::execute()
|
||||
exportSettings.transScalingWBHPSource = m_transScalingInitialWBHP;
|
||||
exportSettings.transScalingWBHP = m_transScalingWBHP;
|
||||
|
||||
exportSettings.includeMsw = m_includeMsw;
|
||||
exportSettings.useLateralNTG = m_useLateralNTG;
|
||||
exportSettings.includePerforations = m_includePerforations;
|
||||
exportSettings.includeFishbones = m_includeFishbones;
|
||||
@ -147,6 +159,10 @@ caf::PdmScriptResponse RicfExportWellPathCompletions::execute()
|
||||
|
||||
exportSettings.setCombinationMode( m_combinationMode() );
|
||||
|
||||
exportSettings.setExportWelspec( m_exportWelspec );
|
||||
exportSettings.setExportCompletionWelspecAfterMainBore( m_completionWelspecAfterMainBore );
|
||||
exportSettings.setCustomFileName( m_customFileName );
|
||||
|
||||
{
|
||||
auto eclipseCase = TOOLS::caseFromId( m_caseId() );
|
||||
if ( !eclipseCase )
|
||||
|
@ -53,9 +53,17 @@ private:
|
||||
caf::PdmField<RicExportCompletionDataSettingsUi::TransScalingWBHPSource> m_transScalingInitialWBHP;
|
||||
caf::PdmField<double> m_transScalingWBHP;
|
||||
|
||||
caf::PdmField<bool> m_includeMsw;
|
||||
caf::PdmField<bool> m_useLateralNTG;
|
||||
caf::PdmField<bool> m_includePerforations;
|
||||
caf::PdmField<bool> m_includeFishbones;
|
||||
caf::PdmField<bool> m_includeFractures;
|
||||
caf::PdmField<bool> m_excludeMainBoreForFishbones;
|
||||
|
||||
// This is handeled by RicfCommandFileExecutor::exportDataSouceAsComment()
|
||||
// caf::PdmField<bool> m_exportDataSourceAsComment;
|
||||
|
||||
caf::PdmField<bool> m_exportWelspec;
|
||||
caf::PdmField<bool> m_completionWelspecAfterMainBore;
|
||||
caf::PdmField<QString> m_customFileName;
|
||||
};
|
||||
|
@ -213,6 +213,14 @@ bool RicExportCompletionDataSettingsUi::exportDataSourceAsComment() const
|
||||
return m_exportDataSourceAsComment;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicExportCompletionDataSettingsUi::setExportWelspec( bool enable )
|
||||
{
|
||||
m_exportWelspec = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -221,6 +229,14 @@ bool RicExportCompletionDataSettingsUi::exportWelspec() const
|
||||
return m_exportWelspec;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicExportCompletionDataSettingsUi::setExportCompletionWelspecAfterMainBore( bool enable )
|
||||
{
|
||||
m_completionWelspecAfterMainBore = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -229,6 +245,15 @@ bool RicExportCompletionDataSettingsUi::exportCompletionWelspecAfterMainBore() c
|
||||
return m_completionWelspecAfterMainBore();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicExportCompletionDataSettingsUi::setCustomFileName( const QString& fileName )
|
||||
{
|
||||
m_useCustomFileName = !fileName.isEmpty();
|
||||
m_customFileName = fileName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -89,17 +89,23 @@ public:
|
||||
void showForWellPath();
|
||||
|
||||
void setCombinationMode( CombinationMode combinationMode );
|
||||
void setExportDataSourceAsComment( bool enable );
|
||||
|
||||
void showFractureInUi( bool enable );
|
||||
void showPerforationsInUi( bool enable );
|
||||
void showFishbonesInUi( bool enable );
|
||||
|
||||
bool reportCompletionsTypesIndividually() const;
|
||||
|
||||
void setExportDataSourceAsComment( bool enable );
|
||||
bool exportDataSourceAsComment() const;
|
||||
|
||||
void setExportWelspec( bool enable );
|
||||
bool exportWelspec() const;
|
||||
|
||||
void setExportCompletionWelspecAfterMainBore( bool enable );
|
||||
bool exportCompletionWelspecAfterMainBore() const;
|
||||
|
||||
void setCustomFileName( const QString& fileName );
|
||||
QString customFileName() const;
|
||||
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
|
Loading…
Reference in New Issue
Block a user