mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Color Legend : Added RAINBOW for better depth visualization (issue #6168)
- Included RAINBOW color legend - RAINBOW set as default when creating a new contour plot
This commit is contained in:
committed by
Magne Sjaastad
parent
7d45ab4f41
commit
edc4b39acb
@@ -88,6 +88,7 @@ void RimRegularLegendConfig::ColorRangeEnum::setUp()
|
||||
addItem( RimRegularLegendConfig::BLACK_WHITE, "BLACK_WHITE", "Black to white" );
|
||||
addItem( RimRegularLegendConfig::CATEGORY, "CATEGORY", "Category colors" );
|
||||
addItem( RimRegularLegendConfig::ANGULAR, "ANGULAR", "Full color cyclic" );
|
||||
addItem( RimRegularLegendConfig::RAINBOW, "RAINBOW", "Rainbow Palette" );
|
||||
addItem( RimRegularLegendConfig::STIMPLAN, "STIMPLAN", "StimPlan colors" );
|
||||
addItem( RimRegularLegendConfig::RED_LIGHT_DARK, "RED_DARK_LIGHT", "Red Light to Dark" );
|
||||
addItem( RimRegularLegendConfig::GREEN_LIGHT_DARK, "GREEN_DARK_LIGHT", "Green Light to Dark" );
|
||||
@@ -958,6 +959,9 @@ cvf::Color3ubArray RimRegularLegendConfig::colorArrayFromColorType( ColorRangesT
|
||||
case RimRegularLegendConfig::ANGULAR:
|
||||
return RiaColorTables::angularPaletteColors().color3ubArray();
|
||||
break;
|
||||
case RimRegularLegendConfig::RAINBOW:
|
||||
return RiaColorTables::rainbowPaletteColors().color3ubArray();
|
||||
break;
|
||||
case RimRegularLegendConfig::STIMPLAN:
|
||||
return RiaColorTables::stimPlanPaletteColors().color3ubArray();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user