mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Link selection in 3D view with plots (#9195)
* Allow well selections in 3D view to update well selection in summary plots and well log plots
This commit is contained in:
committed by
Magne Sjaastad
parent
4b1a6b48a5
commit
d6ab69a154
@@ -239,11 +239,14 @@ QList<caf::PdmOptionItemInfo>
|
||||
{
|
||||
if ( fieldNeedingOptions == &m_vectorName )
|
||||
{
|
||||
m_cachedIdentifiers.clear();
|
||||
|
||||
auto displayAndValueStrings = optionsForQuantity( analyzer );
|
||||
|
||||
for ( const auto& displayAndValue : displayAndValueStrings )
|
||||
{
|
||||
options.append( caf::PdmOptionItemInfo( displayAndValue.first, displayAndValue.second ) );
|
||||
m_cachedIdentifiers.push_back( displayAndValue.first );
|
||||
}
|
||||
|
||||
if ( options.isEmpty() )
|
||||
@@ -294,11 +297,14 @@ QList<caf::PdmOptionItemInfo>
|
||||
identifierTexts = analyzer->identifierTexts( category, secondaryIdentifier );
|
||||
}
|
||||
|
||||
m_cachedIdentifiers.clear();
|
||||
|
||||
if ( !identifierTexts.empty() )
|
||||
{
|
||||
for ( const auto& text : identifierTexts )
|
||||
{
|
||||
options.append( caf::PdmOptionItemInfo( text, text ) );
|
||||
m_cachedIdentifiers.push_back( text );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1179,6 +1185,41 @@ void RimSummaryPlotSourceStepping::syncWithStepper( RimSummaryPlotSourceStepping
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlotSourceStepping::setStep( QString stepIdentifier )
|
||||
{
|
||||
if ( std::count( m_cachedIdentifiers.begin(), m_cachedIdentifiers.end(), stepIdentifier ) == 0 ) return;
|
||||
|
||||
switch ( m_stepDimension() )
|
||||
{
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::WELL:
|
||||
m_wellName.setValueWithFieldChanged( stepIdentifier );
|
||||
break;
|
||||
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::GROUP:
|
||||
m_groupName.setValueWithFieldChanged( stepIdentifier );
|
||||
break;
|
||||
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::VECTOR:
|
||||
m_vectorName.setValueWithFieldChanged( stepIdentifier );
|
||||
break;
|
||||
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::BLOCK:
|
||||
m_cellBlock.setValueWithFieldChanged( stepIdentifier );
|
||||
break;
|
||||
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::AQUIFER:
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::REGION:
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::ENSEMBLE:
|
||||
case RimSummaryDataSourceStepping::SourceSteppingDimension::SUMMARY_CASE:
|
||||
default:
|
||||
CAF_ASSERT( false ); // not supported for these dimensions, yet
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user