mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2331 Add 2d Intersection View collection with automatic views. The create command is adjusted into a "Show" command.
This commit is contained in:
@@ -19,10 +19,12 @@
|
||||
|
||||
#include "RimIntersectionCollection.h"
|
||||
|
||||
#include "Rim2dIntersectionViewCollection.h"
|
||||
#include "Rim3dView.h"
|
||||
#include "RimCase.h"
|
||||
#include "RimIntersection.h"
|
||||
#include "RimIntersectionBox.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "Rim3dView.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@@ -153,6 +155,8 @@ void RimIntersectionCollection::appendIntersection(RimIntersection* intersection
|
||||
{
|
||||
m_intersections.push_back(intersection);
|
||||
|
||||
syncronize2dIntersectionViews();
|
||||
|
||||
updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(intersection);
|
||||
|
||||
@@ -164,6 +168,16 @@ void RimIntersectionCollection::appendIntersection(RimIntersection* intersection
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionCollection::syncronize2dIntersectionViews()
|
||||
{
|
||||
RimCase* ownerCase = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted(ownerCase);
|
||||
ownerCase->intersectionViewCollection()->syncFromExistingIntersections(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user