Create a menu for each ensemble in the plot

Create a QVariant using caf::PdmPointer, and send this variant to the feature. The feature converts the QVariant to an ensemble curve set.

Make sure the right-click menu in the summary plot shows the Create from filtered cases independent to the selection in project tree.
This commit is contained in:
Magne Sjaastad committed 2025-05-08 07:27:42 +02:00
1 parent a93d717e1c
commit 9b613ba4f0
3 files changed
+42 -3

No files matched your search

@@ -328,7 +328,11 @@ void RimEnsembleCurveSetCollection::onChildDeleted( caf::PdmChildArrayFieldHandl
std::vector<caf::PdmObjectHandle*>& referringObjects )
{
auto plot = firstAncestorOrThisOfType<RimSummaryPlot>();
if ( plot ) plot->updateConnectedEditors();
if ( plot )
{
plot->updateConnectedEditors();
plot->updateAndRedrawTimeAnnotations();
}
}
//--------------------------------------------------------------------------------------------------