mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor connection between cases and views.
Eclipse grid views and contour maps are not longer a child of the case. The views are not separate collections (one for grid and one for contour maps) on root level.
This commit is contained in:
@@ -388,7 +388,7 @@ void RivWellPathPartMgr::appendPerforationsToModel( cvf::ModelBasicList*
|
||||
QDateTime currentTimeStamp;
|
||||
if ( m_rimView )
|
||||
{
|
||||
auto rimCase = m_rimView->firstAncestorOrThisOfType<RimCase>();
|
||||
auto rimCase = m_rimView->ownerCase();
|
||||
|
||||
if ( rimCase )
|
||||
{
|
||||
|
||||
@@ -382,8 +382,13 @@ void RivSurfacePartMgr::generatePartGeometry()
|
||||
void RivSurfacePartMgr::generateNativePartGeometry()
|
||||
{
|
||||
cvf::Vec3d displayModOffset( 0, 0, 0 );
|
||||
auto ownerCase = m_surfaceInView->firstAncestorOrThisOfType<RimCase>();
|
||||
if ( ownerCase ) displayModOffset = ownerCase->displayModelOffset();
|
||||
|
||||
auto view = m_surfaceInView->firstAncestorOrThisOfType<Rim3dView>();
|
||||
if ( view )
|
||||
{
|
||||
auto ownerCase = view->ownerCase();
|
||||
if ( ownerCase ) displayModOffset = ownerCase->displayModelOffset();
|
||||
}
|
||||
|
||||
m_usedSurfaceData = m_surfaceInView->surface()->surfaceData();
|
||||
if ( m_usedSurfaceData.isNull() ) return;
|
||||
|
||||
Reference in New Issue
Block a user