mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5539 Populate the vector selection dialog from selection
This commit is contained in:
@@ -354,20 +354,8 @@ void RimAnalysisPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
{
|
||||
// Do select variables
|
||||
RiuSummaryVectorSelectionDialog dlg( nullptr );
|
||||
// RimSummaryCase* candidateCase = m_yValuesSummaryCase();
|
||||
// RifEclipseSummaryAddress candicateAddress = m_yValuesSummaryAddress->address();
|
||||
|
||||
// if ( candidateCase == nullptr )
|
||||
//{
|
||||
// candidateCase = m_xValuesSummaryCase();
|
||||
//}
|
||||
//
|
||||
// if ( !candicateAddress.isValid() )
|
||||
//{
|
||||
// candicateAddress = m_xValuesSummaryAddress->address();
|
||||
//}
|
||||
|
||||
// dlg.hideEnsembles();
|
||||
dlg.setCurveSelection( this->curveDefinitions() );
|
||||
dlg.enableMultiSelect( true );
|
||||
dlg.setCaseAndAddress( nullptr, RifEclipseSummaryAddress() );
|
||||
|
||||
@@ -550,3 +538,17 @@ void RimAnalysisPlot::updatePlotTitle()
|
||||
m_plotWidget->scheduleReplot();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RiaSummaryCurveDefinition> RimAnalysisPlot::curveDefinitions()
|
||||
{
|
||||
std::vector<RiaSummaryCurveDefinition> curveDefs;
|
||||
for ( auto dataEntry : m_data )
|
||||
{
|
||||
curveDefs.push_back( dataEntry->curveDefinition() );
|
||||
}
|
||||
|
||||
return curveDefs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user