mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
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:
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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user