mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add reference well to well log extraction curve eclipse case (#9516)
This commit is contained in:
@@ -614,6 +614,7 @@ QStringList RimDepthTrackPlot::supportedPlotNameVariables() const
|
||||
{
|
||||
return { RiaDefines::namingVariableCase(),
|
||||
RiaDefines::namingVariableWell(),
|
||||
RiaDefines::namingVariableRefWell(),
|
||||
RiaDefines::namingVariableWellBranch(),
|
||||
RiaDefines::namingVariableTime(),
|
||||
RiaDefines::namingVariableAirGap() };
|
||||
@@ -626,8 +627,9 @@ std::map<QString, QString> RimDepthTrackPlot::createNameKeyValueMap() const
|
||||
{
|
||||
std::map<QString, QString> variableValueMap;
|
||||
|
||||
RimCase* commonCase = m_commonDataSource->caseToApply();
|
||||
RimWellPath* commonWellPath = m_commonDataSource->wellPathToApply();
|
||||
RimCase* commonCase = m_commonDataSource->caseToApply();
|
||||
RimWellPath* commonWellPath = m_commonDataSource->wellPathToApply();
|
||||
RimWellPath* commonRefWellPath = m_commonDataSource->referenceWellPathToApply();
|
||||
|
||||
if ( commonCase )
|
||||
{
|
||||
@@ -673,6 +675,11 @@ std::map<QString, QString> RimDepthTrackPlot::createNameKeyValueMap() const
|
||||
variableValueMap[RiaDefines::namingVariableWell()] = m_commonDataSource->simWellNameToApply();
|
||||
}
|
||||
|
||||
if ( commonRefWellPath && !commonRefWellPath->name().isEmpty() )
|
||||
{
|
||||
variableValueMap[RiaDefines::namingVariableRefWell()] = QString( "Ref. Well: %1" ).arg( commonRefWellPath->name() );
|
||||
}
|
||||
|
||||
if ( commonWellPath )
|
||||
{
|
||||
RigWellPath* wellPathGeometry = commonWellPath->wellPathGeometry();
|
||||
@@ -1267,6 +1274,7 @@ void RimDepthTrackPlot::defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimDepthTrackPlot::onLoadDataAndUpdate()
|
||||
{
|
||||
updateReferenceWellPathInCurves();
|
||||
updateMdiWindowVisibility();
|
||||
performAutoNameUpdate();
|
||||
updatePlots();
|
||||
@@ -1298,6 +1306,21 @@ caf::PdmFieldHandle* RimDepthTrackPlot::userDescriptionField()
|
||||
return &m_plotWindowTitle;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimDepthTrackPlot::updateReferenceWellPathInCurves()
|
||||
{
|
||||
for ( auto plot : this->plots() )
|
||||
{
|
||||
auto wellLogTrack = dynamic_cast<RimWellLogTrack*>( plot );
|
||||
for ( auto curve : wellLogTrack->curves() )
|
||||
{
|
||||
curve->setReferenceWellPath( m_commonDataSource->referenceWellPathToApply() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user