mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8405 Source Stepping on multiple graphs
- add copy paste of plots into multi summary plot - improve data source stepping for multi plot - improve auto generated plot name, graph name and curve name Fixes by clang-format Improve readability
This commit is contained in:
@@ -93,63 +93,9 @@ void RimSummaryPlotNameHelper::setEnsembleCases( const std::vector<RimSummaryCas
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimSummaryPlotNameHelper::plotTitle() const
|
||||
{
|
||||
QString title;
|
||||
RimSummaryPlotNameHelper empty;
|
||||
|
||||
if ( !m_titleCaseName.isEmpty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += m_titleCaseName;
|
||||
}
|
||||
|
||||
if ( !m_titleWellName.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += QString::fromStdString( m_titleWellName );
|
||||
}
|
||||
|
||||
if ( !m_titleWellGroupName.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += QString::fromStdString( m_titleWellGroupName );
|
||||
}
|
||||
|
||||
if ( !m_titleRegion.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += "Region : " + QString::fromStdString( m_titleRegion );
|
||||
}
|
||||
|
||||
if ( !m_titleBlock.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += "Block : " + QString::fromStdString( m_titleBlock );
|
||||
}
|
||||
|
||||
if ( !m_titleSegment.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += "Segment : " + QString::fromStdString( m_titleSegment );
|
||||
}
|
||||
|
||||
if ( !m_titleCompletion.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += "Completion : " + QString::fromStdString( m_titleCompletion );
|
||||
}
|
||||
|
||||
if ( !m_titleQuantity.empty() )
|
||||
{
|
||||
if ( !title.isEmpty() ) title += ", ";
|
||||
title += QString::fromStdString(
|
||||
RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName( m_titleQuantity, true ) );
|
||||
}
|
||||
|
||||
if ( title.isEmpty() )
|
||||
{
|
||||
title = "Composed Plot";
|
||||
}
|
||||
|
||||
return title;
|
||||
return aggregatedPlotTitle( empty );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -216,6 +162,70 @@ bool RimSummaryPlotNameHelper::isCompletionInTitle() const
|
||||
return !m_titleCompletion.empty();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimSummaryPlotNameHelper::caseName() const
|
||||
{
|
||||
return m_titleCaseName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleQuantity() const
|
||||
{
|
||||
return m_titleQuantity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleWellName() const
|
||||
{
|
||||
return m_titleWellName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleWellGroupName() const
|
||||
{
|
||||
return m_titleWellGroupName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleRegion() const
|
||||
{
|
||||
return m_titleRegion;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleBlock() const
|
||||
{
|
||||
return m_titleBlock;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleSegment() const
|
||||
{
|
||||
return m_titleSegment;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::string RimSummaryPlotNameHelper::titleCompletion() const
|
||||
{
|
||||
return m_titleCompletion;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user