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:
@@ -103,8 +103,10 @@ void RicNewAzimuthDipIntersectionFeatureCmd::redo()
|
||||
intersection->setName( "Azimuth and Dip" );
|
||||
intersection->configureForAzimuthLine();
|
||||
|
||||
RimCase* rimCase = m_intersectionCollection->firstAncestorOrThisOfTypeAsserted<RimCase>();
|
||||
cvf::BoundingBox bBox = rimCase->allCellsBoundingBox();
|
||||
RimCase* rimCase = m_intersectionCollection->firstAncestorOrThisOfTypeAsserted<Rim3dView>()->ownerCase();
|
||||
if ( !rimCase ) return;
|
||||
|
||||
cvf::BoundingBox bBox = rimCase->allCellsBoundingBox();
|
||||
if ( bBox.isValid() )
|
||||
{
|
||||
intersection->setLengthUp( cvf::Math::floor( bBox.extent()[2] / 2 ) );
|
||||
|
||||
Reference in New Issue
Block a user