#829 Use interpolated colors in category legend by default

This commit is contained in:
Jacob Støren 2016-09-09 11:17:08 +02:00
parent ed93db724a
commit 39d82a28f4
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ void RimLegendConfig::updateLegend()
break;
case CATEGORY_INTEGER:
m_categoryMapper->setCategoriesWithNames(m_categories, m_categoryNames);
m_categoryMapper->setCycleColors(legendColors);
m_categoryMapper->setInterpolateColors(legendColors);
m_currentScalarMapper = m_categoryMapper.p();
break;
default:

View File

@ -41,7 +41,7 @@ void CategoryMapper::setCategoriesWithNames(const std::vector<int>& categoryValu
ref<Color3ubArray> colorArr = ScalarMapper::colorTableArray(ColorTable::NORMAL);
setCycleColors(*(colorArr.p()));
setInterpolateColors(*(colorArr.p()));
}
//--------------------------------------------------------------------------------------------------