mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor classes in RigWellResultPoint.h
* Move RigWellResultFrame implementation into separate file Update/correct includes accordingly * First step of moving attributes from public to private - Move public members to private and create interface - Single public member remains due to strong dependency on usage of reference and reference to its object public members * Second step of moving attributes from public to privatee - Remove usage of reference directly to attributes. Interface with copy and set. - Moving attributes in RigWellResultFrame and RigWellResultBranch * Move class RigWellResultBranch into separate file
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "RigMainGrid.h"
|
||||
#include "RigSimWellData.h"
|
||||
#include "RigSimulationWellCenterLineCalculator.h"
|
||||
#include "RigWellResultFrame.h"
|
||||
#include "RigWellResultPoint.h"
|
||||
|
||||
#include "Rim2dIntersectionView.h"
|
||||
@@ -331,8 +332,8 @@ bool RimSimWellInView::intersectsWellCellsFilteredCells( const RigWellResultFram
|
||||
|
||||
// First check the wellhead:
|
||||
|
||||
size_t gridIndex = wrsf->m_wellHead.gridIndex();
|
||||
size_t gridCellIndex = wrsf->m_wellHead.cellIndex();
|
||||
size_t gridIndex = wrsf->wellHead().gridIndex();
|
||||
size_t gridCellIndex = wrsf->wellHead().cellIndex();
|
||||
|
||||
if ( gridIndex != cvf::UNDEFINED_SIZE_T && gridCellIndex != cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
@@ -345,11 +346,10 @@ bool RimSimWellInView::intersectsWellCellsFilteredCells( const RigWellResultFram
|
||||
|
||||
// Then check the rest of the well, with all the branches
|
||||
|
||||
const std::vector<RigWellResultBranch>& wellResSegments = wrsf->m_wellResultBranches;
|
||||
const std::vector<RigWellResultBranch> wellResSegments = wrsf->wellResultBranches();
|
||||
for ( const RigWellResultBranch& branchSegment : wellResSegments )
|
||||
{
|
||||
const std::vector<RigWellResultPoint>& wsResCells = branchSegment.m_branchResultPoints;
|
||||
for ( const RigWellResultPoint& wellResultPoint : wsResCells )
|
||||
for ( const RigWellResultPoint& wellResultPoint : branchSegment.branchResultPoints() )
|
||||
{
|
||||
if ( wellResultPoint.isCell() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user