Show plot curves at the first level below a summary plot.

This commit is contained in:
jonjenssen
2022-03-25 16:58:07 +01:00
committed by jonjenssen
parent 4366e53733
commit f41c772f03

View File

@@ -1554,23 +1554,25 @@ QImage RimSummaryPlot::snapshotWindowContent()
//--------------------------------------------------------------------------------------------------
void RimSummaryPlot::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/ )
{
if ( uiConfigName == RicSummaryPlotEditorUi::CONFIGURATION_NAME )
bool isPlotEditor = ( uiConfigName == RicSummaryPlotEditorUi::CONFIGURATION_NAME );
if ( !isPlotEditor ) uiTreeOrdering.add( &m_axisProperties );
for ( auto& curve : m_summaryCurveCollection->curves() )
{
uiTreeOrdering.add( &m_summaryCurveCollection );
if ( !m_isCrossPlot )
uiTreeOrdering.add( curve );
}
if ( !m_isCrossPlot )
{
for ( auto& curveSet : m_ensembleCurveSetCollection->curveSets() )
{
uiTreeOrdering.add( &m_ensembleCurveSetCollection );
uiTreeOrdering.add( curveSet );
}
}
else
{
uiTreeOrdering.add( &m_axisProperties );
uiTreeOrdering.add( &m_summaryCurveCollection );
if ( !m_isCrossPlot )
{
uiTreeOrdering.add( &m_ensembleCurveSetCollection );
}
if ( !isPlotEditor )
{
uiTreeOrdering.add( &m_gridTimeHistoryCurves );
uiTreeOrdering.add( &m_asciiDataCurves );
}