RiaColorTables : Add and use undefinedCellColor()

This commit is contained in:
Magne Sjaastad
2018-01-22 11:18:45 +01:00
parent 9a420183e1
commit 348b492cc1
7 changed files with 24 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
#include "RimTernaryLegendConfig.h"
#include "RiaApplication.h"
#include "RiaColorTables.h"
#include "RimEclipseView.h"
#include "RimViewLinker.h"
@@ -89,7 +90,7 @@ RimTernaryLegendConfig::RimTernaryLegendConfig()
m_localAutoMin.resize(3, 0.0);
m_localAutoMax.resize(3, 1.0);
m_scalarMapper = new RivTernaryScalarMapper(cvf::Color3f::GRAY);
m_scalarMapper = new RivTernaryScalarMapper(RiaColorTables::undefinedCellColor());
recreateLegend();
updateLegend();