#1040 - pre-proto - Calling scheduleCreateDisplayModelAndRedraw when creating / deleting fractures

This commit is contained in:
astridkbjorke 2017-01-05 14:52:59 +01:00
parent 6e1f4128a1
commit 9e933a9c1c
5 changed files with 24 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include "cafSelectionManager.h"
#include "RimFormationNamesCollection.h"
#include "RimCase.h"
#include "RimSimWellFractureCollection.h"
namespace caf
@ -121,6 +122,16 @@ void RicDeleteItemExec::redo()
view->scheduleCreateDisplayModelAndRedraw();
}
// SimWell Fractures
RimSimWellFractureCollection* simWellFractureColl;
parentObj->firstAncestorOrThisOfType(simWellFractureColl);
if (view && simWellFractureColl)
{
view->scheduleCreateDisplayModelAndRedraw();
}
// Well paths
RimWellPathCollection* wellPathColl;

View File

@ -91,6 +91,8 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
fractureCollection->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
activeView->scheduleCreateDisplayModelAndRedraw();
}

View File

@ -36,6 +36,7 @@
#include "cvfAssert.h"
#include <QAction>
#include "RimEclipseView.h"
CAF_CMD_SOURCE_INIT(RicNewSimWellFractureFeature, "RicNewSimWellFractureFeature");
@ -74,6 +75,11 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
fractureCollection->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
RimEclipseView* mainView = nullptr;
objHandle->firstAncestorOrThisOfType(mainView);
if (mainView) mainView->scheduleCreateDisplayModelAndRedraw();
}
//--------------------------------------------------------------------------------------------------

View File

@ -97,6 +97,9 @@ void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
fractureCollection->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
activeView->scheduleCreateDisplayModelAndRedraw();
}
//--------------------------------------------------------------------------------------------------

View File

@ -75,6 +75,8 @@ void RicNewWellPathFractureFeature::onActionTriggered(bool isChecked)
fractureCollection->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
wellPathColl->scheduleGeometryRegenAndRedrawViews();
}
//--------------------------------------------------------------------------------------------------