#5656 Fix display of well disks in contour map

The summary reader would not be set if the property editor had not been
shown (i.e. defineUiOrdering had not been done) before the first draw.
This commit is contained in:
Kristian Bendiksen 2020-04-06 11:54:09 +02:00 committed by Gaute Lindkvist
parent a0014f9d05
commit 3931f68c4f
2 changed files with 11 additions and 2 deletions

View File

@ -1894,6 +1894,8 @@ bool RimEclipseView::isTimeStepDependentDataVisible() const
if ( this->hasVisibleTimeStepDependent3dWellLogCurves() ) return true;
if ( this->wellPathCollection() && this->wellCollection()->isWellDisksVisible() ) return true;
return false;
}

View File

@ -489,9 +489,16 @@ void RimSimWellInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
if ( m_reservoirView )
{
if ( !m_wellDiskSummaryCase() )
{
setDefaultSourceCaseForWellDisks();
}
if ( &isActive == changedField || &m_showWellLabel == changedField || &m_showWellCells == changedField ||
&m_showWellCellFence == changedField || &wellCellFenceType == changedField )
{
RimWellDiskConfig wellDiskConfig = getActiveWellDiskConfig();
updateWellDisks( wellDiskConfig );
m_reservoirView->scheduleGeometryRegen( VISIBLE_WELL_CELLS );
m_reservoirView->scheduleCreateDisplayModelAndRedraw();
}
@ -502,14 +509,14 @@ void RimSimWellInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
else if ( &m_wellDiskQuantity == changedField || &m_wellDiskPropertyType == changedField ||
&m_wellDiskPropertyConfigType == changedField || &m_wellDiskshowLabelsBackground == changedField ||
&m_wellDiskShowQuantityLabels == changedField || &m_wellDiskSummaryCase == changedField ||
&m_wellDiskScaleFactor == changedField )
&m_wellDiskScaleFactor == changedField || &m_showWellDisks == changedField )
{
RimWellDiskConfig wellDiskConfig = getActiveWellDiskConfig();
updateWellDisks( wellDiskConfig );
m_reservoirView->updateDisplayModelForCurrentTimeStepAndRedraw();
}
else if ( &spheresScaleFactor == changedField || &m_showWellSpheres == changedField ||
&m_showWellDisks == changedField || &showConnectionStatusColors == changedField )
&showConnectionStatusColors == changedField )
{
m_reservoirView->scheduleSimWellGeometryRegen();
m_reservoirView->scheduleCreateDisplayModelAndRedraw();