mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show packer in RFT topology track
* Show packers in topology track * Support optional display of property axis values * Add legend item clickable option to RimPlotWindow
This commit is contained in:
@@ -313,6 +313,32 @@ std::vector<size_t> RifRftSegment::segmentIndicesForBranchIndex( int branchIndex
|
||||
return v;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<size_t> RifRftSegment::packerSegmentIndicesOnAnnulus( int branchIndex ) const
|
||||
{
|
||||
auto segmentIndices = segmentIndicesForBranchIndex( branchIndex, RiaDefines::RftBranchType::RFT_ANNULUS );
|
||||
|
||||
std::vector<size_t> packerSegmentIndices;
|
||||
|
||||
for ( auto segmentIndex : segmentIndices )
|
||||
{
|
||||
auto segment = m_topology[segmentIndex];
|
||||
auto outflowSegmentNumber = segment.segNext();
|
||||
|
||||
auto candidateSegment = segmentData( outflowSegmentNumber );
|
||||
auto candidateBranchType = branchType( candidateSegment->segBrno() );
|
||||
|
||||
if ( candidateBranchType == RiaDefines::RftBranchType::RFT_DEVICE )
|
||||
{
|
||||
packerSegmentIndices.push_back( segmentIndex );
|
||||
}
|
||||
}
|
||||
|
||||
return packerSegmentIndices;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -75,6 +75,7 @@ public:
|
||||
|
||||
std::vector<size_t> segmentIndicesForBranchNumber( int branchNumber ) const;
|
||||
std::vector<size_t> segmentIndicesForBranchIndex( int branchIndex, RiaDefines::RftBranchType branchType ) const;
|
||||
std::vector<size_t> packerSegmentIndicesOnAnnulus( int branchIndex ) const;
|
||||
|
||||
std::vector<int> segmentNumbersForBranchIndex( int oneBasedBranchIndex, RiaDefines::RftBranchType branchType ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user