Support linking of 2D intersection views

* Major refactor from RimGridView to Rim3dView
* Move view linker/controller functions to Rim3dView
* Add bitmask to define the content of a 3D view
* Link views based on matching content
* Enable bit mask operators at global scope
* Make it possible to use 2d intersection views as comparison views
* Fix crash when a view used as comparison view is deleted
* Move unlinking to Rim3dView

* Add options to snapshot only 3D views/plots as part of regression testing
* WBS plot: Improve default name, hide axis for some tracks
This commit is contained in:
Magne Sjaastad
2022-11-24 10:46:54 +01:00
committed by GitHub
parent 99e9944e6e
commit 82968ca1a9
42 changed files with 609 additions and 418 deletions

View File

@@ -53,7 +53,7 @@ public:
if ( contextViewer )
{
// Link only the active view to an existing view link collection.
RimGridView* activeView = RiaApplication::instance()->activeGridView();
auto* activeView = RiaApplication::instance()->activeReservoirView();
if ( !activeView ) return false;
if ( activeView->assosiatedViewLinker() ) return false;
@@ -62,7 +62,7 @@ public:
return true;
}
std::vector<RimGridView*> selectedGridViews;
std::vector<Rim3dView*> selectedGridViews;
caf::SelectionManager::instance()->objectsByTypeStrict( &selectedGridViews );
for ( auto gridView : selectedGridViews )
@@ -85,10 +85,10 @@ public:
void execute() { RicLinkVisibleViewsFeature::linkViews( m_viewsToLink ); }
const std::vector<RimGridView*>& viewsToLink() { return m_viewsToLink; }
const std::vector<Rim3dView*>& viewsToLink() { return m_viewsToLink; }
private:
std::vector<RimGridView*> m_viewsToLink;
std::vector<Rim3dView*> m_viewsToLink;
};
//--------------------------------------------------------------------------------------------------