mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5125 Make each well measurement a checkable entity.
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
#include "RimViewLinker.h"
|
||||
#include "RimViewNameConfig.h"
|
||||
#include "RimVirtualPerforationResults.h"
|
||||
#include "RimWellMeasurementInView.h"
|
||||
#include "RimWellMeasurementInViewCollection.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
@@ -1308,10 +1309,15 @@ void RimEclipseView::onUpdateLegends()
|
||||
isUsingOverrideViewer() );
|
||||
}
|
||||
|
||||
if ( m_wellMeasurementCollection->isChecked() && m_wellMeasurementCollection->legendConfig()->showLegend() )
|
||||
if ( m_wellMeasurementCollection->isChecked() )
|
||||
{
|
||||
m_wellMeasurementCollection->updateLegendRangesTextAndVisibility( nativeOrOverrideViewer(),
|
||||
isUsingOverrideViewer() );
|
||||
for ( RimWellMeasurementInView* wellMeasurement : m_wellMeasurementCollection->measurements() )
|
||||
{
|
||||
if ( wellMeasurement->legendConfig()->showLegend() )
|
||||
{
|
||||
wellMeasurement->updateLegendRangesTextAndVisibility( nativeOrOverrideViewer(), isUsingOverrideViewer() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1859,7 +1865,10 @@ void RimEclipseView::onResetLegendsInViewer()
|
||||
sepInterResDef->ternaryLegendConfig()->recreateLegend();
|
||||
}
|
||||
|
||||
m_wellMeasurementCollection->legendConfig()->recreateLegend();
|
||||
for ( RimWellMeasurementInView* wellMeasurement : m_wellMeasurementCollection->measurements() )
|
||||
{
|
||||
wellMeasurement->legendConfig()->recreateLegend();
|
||||
}
|
||||
|
||||
nativeOrOverrideViewer()->removeAllColorLegends();
|
||||
}
|
||||
@@ -2019,7 +2028,10 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
|
||||
absLegends.push_back( sepInterResDef->ternaryLegendConfig() );
|
||||
}
|
||||
|
||||
absLegends.push_back( m_wellMeasurementCollection->legendConfig() );
|
||||
for ( RimWellMeasurementInView* wellMeasurement : m_wellMeasurementCollection->measurements() )
|
||||
{
|
||||
absLegends.push_back( wellMeasurement->legendConfig() );
|
||||
}
|
||||
|
||||
return absLegends;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user