Source stepping and toolbar updates (#8866)

* Move layout options to separate toolbar
* Enable stepping on quantities, remove special history curve stepping for now
* Allow stepping ensembles and cases
* Add step next/prev and add new sub plot
This commit is contained in:
jonjenssen
2022-05-03 11:30:09 +02:00
committed by GitHub
parent ca9b209e9b
commit 3de8010c2b
24 changed files with 723 additions and 96 deletions

View File

@@ -67,14 +67,21 @@ RiuSummaryQuantityNameInfoProvider::RiuSummaryQuantityInfo
{
// Check for custom vector naming
std::string postfix = quantity.substr( quantity.size() - 5, 5 );
std::string baseName = quantity.substr( 0, 5 );
while ( baseName.back() == '_' )
baseName.pop_back();
bool isDifference = ( postfix == "_DIFF" );
it = m_summaryToDescMap.find( baseName );
if ( it != m_summaryToDescMap.end() )
{
if ( isDifference )
{
return RiuSummaryQuantityInfo( it->second.category, it->second.longName + " Difference" );
}
return it->second;
}
}