From 39d82a28f406afe587bb3e53150d12c65d6b46aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Fri, 9 Sep 2016 11:17:08 +0200 Subject: [PATCH] #829 Use interpolated colors in category legend by default --- ApplicationCode/ProjectDataModel/RimLegendConfig.cpp | 2 +- Fwk/AppFwk/cafVizExtensions/cafCategoryMapper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp index ccc374eae5..d87bf0a0a5 100644 --- a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp +++ b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp @@ -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: diff --git a/Fwk/AppFwk/cafVizExtensions/cafCategoryMapper.cpp b/Fwk/AppFwk/cafVizExtensions/cafCategoryMapper.cpp index b89c5b6df4..d2539edb21 100644 --- a/Fwk/AppFwk/cafVizExtensions/cafCategoryMapper.cpp +++ b/Fwk/AppFwk/cafVizExtensions/cafCategoryMapper.cpp @@ -41,7 +41,7 @@ void CategoryMapper::setCategoriesWithNames(const std::vector& categoryValu ref colorArr = ScalarMapper::colorTableArray(ColorTable::NORMAL); - setCycleColors(*(colorArr.p())); + setInterpolateColors(*(colorArr.p())); } //--------------------------------------------------------------------------------------------------