mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 18:02:12 -05:00
This commit is contained in:
1 parent
2adefbcb04
commit
27737b51bc
10 files changed
+157
-18
No files matched your search
@@ -226,8 +226,9 @@ RimGeoMechResultDefinition* RimIntersectionResultDefinition::geoMechResultDefini
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( RiuViewer* nativeOrOverrideViewer,
|
||||
bool isUsingOverrideViewer )
|
||||
void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( const QString& title,
|
||||
RiuViewer* nativeOrOverrideViewer,
|
||||
bool isUsingOverrideViewer )
|
||||
{
|
||||
if ( !this->isInAction() ) return;
|
||||
|
||||
@@ -257,7 +258,7 @@ void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( RiuVi
|
||||
this->ternaryLegendConfig(),
|
||||
this->timeStep() );
|
||||
|
||||
eclResultDef->updateLegendTitle( this->regularLegendConfig(), "Intersection Results:\n" );
|
||||
eclResultDef->updateLegendTitle( this->regularLegendConfig(), title );
|
||||
|
||||
if ( this->regularLegendConfig()->showLegend() && eclResultDef->hasResult() )
|
||||
{
|
||||
@@ -268,16 +269,14 @@ void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( RiuVi
|
||||
eclResultDef->currentGridCellResults()->maxTimeStepCount() > 1 &&
|
||||
this->ternaryLegendConfig()->showLegend() && this->ternaryLegendConfig()->titledOverlayFrame() )
|
||||
{
|
||||
this->ternaryLegendConfig()->setTitle( "Intersection Results: \n" );
|
||||
this->ternaryLegendConfig()->setTitle( title );
|
||||
nativeOrOverrideViewer->addColorLegendToBottomLeftCorner( this->ternaryLegendConfig()->titledOverlayFrame(),
|
||||
isUsingOverrideViewer );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this->geoMechResultDefinition()->updateLegendTextAndRanges( this->regularLegendConfig(),
|
||||
"Intersection Results:\n",
|
||||
this->timeStep() );
|
||||
this->geoMechResultDefinition()->updateLegendTextAndRanges( this->regularLegendConfig(), title, this->timeStep() );
|
||||
|
||||
if ( this->geoMechResultDefinition()->hasResult() && this->regularLegendConfig()->showLegend() )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user