#2549 2dIntersectionView. Update view when modifying branch detection and interpol type

This commit is contained in:
Bjørn Erik Jensen 2018-03-08 16:48:21 +01:00
parent 3feaa55d02
commit 8bd37b3411
3 changed files with 6 additions and 7 deletions

View File

@ -388,11 +388,7 @@ void Rim2dIntersectionView::createDisplayModel()
m_viewer->addFrame(new cvf::Scene());
}
if ( m_flatIntersectionPartMgr.isNull() || m_intersection() != m_flatIntersectionPartMgr->intersection())
{
m_flatIntersectionPartMgr = new RivIntersectionPartMgr(m_intersection(), true);
}
m_flatIntersectionPartMgr = new RivIntersectionPartMgr(m_intersection(), true);
m_intersectionVizModel->removeAllParts();

View File

@ -72,6 +72,9 @@ public:
void wellHeadTopBottomPosition(int frameIndex, cvf::Vec3d* top, cvf::Vec3d* bottom);
double pipeRadius();
void schedule2dIntersectionViewUpdate();
caf::PdmField<bool> showWell;
caf::PdmField<QString> name;
@ -103,8 +106,6 @@ private:
bool intersectsWellCellsFilteredCells(const RigWellResultFrame &wrsf, size_t frameIndex) const;
void schedule2dIntersectionViewUpdate();
private:
cvf::ref<RigSimWellData> m_simWellData;
size_t m_resultWellIndex;

View File

@ -415,6 +415,8 @@ void RimSimWellInViewCollection::fieldChangedByUi(const caf::PdmFieldHandle* cha
{
m_reservoirView->scheduleSimWellGeometryRegen();
m_reservoirView->scheduleCreateDisplayModelAndRedraw();
for (RimSimWellInView* w : wells) w->schedule2dIntersectionViewUpdate();
}
else if (&showWellsIntersectingVisibleCells == changedField)
{