#2404 Intersection: Update 3d view when creating new Intersection Box

This commit is contained in:
Rebecca Cox
2018-01-24 10:48:23 +01:00
parent 9617481406
commit 650fc2147d
12 changed files with 25 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ void RicAppendIntersectionFeatureCmd::redo()
RimIntersection* intersection = new RimIntersection();
intersection->name = QString("Intersection");
m_intersectionCollection->appendIntersection(intersection);
m_intersectionCollection->appendIntersectionAndUpdate(intersection);
RimView* view = nullptr;
m_intersectionCollection->firstAncestorOrThisOfTypeAsserted(view);

View File

@@ -122,7 +122,7 @@ void RicNewAzimuthDipIntersectionFeatureCmd::redo()
intersection->setLengthDown(cvf::Math::floor(bBox.extent()[2] / 2));
}
m_intersectionCollection->appendIntersection(intersection);
m_intersectionCollection->appendIntersectionAndUpdate(intersection);
RiuSelectionManager::instance()->deleteAllItems();
RiuMainWindow::instance()->selectAsCurrentItem(intersection);

View File

@@ -112,7 +112,7 @@ void RicNewPolylineIntersectionFeatureCmd::redo()
intersection->type = RimIntersection::CS_POLYLINE;
intersection->inputPolyLineFromViewerEnabled = true;
m_intersectionCollection->appendIntersection(intersection);
m_intersectionCollection->appendIntersectionAndUpdate(intersection);
RiuSelectionManager::instance()->deleteAllItems();

View File

@@ -107,7 +107,7 @@ void RicNewSimWellIntersectionCmd::redo()
intersection->type = RimIntersection::CS_SIMULATION_WELL;
intersection->simulationWell = m_simWell;
m_intersectionCollection->appendIntersection(intersection);
m_intersectionCollection->appendIntersectionAndUpdate(intersection);
}
//--------------------------------------------------------------------------------------------------

View File

@@ -116,7 +116,7 @@ void RicNewWellPathIntersectionFeatureCmd::redo()
intersection->type = RimIntersection::CS_WELL_PATH;
intersection->wellPath = m_wellPath;
m_intersectionCollection->appendIntersection(intersection);
m_intersectionCollection->appendIntersectionAndUpdate(intersection);
}
//--------------------------------------------------------------------------------------------------