mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
parent
c87d68899e
commit
d4d79d3dec
@ -560,3 +560,12 @@ void RimEclipseContourMapView::onLegendConfigChanged( const caf::SignalEmitter*
|
||||
m_contourMapProjection->clearGeometry();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimSurfaceInViewCollection* RimEclipseContourMapView::surfaceInViewCollection() const
|
||||
{
|
||||
// Surfaces should not be shown in contour map.
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ public:
|
||||
void setDefaultCustomName();
|
||||
void updatePickPointAndRedraw();
|
||||
|
||||
RimSurfaceInViewCollection* surfaceInViewCollection() const override;
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
void onCreateDisplayModel() override;
|
||||
|
@ -597,9 +597,10 @@ void RimEclipseView::onCreateDisplayModel()
|
||||
// Surfaces
|
||||
|
||||
m_surfaceVizModel->removeAllParts();
|
||||
if ( m_surfaceCollection )
|
||||
if ( surfaceInViewCollection() )
|
||||
{
|
||||
m_surfaceCollection->appendPartsToModel( m_surfaceVizModel.p(), m_reservoirGridPartManager->scaleTransform() );
|
||||
surfaceInViewCollection()->appendPartsToModel( m_surfaceVizModel.p(),
|
||||
m_reservoirGridPartManager->scaleTransform() );
|
||||
nativeOrOverrideViewer()->addStaticModelOnce( m_surfaceVizModel.p(), isUsingOverrideViewer() );
|
||||
}
|
||||
|
||||
@ -912,7 +913,8 @@ void RimEclipseView::updateVisibleCellColors()
|
||||
bool hasGeneralCellResult = this->cellResult()->hasResult() || this->cellResult()->isTernarySaturationSelected();
|
||||
|
||||
m_intersectionCollection->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
if ( m_surfaceCollection ) m_surfaceCollection->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
if ( surfaceInViewCollection() )
|
||||
surfaceInViewCollection()->updateCellResultColor( hasGeneralCellResult, m_currentTimeStep );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -2291,9 +2293,9 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
|
||||
absLegends.push_back( wellMeasurement->legendConfig() );
|
||||
}
|
||||
|
||||
if ( m_surfaceCollection )
|
||||
if ( surfaceInViewCollection() )
|
||||
{
|
||||
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
|
||||
for ( auto legendConfig : surfaceInViewCollection()->legendConfigs() )
|
||||
{
|
||||
absLegends.push_back( legendConfig );
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
cvf::ref<cvf::UByteArray> currentTotalCellVisibility();
|
||||
|
||||
RimIntersectionCollection* intersectionCollection() const;
|
||||
RimSurfaceInViewCollection* surfaceInViewCollection() const;
|
||||
virtual RimSurfaceInViewCollection* surfaceInViewCollection() const;
|
||||
RimIntersectionResultsDefinitionCollection* separateIntersectionResultsCollection() const;
|
||||
RimIntersectionResultsDefinitionCollection* separateSurfaceResultsCollection() const;
|
||||
RimAnnotationInViewCollection* annotationCollection() const;
|
||||
|
Loading…
Reference in New Issue
Block a user