mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Move Reference Well functionality to WellLogExtractionCurve
* Remove reference well feature from plot objects * Move Reference Well functionality to WellLogExtractionCurve * Reset reference well selection if new selected well path equals ref
This commit is contained in:
committed by
Magne Sjaastad
parent
80086a04f4
commit
3e8c85a202
@@ -628,9 +628,8 @@ std::map<QString, QString> RimDepthTrackPlot::createNameKeyValueMap() const
|
||||
{
|
||||
std::map<QString, QString> variableValueMap;
|
||||
|
||||
RimCase* commonCase = m_commonDataSource->caseToApply();
|
||||
RimWellPath* commonWellPath = m_commonDataSource->wellPathToApply();
|
||||
RimWellPath* commonRefWellPath = m_commonDataSource->referenceWellPathToApply();
|
||||
RimCase* commonCase = m_commonDataSource->caseToApply();
|
||||
RimWellPath* commonWellPath = m_commonDataSource->wellPathToApply();
|
||||
|
||||
if ( commonCase )
|
||||
{
|
||||
@@ -676,11 +675,6 @@ 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();
|
||||
@@ -1275,7 +1269,6 @@ void RimDepthTrackPlot::defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimDepthTrackPlot::onLoadDataAndUpdate()
|
||||
{
|
||||
updateReferenceWellPathInCurves();
|
||||
updateMdiWindowVisibility();
|
||||
performAutoNameUpdate();
|
||||
updatePlots();
|
||||
@@ -1307,21 +1300,6 @@ 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