#14101 Add Data Analytics PDM folder with right-click creation

Replace the transient Data Analytics tree label with a real
RimDataAnalyticsCollection object that owns the case-level fault distance
collection and the well target mappings. The folder shows its analytics
objects flattened and exposes a right-click menu to create a new Fault
Distance and a new Well Target Mapping.

Migrate case-level well target mappings from older project files into the
new collection via initAfterRead; fault distance is unreleased and needs
no migration. The case accessors faultDistanceCollection() and
addWellTargetMapping() now forward to the new object, and the creation
features resolve a selected Data Analytics folder.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2026-06-08 21:42:19 +02:00
1 parent 6681ba566f
commit 12cd173c62
7 files changed
+218 -26

No files matched your search

@@ -18,6 +18,7 @@
#include "RicNewFaultDistanceResultFeature.h"
#include "RimDataAnalyticsCollection.h"
#include "RimEclipseCase.h"
#include "RimEclipseView.h"
#include "RimFaultDistance.h"
@@ -49,6 +50,9 @@ RimEclipseView* findHostView()
const auto faultCollections = caf::SelectionManager::instance()->objectsByType<RimFaultInViewCollection>();
if ( !faultCollections.empty() ) return faultCollections.front()->firstAncestorOrThisOfType<RimEclipseView>();
const auto analyticsCollections = caf::SelectionManager::instance()->objectsByType<RimDataAnalyticsCollection>();
if ( !analyticsCollections.empty() ) return firstViewOfCase( analyticsCollections.front() );
const auto distanceCollections = caf::SelectionManager::instance()->objectsByType<RimFaultDistanceCollection>();
if ( !distanceCollections.empty() ) return firstViewOfCase( distanceCollections.front() );