Refactor: improve api for views and oil fields.

This commit is contained in:
Kristian Bendiksen
2024-04-03 14:53:20 +02:00
parent ef637e3053
commit be3d06c549
21 changed files with 61 additions and 93 deletions

View File

@@ -298,8 +298,7 @@ void RimSurfaceCollection::updateViews( const std::vector<RimSurface*>& surfsToR
RimProject* proj = RimProject::current();
// Make sure the tree items are synchronized
std::vector<Rim3dView*> views;
proj->allViews( views );
std::vector<Rim3dView*> views = proj->allViews();
for ( auto view : views )
{
view->updateViewTreeItems( RiaDefines::ItemIn3dView::SURFACE );
@@ -347,9 +346,8 @@ void RimSurfaceCollection::updateViews( const std::vector<RimSurface*>& surfsToR
//--------------------------------------------------------------------------------------------------
void RimSurfaceCollection::updateViews()
{
RimProject* proj = RimProject::current();
std::vector<Rim3dView*> views;
proj->allViews( views );
RimProject* proj = RimProject::current();
std::vector<Rim3dView*> views = proj->allViews();
// Make sure the tree items are synchronized