mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 08:30:17 -05:00
#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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user