mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
(#805) Added category legend and mapper
This commit is contained in:
1 parent
3abd849230
commit
1101db5787
12 files changed
+1119
-29
No files matched your search
@@ -37,6 +37,7 @@
|
||||
#include "RiuSimpleHistogramWidget.h"
|
||||
#include "RiuViewerCommands.h"
|
||||
|
||||
#include "cafCategoryLegend.h"
|
||||
#include "cafCeetronPlusNavigation.h"
|
||||
#include "cafEffectGenerator.h"
|
||||
|
||||
@@ -635,6 +636,13 @@ void RiuViewer::updateLegendTextAndTickMarkColor(cvf::OverlayItem* legend)
|
||||
scalarMapperLegend->setColor(contrastColor);
|
||||
scalarMapperLegend->setLineColor(contrastColor);
|
||||
}
|
||||
|
||||
caf::CategoryLegend* categoryLegend = dynamic_cast<caf::CategoryLegend*>(legend);
|
||||
if (categoryLegend)
|
||||
{
|
||||
categoryLegend->setColor(contrastColor);
|
||||
categoryLegend->setLineColor(contrastColor);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user