From e59bd10722931eba4549f02d59b4e29dc63da0f8 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Thu, 24 Sep 2020 15:02:40 +0200 Subject: [PATCH] RimFractureModelPlot: show legends in plot. --- .../RicNewFractureModelPlotFeature.cpp | 11 +++++++++++ .../ProjectDataModel/RimFractureModelPlot.cpp | 1 + 2 files changed, 12 insertions(+) diff --git a/ApplicationCode/Commands/CompletionCommands/RicNewFractureModelPlotFeature.cpp b/ApplicationCode/Commands/CompletionCommands/RicNewFractureModelPlotFeature.cpp index ae5e645059..1f28788dd2 100644 --- a/ApplicationCode/Commands/CompletionCommands/RicNewFractureModelPlotFeature.cpp +++ b/ApplicationCode/Commands/CompletionCommands/RicNewFractureModelPlotFeature.cpp @@ -252,6 +252,7 @@ void RicNewFractureModelPlotFeature::createFormationTrack( RimFractureModelPlot* formationTrack->setOverburdenHeight( fractureModel->overburdenHeight() ); formationTrack->setUnderburdenHeight( fractureModel->underburdenHeight() ); formationTrack->setColSpan( RimPlot::ONE ); + formationTrack->setLegendsVisible( true ); } //-------------------------------------------------------------------------------------------------- @@ -286,6 +287,8 @@ void RicNewFractureModelPlotFeature::createFaciesTrack( RimFractureModelPlot* pl faciesTrack->setRegionPropertyResultType( faciesDefinition->resultType(), faciesDefinition->resultVariable() ); faciesTrack->setOverburdenHeight( fractureModel->overburdenHeight() ); faciesTrack->setUnderburdenHeight( fractureModel->underburdenHeight() ); + faciesTrack->setLegendsVisible( true ); + faciesTrack->setPlotTitleVisible( true ); RimColorLegend* faciesColors = faciesProperties->colorLegend(); if ( faciesColors ) @@ -334,6 +337,8 @@ void RicNewFractureModelPlotFeature::createLayersTrack( RimFractureModelPlot* pl RimWellLogTrack* faciesTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack( false, "Layers", plot ); faciesTrack->setFormationWellPath( fractureModel->thicknessDirectionWellPath() ); faciesTrack->setFormationCase( eclipseCase ); + faciesTrack->setLegendsVisible( true ); + faciesTrack->setPlotTitleVisible( true ); RimFractureModelTemplate* fractureModelTemplate = fractureModel->fractureModelTemplate(); if ( !fractureModelTemplate ) @@ -397,6 +402,8 @@ void RicNewFractureModelPlotFeature::createParametersTrack( RimFractureModelPlot plotTrack->setFormationCase( eclipseCase ); plotTrack->setFormationWellPath( fractureModel->thicknessDirectionWellPath() ); plotTrack->setColSpan( RimPlot::TWO ); + plotTrack->setLegendsVisible( true ); + plotTrack->setPlotTitleVisible( true ); caf::ColorTable colors = RiaColorTables::wellLogPlotPaletteColors(); @@ -476,6 +483,8 @@ void RicNewFractureModelPlotFeature::createElasticPropertiesTrack( RimFractureMo plotTrack->setShowRegionLabels( true ); plotTrack->setShowWindow( true ); plotTrack->setColSpan( RimPlot::TWO ); + plotTrack->setLegendsVisible( true ); + plotTrack->setPlotTitleVisible( true ); caf::ColorTable colors = RiaColorTables::wellLogPlotPaletteColors(); @@ -520,6 +529,8 @@ void RicNewFractureModelPlotFeature::createStressTrack( RimFractureModelPlot* plotTrack->setShowRegionLabels( true ); plotTrack->setShowWindow( true ); plotTrack->setColSpan( RimPlot::TWO ); + plotTrack->setLegendsVisible( true ); + plotTrack->setPlotTitleVisible( true ); caf::ColorTable colors = RiaColorTables::wellLogPlotPaletteColors(); int colorIndex = 0; diff --git a/ApplicationCode/ProjectDataModel/RimFractureModelPlot.cpp b/ApplicationCode/ProjectDataModel/RimFractureModelPlot.cpp index 1d87a32dc8..d5c9d69cd9 100644 --- a/ApplicationCode/ProjectDataModel/RimFractureModelPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimFractureModelPlot.cpp @@ -50,6 +50,7 @@ RimFractureModelPlot::RimFractureModelPlot() m_fractureModel.uiCapability()->setUiTreeChildrenHidden( true ); m_fractureModel.uiCapability()->setUiHidden( true ); + setLegendsVisible( true ); setDeletable( true ); }