mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5125 Show well measurements based on selection in RimWellMeasuremenInView.
This commit is contained in:
parent
3583e2ee10
commit
0e4f9fe114
@ -278,7 +278,7 @@ void RivWellPathPartMgr::appendWellMeasurementsToModel( cvf::ModelBasicList*
|
||||
|
||||
for ( RimWellMeasurementInView* wellMeasurementInView : gridView->measurementCollection()->measurements() )
|
||||
{
|
||||
if ( wellMeasurementInView->isChecked() )
|
||||
if ( wellMeasurementInView->isChecked() && wellMeasurementInView->isWellChecked( m_rimWellPath->name() ) )
|
||||
{
|
||||
std::vector<QString> measurementKinds;
|
||||
measurementKinds.push_back( wellMeasurementInView->measurementKind() );
|
||||
|
@ -244,3 +244,11 @@ bool RimWellMeasurementInView::hasCategoryResult() const
|
||||
{
|
||||
return !RimWellMeasurement::kindHasValue( measurementKind() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellMeasurementInView::isWellChecked( const QString& wellName ) const
|
||||
{
|
||||
return std::find( m_wells.v().begin(), m_wells.v().end(), wellName ) != m_wells.v().end();
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
RimRegularLegendConfig* legendConfig();
|
||||
QString measurementKind() const;
|
||||
void setMeasurementKind( const QString& measurementKind );
|
||||
bool isWellChecked( const QString& wellName ) const;
|
||||
|
||||
void updateLegendRangesTextAndVisibility( RiuViewer* nativeOrOverrideViewer, bool isUsingOverrideViewer );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user