(#401) WIP: First cell filtering Eclipse Geomec grid visible.

Not working very well. BB matching is not good enough.
This commit is contained in:
Jacob Støren
2015-09-15 14:30:52 +02:00
parent 36bc2f8f69
commit 7a6c7149e1
6 changed files with 149 additions and 16 deletions

View File

@@ -62,6 +62,7 @@
#include <limits.h>
#include "RimViewLinker.h"
#include "RimViewLink.h"
@@ -330,11 +331,17 @@ void RimEclipseView::createDisplayModel()
// For property filtered geometry : just set all the models as empty scenes
// updateCurrentTimeStep requests the actual parts
if (!this->propertyFilterCollection()->hasActiveFilters())
if (this->controllingViewLink() && this->controllingViewLink()->syncVisibleCells()
|| !this->propertyFilterCollection()->hasActiveFilters())
{
std::vector<RivCellSetEnum> geometryTypesToAdd;
if (this->rangeFilterCollection()->hasActiveFilters() && this->wellCollection()->hasVisibleWellCells())
if (this->controllingViewLink() && this->controllingViewLink()->syncVisibleCells())
{
geometryTypesToAdd.push_back(OVERRIDDEN_CELL_VISIBILITY);
}
else if (this->rangeFilterCollection()->hasActiveFilters() && this->wellCollection()->hasVisibleWellCells())
{
geometryTypesToAdd.push_back(RANGE_FILTERED);
geometryTypesToAdd.push_back(RANGE_FILTERED_WELL_CELLS);
@@ -716,6 +723,7 @@ void RimEclipseView::initAfterRead()
//--------------------------------------------------------------------------------------------------
void RimEclipseView::updateStaticCellColors()
{
updateStaticCellColors( OVERRIDDEN_CELL_VISIBILITY);
updateStaticCellColors( ACTIVE);
updateStaticCellColors( ALL_WELL_CELLS);
updateStaticCellColors( VISIBLE_WELL_CELLS);