Merge pull request #8754 from OPM/multiplot_improvements

Summary Multiplot: add new plot from a single curve in an ensemble plot and improve general plot performance
This commit is contained in:
jonjenssen authored and GitHub committed 2022-03-31 12:34:07 +02:00
1 parent 2eb1713866
commit ebba37a623
15 files changed
+227 -39

No files matched your search

@@ -31,6 +31,7 @@
#include "cafCmdFeatureMenuBuilder.h"
#include <QMenu>
#include <QPointer>
#include <cmath>
@@ -87,6 +88,14 @@ void RiuSummaryPlot::showContextMenu( QPoint pos )
if ( ensemble && ensemble->isEnsemble() )
{
clickedQuantityName = QString::fromStdString( clickedEnsembleCurveSet->summaryAddress().uiText() );
if ( curveClicked )
{
QVariant curveVariant( QVariant::fromValue( static_cast<void*>( summaryCurve ) ) );
menuBuilder.addCmdFeatureWithUserData( "RicNewSummaryPlotFromCurveFeature",
"Create New Plot from Curve",
curveVariant );
}
}
}