-
Notifications
You must be signed in to change notification settings - Fork 102
RFT Plot: Ensemble curve set selection and highlighting #13771
Description
Summary
Improve the RFT plot UX when multiple ensemble curve sets are displayed:
-
Legend item ordering — Legend items in the plot now follow the same order as in the project tree (
m_ensembleCurveSetsindex order), instead of being sorted by pointer address. -
Project tree selection → plot highlight — When a
RimWellRftEnsembleCurveSetis selected in the project tree, the plot responds by reducing opacity for member curves of all other curve sets. Statistics curves (ENSEMBLE_RFT) are unaffected and remain visible. The plot reverts to normal when selection is cleared. -
Legend click → project tree selection — Clicking a legend item in the RFT plot selects the corresponding ensemble curve set in the project tree, enabling two-way navigation between the plot and the tree.
-
Missing update of new RFT curve sets — Make sure RFT curves from an newly imported ensemble is displayed correctly.
Implementation notes
RimWellRftPlotnow inheritscaf::SelectionChangedReceiverto react to project tree selection changes.- A
QMetaObject::Connectionis stored and explicitly disconnected indeleteViewWidget()to prevent use-after-free. The lambda capturingthisis additionally guarded with acaf::PdmPointer. - Legend ordering uses a custom
std::setcomparator based onm_ensembleCurveSets.indexOf().