mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#401) Fixed result coloring of cells/fault geometry part of cells.
And visibility of fault part of overridden visible cells
This commit is contained in:
parent
bc13971fec
commit
a2dc6628ad
@ -392,9 +392,9 @@ void RimEclipseView::createDisplayModel()
|
||||
m_visibleGridParts = geometryTypesToAdd;
|
||||
}
|
||||
|
||||
if (!this->propertyFilterCollection()->hasActiveFilters() || faultCollection()->showFaultsOutsideFilters())
|
||||
if (faultCollection()->showFaultsOutsideFilters() || !this->propertyFilterCollection()->hasActiveFilters() )
|
||||
{
|
||||
updateFaultForcedVisibility();
|
||||
forceFaultVisibilityOn();
|
||||
|
||||
std::vector<RivCellSetEnum> faultGeometryTypesToAppend = visibleFaultGeometryTypes();
|
||||
|
||||
@ -699,7 +699,7 @@ void RimEclipseView::loadDataAndUpdate()
|
||||
|
||||
syncronizeWellsWithResults();
|
||||
|
||||
createDisplayModelAndRedraw();
|
||||
this->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
if (cameraPosition().isIdentity())
|
||||
{
|
||||
@ -1292,8 +1292,14 @@ void RimEclipseView::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseView::updateFaultForcedVisibility()
|
||||
void RimEclipseView::forceFaultVisibilityOn()
|
||||
{
|
||||
if (this->controllingViewLink() && this->controllingViewLink()->syncVisibleCells())
|
||||
{
|
||||
m_reservoirGridPartManager->setFaultForceVisibilityForGeometryType(OVERRIDDEN_CELL_VISIBILITY, true);
|
||||
return;
|
||||
}
|
||||
|
||||
// Force visibility of faults based on application state
|
||||
// As fault geometry is visible in grid visualization mode, fault geometry must be forced visible
|
||||
// even if the fault item is disabled in project tree view
|
||||
@ -1317,6 +1323,16 @@ std::vector<RivCellSetEnum> RimEclipseView::visibleFaultGeometryTypes() const
|
||||
if (this->controllingViewLink() && this->controllingViewLink()->syncVisibleCells())
|
||||
{
|
||||
faultParts.push_back(OVERRIDDEN_CELL_VISIBILITY);
|
||||
if (this->faultCollection()->showFaultsOutsideFilters())
|
||||
{
|
||||
faultParts.push_back(ACTIVE);
|
||||
faultParts.push_back(ALL_WELL_CELLS);
|
||||
|
||||
if (this->showInactiveCells())
|
||||
{
|
||||
faultParts.push_back(INACTIVE);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this->propertyFilterCollection()->hasActiveFilters() && !faultCollection()->showFaultsOutsideFilters())
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ private:
|
||||
virtual void updateViewerWidgetWindowTitle();
|
||||
|
||||
std::vector<RivCellSetEnum> visibleFaultGeometryTypes() const;
|
||||
void updateFaultForcedVisibility();
|
||||
void forceFaultVisibilityOn();
|
||||
void updateFaultColors();
|
||||
|
||||
void syncronizeWellsWithResults();
|
||||
|
Loading…
Reference in New Issue
Block a user