mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4025 Show delayed action progress bar during contour map generation
This commit is contained in:
@@ -34,7 +34,9 @@
|
||||
#include "RimGridCollection.h"
|
||||
#include "RimSimWellInViewCollection.h"
|
||||
#include "RimScaleLegendConfig.h"
|
||||
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
#include "cafProgressInfo.h"
|
||||
|
||||
#include "cvfCamera.h"
|
||||
#include "cvfModelBasicList.h"
|
||||
@@ -237,23 +239,32 @@ void RimEclipseContourMapView::updateCurrentTimeStep()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseContourMapView::updateGeometry()
|
||||
{
|
||||
caf::ProgressInfo progress(100, "Generate Contour Map", true);
|
||||
|
||||
this->updateVisibleGeometriesAndCellColors();
|
||||
|
||||
if (m_contourMapProjection->isChecked())
|
||||
{
|
||||
m_contourMapProjection->generateResultsIfNecessary(m_currentTimeStep());
|
||||
{ // Step 1: generate results and some minor updates. About 30% of the time.
|
||||
if (m_contourMapProjection->isChecked())
|
||||
{
|
||||
m_contourMapProjection->generateResultsIfNecessary(m_currentTimeStep());
|
||||
}
|
||||
progress.setProgress(30);
|
||||
}
|
||||
|
||||
updateLegends(); // To make sure the scalar mappers are set up correctly
|
||||
|
||||
appendWellsAndFracturesToModel();
|
||||
|
||||
createContourMapGeometry();
|
||||
appendContourMapProjectionToModel();
|
||||
appendContourLinesToModel();
|
||||
|
||||
appendPickPointVisToModel();
|
||||
{ // Step 2: generate geometry. Takes about 60% of the time.
|
||||
createContourMapGeometry();
|
||||
progress.setProgress(90);
|
||||
}
|
||||
|
||||
{ // Step 3: generate drawables. Takes about 10% of the time.
|
||||
appendContourMapProjectionToModel();
|
||||
appendContourLinesToModel();
|
||||
appendPickPointVisToModel();
|
||||
progress.setProgress(100);
|
||||
}
|
||||
m_overlayInfoConfig()->update3DInfo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user