#13992 Hide production disks for wells filtered out by "Wells Through Visible Cells Only"

Production disks were drawn for wells that the visible-cells filter
hides, because RimSimWellInView::isWellDiskVisible() never consulted
the showWellsIntersectingVisibleCells toggle.

Add a frameIndex parameter and the same active-intersection / visible-
cells filter logic that isWellPipeVisible already uses, and update the
two call sites to pass the current frame.
This commit is contained in:
Kristian Bendiksen committed 2026-05-27 09:37:42 +02:00
1 parent be3621a66d
commit 09d4e42796
4 files changed
+15 -4

No files matched your search

@@ -650,7 +650,7 @@ size_t RimSimWellInView::resultWellIndex() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimSimWellInView::isWellDiskVisible() const
bool RimSimWellInView::isWellDiskVisible( size_t frameIndex ) const
{
const auto reservoirView = firstAncestorOrThisOfType<RimEclipseView>();
@@ -664,6 +664,14 @@ bool RimSimWellInView::isWellDiskVisible() const
if ( !showWellDisks() ) return false;
if ( reservoirView->intersectionCollection()->hasActiveIntersectionForSimulationWell( this ) ) return true;
if ( reservoirView->wellCollection()->showWellsIntersectingVisibleCells() &&
( reservoirView->cellFilterCollection()->hasActiveFilters() || reservoirView->propertyFilterCollection()->hasActiveFilters() ) )
{
return intersectsDynamicWellCellsFilteredCells( frameIndex );
}
return true;
}