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:
Jørgen Herje
2023-01-23 15:07:48 +01:00
committed by Magne Sjaastad
parent 80086a04f4
commit 3e8c85a202
9 changed files with 30 additions and 135 deletions

View File

@@ -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() );
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------