mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add legend support to Report Plot
This commit is contained in:
@@ -94,6 +94,7 @@ void RimRegularLegendConfig::ColorRangeEnum::setUp()
|
||||
addItem( RimRegularLegendConfig::BLUE_LIGHT_DARK, "BLUE_DARK_LIGHT", "Blue Light to Dark" );
|
||||
addItem( RimRegularLegendConfig::GREEN_RED, "GREEN_RED", "Green to Red" );
|
||||
addItem( RimRegularLegendConfig::BLUE_MAGENTA, "BLUE_MAGENTA", "Blue to Magenta" );
|
||||
addItem( RimRegularLegendConfig::CORRELATION, "CORRELATION", "Correlation colors" );
|
||||
addItem( RimRegularLegendConfig::UNDEFINED, "UNDEFINED", "Undefined" );
|
||||
setDefault( RimRegularLegendConfig::UNDEFINED );
|
||||
}
|
||||
@@ -928,6 +929,9 @@ cvf::Color3ubArray RimRegularLegendConfig::colorArrayFromColorType( ColorRangesT
|
||||
case RimRegularLegendConfig::STIMPLAN:
|
||||
return RiaColorTables::stimPlanPaletteColors().color3ubArray();
|
||||
break;
|
||||
case RimRegularLegendConfig::CORRELATION:
|
||||
return RiaColorTables::correlationPaletteColors().color3ubArray();
|
||||
break;
|
||||
default:
|
||||
if ( ColorManager::isEnsembleColorRange( colorType ) )
|
||||
return ColorManager::EnsembleColorRanges().at( colorType );
|
||||
|
||||
Reference in New Issue
Block a user