mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1040 - pre-proto - Calling scheduleCreateDisplayModelAndRedraw when creating / deleting fractures
This commit is contained in:
parent
6e1f4128a1
commit
9e933a9c1c
@ -41,6 +41,7 @@
|
|||||||
#include "cafSelectionManager.h"
|
#include "cafSelectionManager.h"
|
||||||
#include "RimFormationNamesCollection.h"
|
#include "RimFormationNamesCollection.h"
|
||||||
#include "RimCase.h"
|
#include "RimCase.h"
|
||||||
|
#include "RimSimWellFractureCollection.h"
|
||||||
|
|
||||||
|
|
||||||
namespace caf
|
namespace caf
|
||||||
@ -121,6 +122,16 @@ void RicDeleteItemExec::redo()
|
|||||||
view->scheduleCreateDisplayModelAndRedraw();
|
view->scheduleCreateDisplayModelAndRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SimWell Fractures
|
||||||
|
RimSimWellFractureCollection* simWellFractureColl;
|
||||||
|
parentObj->firstAncestorOrThisOfType(simWellFractureColl);
|
||||||
|
if (view && simWellFractureColl)
|
||||||
|
{
|
||||||
|
view->scheduleCreateDisplayModelAndRedraw();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Well paths
|
// Well paths
|
||||||
|
|
||||||
RimWellPathCollection* wellPathColl;
|
RimWellPathCollection* wellPathColl;
|
||||||
|
@ -91,6 +91,8 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
|||||||
fractureCollection->updateConnectedEditors();
|
fractureCollection->updateConnectedEditors();
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||||
|
|
||||||
|
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include "cvfAssert.h"
|
#include "cvfAssert.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
#include "RimEclipseView.h"
|
||||||
|
|
||||||
CAF_CMD_SOURCE_INIT(RicNewSimWellFractureFeature, "RicNewSimWellFractureFeature");
|
CAF_CMD_SOURCE_INIT(RicNewSimWellFractureFeature, "RicNewSimWellFractureFeature");
|
||||||
|
|
||||||
@ -74,6 +75,11 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
fractureCollection->updateConnectedEditors();
|
fractureCollection->updateConnectedEditors();
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||||
|
|
||||||
|
RimEclipseView* mainView = nullptr;
|
||||||
|
objHandle->firstAncestorOrThisOfType(mainView);
|
||||||
|
if (mainView) mainView->scheduleCreateDisplayModelAndRedraw();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -97,6 +97,9 @@ void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
fractureCollection->updateConnectedEditors();
|
fractureCollection->updateConnectedEditors();
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||||
|
|
||||||
|
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -75,6 +75,8 @@ void RicNewWellPathFractureFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
fractureCollection->updateConnectedEditors();
|
fractureCollection->updateConnectedEditors();
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||||
|
|
||||||
|
wellPathColl->scheduleGeometryRegenAndRedrawViews();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user