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 "RigResultAccessor.h"
|
||||
#include "RigResultAccessorFactory.h"
|
||||
#include "RigSimWellData.h"
|
||||
#include "RigWellResultFrame.h"
|
||||
#include "RigWellResultPoint.h"
|
||||
|
||||
#include "Rim2dIntersectionView.h"
|
||||
@@ -1168,13 +1169,13 @@ QString RiuResultTextBuilder::wellResultText()
|
||||
continue;
|
||||
}
|
||||
|
||||
const RigWellResultPoint* wellResultCell = wellResultFrame->findResultCellWellHeadIncluded( m_gridIndex, m_cellIndex );
|
||||
if ( wellResultCell )
|
||||
const RigWellResultPoint wellResultCell = wellResultFrame->findResultCellWellHeadIncluded( m_gridIndex, m_cellIndex );
|
||||
if ( wellResultCell.isValid() )
|
||||
{
|
||||
const int branchId = wellResultCell->branchId();
|
||||
const int segmentId = wellResultCell->segmentId();
|
||||
const int outletBranchId = wellResultCell->outletBranchId();
|
||||
const int outletSegmentId = wellResultCell->outletSegmentId();
|
||||
const int branchId = wellResultCell.branchId();
|
||||
const int segmentId = wellResultCell.segmentId();
|
||||
const int outletBranchId = wellResultCell.outletBranchId();
|
||||
const int outletSegmentId = wellResultCell.outletSegmentId();
|
||||
|
||||
text += QString( "-- Well-cell connection info --\n Well Name: %1\n Branch Id: %2\n Segment "
|
||||
"Id: %3\n Outlet Branch Id: %4\n Outlet Segment Id: %5\n" )
|
||||
|
||||
Reference in New Issue
Block a user