mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
Hide grid mesh lines in contour map view
This commit is contained in:
parent
eee6f36a0e
commit
d90dd91e29
@ -262,6 +262,8 @@ RimEclipseContourMapView* RicNewContourMapViewFeature::createEclipseContourMapFr
|
||||
contourMap->faultCollection()->setActive( false );
|
||||
contourMap->wellCollection()->isActive = false;
|
||||
|
||||
contourMap->setCompatibleDrawStyle();
|
||||
|
||||
// Set default values
|
||||
RimRegularLegendConfig* legendConfig = contourMap->cellResult()->legendConfig();
|
||||
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->setDefaultCustomName();
|
||||
contourMap->setCompatibleDrawStyle();
|
||||
|
||||
caf::PdmDocument::updateUiIconStateRecursively( contourMap );
|
||||
|
||||
|
@ -171,6 +171,15 @@ bool RimGeoMechContourMapView::isTimeStepDependentDataVisible() const
|
||||
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.
|
||||
disablePerspectiveProjectionField();
|
||||
setShowGridBox( false );
|
||||
meshMode.setValue( RiaDefines::MeshModeType::NO_MESH );
|
||||
surfaceMode.setValue( FAULTS );
|
||||
setCompatibleDrawStyle();
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,8 @@ public:
|
||||
|
||||
bool isTimeStepDependentDataVisible() const override;
|
||||
|
||||
void setCompatibleDrawStyle();
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
void onCreateDisplayModel() override;
|
||||
|
@ -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();
|
||||
setShowGridBox( false );
|
||||
surfaceMode.setValue( FAULTS );
|
||||
setFaultVisParameters();
|
||||
setCompatibleDrawStyle();
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,8 @@ public:
|
||||
RimSurfaceInViewCollection* surfaceInViewCollection() const override;
|
||||
void zoomAll() override;
|
||||
|
||||
void setCompatibleDrawStyle();
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
void onCreateDisplayModel() override;
|
||||
|
Loading…
Reference in New Issue
Block a user