#3540 Create seperate 2d view with parallel, look down and linked views

This commit is contained in:
Gaute Lindkvist
2018-10-23 16:32:40 +02:00
parent 45531865ba
commit f80472ffa6
50 changed files with 1014 additions and 177 deletions

View File

@@ -19,6 +19,7 @@
#include "RicNewViewFeature.h"
#include "Rim2dEclipseView.h"
#include "RimEclipseCase.h"
#include "RimEclipseView.h"
#include "RimGeoMechCase.h"
@@ -158,9 +159,12 @@ RimEclipseView* RicNewViewFeature::selectedEclipseView()
std::vector<RimEclipseView*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
if (selection.size() > 0)
for (RimEclipseView* view : selection)
{
return selection[0];
if (dynamic_cast<Rim2dEclipseView*>(view) == nullptr)
{
return view;
}
}
return nullptr;