mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2404 Intersection: Update 3d view when creating new Intersection Box
This commit is contained in:
@@ -149,7 +149,7 @@ void RimIntersectionCollection::appendPartsToModel(cvf::ModelBasicList* model, c
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionCollection::appendIntersection(RimIntersection* intersection)
|
||||
void RimIntersectionCollection::appendIntersectionAndUpdate(RimIntersection* intersection)
|
||||
{
|
||||
m_intersections.push_back(intersection);
|
||||
|
||||
@@ -167,9 +167,19 @@ void RimIntersectionCollection::appendIntersection(RimIntersection* intersection
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionCollection::appendIntersectionBox(RimIntersectionBox* intersectionBox)
|
||||
void RimIntersectionCollection::appendIntersectionBoxAndUpdate(RimIntersectionBox* intersectionBox)
|
||||
{
|
||||
m_intersectionBoxes.push_back(intersectionBox);
|
||||
|
||||
updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
|
||||
|
||||
RimView* rimView = NULL;
|
||||
firstAncestorOrThisOfType(rimView);
|
||||
if (rimView)
|
||||
{
|
||||
rimView->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -48,8 +48,9 @@ public:
|
||||
|
||||
caf::PdmField<bool> isActive;
|
||||
|
||||
void appendIntersection(RimIntersection* intersection);
|
||||
void appendIntersectionBox(RimIntersectionBox* intersectionBox);
|
||||
void appendIntersectionAndUpdate(RimIntersection* intersection);
|
||||
|
||||
void appendIntersectionBoxAndUpdate(RimIntersectionBox* intersectionBox);
|
||||
|
||||
bool hasActiveIntersectionForSimulationWell(const RimSimWellInView* simWell) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user