Hide grid mesh lines in contour map view

This commit is contained in:
Jon Jenssen 2024-12-03 14:42:02 +01:00 committed by jonjenssen
parent eee6f36a0e
commit d90dd91e29
5 changed files with 27 additions and 3 deletions

View File

@ -262,6 +262,8 @@ RimEclipseContourMapView* RicNewContourMapViewFeature::createEclipseContourMapFr
contourMap->faultCollection()->setActive( false ); contourMap->faultCollection()->setActive( false );
contourMap->wellCollection()->isActive = false; contourMap->wellCollection()->isActive = false;
contourMap->setCompatibleDrawStyle();
// Set default values // Set default values
RimRegularLegendConfig* legendConfig = contourMap->cellResult()->legendConfig(); RimRegularLegendConfig* legendConfig = contourMap->cellResult()->legendConfig();
if ( legendConfig && legendConfig->mappingMode() == RimRegularLegendConfig::MappingType::CATEGORY_INTEGER ) if ( legendConfig && legendConfig->mappingMode() == RimRegularLegendConfig::MappingType::CATEGORY_INTEGER )
@ -394,6 +396,7 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setBackgroundColor( RiaColorTools::fromQColorTo3f( col ) ); // Ignore original view background contourMap->setBackgroundColor( RiaColorTools::fromQColorTo3f( col ) ); // Ignore original view background
contourMap->setDefaultCustomName(); contourMap->setDefaultCustomName();
contourMap->setCompatibleDrawStyle();
caf::PdmDocument::updateUiIconStateRecursively( contourMap ); caf::PdmDocument::updateUiIconStateRecursively( contourMap );

View File

@ -171,6 +171,15 @@ bool RimGeoMechContourMapView::isTimeStepDependentDataVisible() const
return true; return true;
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGeoMechContourMapView::setCompatibleDrawStyle()
{
surfaceMode = FAULTS;
meshMode = RiaDefines::MeshModeType::NO_MESH;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
@ -181,8 +190,7 @@ void RimGeoMechContourMapView::initAfterRead()
m_gridCollection->setActive( false ); // This is also not added to the tree view, so cannot be enabled. m_gridCollection->setActive( false ); // This is also not added to the tree view, so cannot be enabled.
disablePerspectiveProjectionField(); disablePerspectiveProjectionField();
setShowGridBox( false ); setShowGridBox( false );
meshMode.setValue( RiaDefines::MeshModeType::NO_MESH ); setCompatibleDrawStyle();
surfaceMode.setValue( FAULTS );
scheduleCreateDisplayModelAndRedraw(); scheduleCreateDisplayModelAndRedraw();
} }

View File

@ -45,6 +45,8 @@ public:
bool isTimeStepDependentDataVisible() const override; bool isTimeStepDependentDataVisible() const override;
void setCompatibleDrawStyle();
protected: protected:
void initAfterRead() override; void initAfterRead() override;
void onCreateDisplayModel() override; void onCreateDisplayModel() override;

View File

@ -166,6 +166,15 @@ void RimEclipseContourMapView::updatePickPointAndRedraw()
} }
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseContourMapView::setCompatibleDrawStyle()
{
surfaceMode = FAULTS;
meshMode = RiaDefines::MeshModeType::NO_MESH;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
@ -175,8 +184,8 @@ void RimEclipseContourMapView::initAfterRead()
disablePerspectiveProjectionField(); disablePerspectiveProjectionField();
setShowGridBox( false ); setShowGridBox( false );
surfaceMode.setValue( FAULTS );
setFaultVisParameters(); setFaultVisParameters();
setCompatibleDrawStyle();
scheduleCreateDisplayModelAndRedraw(); scheduleCreateDisplayModelAndRedraw();
} }

View File

@ -46,6 +46,8 @@ public:
RimSurfaceInViewCollection* surfaceInViewCollection() const override; RimSurfaceInViewCollection* surfaceInViewCollection() const override;
void zoomAll() override; void zoomAll() override;
void setCompatibleDrawStyle();
protected: protected:
void initAfterRead() override; void initAfterRead() override;
void onCreateDisplayModel() override; void onCreateDisplayModel() override;