mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4880 Refactoring in Rim3dView: De-virtualize updateCurrentTimeStepAndRedraw
This commit is contained in:
@@ -144,11 +144,11 @@ public:
|
|||||||
bool isTimeStepDependentDataVisibleInThisOrComparisonView() const;
|
bool isTimeStepDependentDataVisibleInThisOrComparisonView() const;
|
||||||
|
|
||||||
// Updating
|
// Updating
|
||||||
virtual void updateCurrentTimeStepAndRedraw();
|
|
||||||
virtual void scheduleGeometryRegen( RivCellSetEnum geometryType ) = 0;
|
virtual void scheduleGeometryRegen( RivCellSetEnum geometryType ) = 0;
|
||||||
void scheduleCreateDisplayModelAndRedraw();
|
void scheduleCreateDisplayModelAndRedraw();
|
||||||
|
|
||||||
void createDisplayModelAndRedraw();
|
void createDisplayModelAndRedraw();
|
||||||
|
void updateCurrentTimeStepAndRedraw();
|
||||||
void createHighlightAndGridBoxDisplayModelWithRedraw();
|
void createHighlightAndGridBoxDisplayModelWithRedraw();
|
||||||
void updateGridBoxData();
|
void updateGridBoxData();
|
||||||
void updateAnnotationItems();
|
void updateAnnotationItems();
|
||||||
|
|||||||
@@ -146,15 +146,6 @@ void RimEclipseContourMapView::updatePickPointAndRedraw()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimEclipseContourMapView::updateCurrentTimeStepAndRedraw()
|
|
||||||
{
|
|
||||||
m_contourMapProjection->clearGeometry();
|
|
||||||
RimEclipseView::updateCurrentTimeStepAndRedraw();
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -231,6 +222,8 @@ void RimEclipseContourMapView::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiT
|
|||||||
void RimEclipseContourMapView::onUpdateCurrentTimeStep()
|
void RimEclipseContourMapView::onUpdateCurrentTimeStep()
|
||||||
{
|
{
|
||||||
static_cast<RimEclipsePropertyFilterCollection*>( nativePropertyFilterCollection() )->updateFromCurrentTimeStep();
|
static_cast<RimEclipsePropertyFilterCollection*>( nativePropertyFilterCollection() )->updateFromCurrentTimeStep();
|
||||||
|
|
||||||
|
m_contourMapProjection->clearGeometry();
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ public:
|
|||||||
QString createAutoName() const override;
|
QString createAutoName() const override;
|
||||||
void setDefaultCustomName();
|
void setDefaultCustomName();
|
||||||
void updatePickPointAndRedraw();
|
void updatePickPointAndRedraw();
|
||||||
void updateCurrentTimeStepAndRedraw() override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void initAfterRead() override;
|
void initAfterRead() override;
|
||||||
|
|||||||
@@ -142,15 +142,6 @@ void RimGeoMechContourMapView::updatePickPointAndRedraw()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimGeoMechContourMapView::updateCurrentTimeStepAndRedraw()
|
|
||||||
{
|
|
||||||
m_contourMapProjection->clearGeometry();
|
|
||||||
RimGeoMechView::updateCurrentTimeStepAndRedraw();
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -239,6 +230,8 @@ void RimGeoMechContourMapView::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiT
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimGeoMechContourMapView::onUpdateCurrentTimeStep()
|
void RimGeoMechContourMapView::onUpdateCurrentTimeStep()
|
||||||
{
|
{
|
||||||
|
m_contourMapProjection->clearGeometry();
|
||||||
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ public:
|
|||||||
QString createAutoName() const override;
|
QString createAutoName() const override;
|
||||||
void setDefaultCustomName();
|
void setDefaultCustomName();
|
||||||
void updatePickPointAndRedraw();
|
void updatePickPointAndRedraw();
|
||||||
void updateCurrentTimeStepAndRedraw() override;
|
|
||||||
bool isGridVisualizationMode() const override;
|
bool isGridVisualizationMode() const override;
|
||||||
|
|
||||||
bool isTimeStepDependentDataVisible() const override;
|
bool isTimeStepDependentDataVisible() const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user