mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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->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 );
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user