#1174 Use well ordering when creating category legend colors max tracer

This commit is contained in:
Magne Sjaastad
2017-02-15 15:21:13 +01:00
parent 9a7f187765
commit 037c7c1f73
3 changed files with 37 additions and 31 deletions

View File

@@ -26,6 +26,8 @@
#include "cafPdmObject.h"
#include "cafPdmField.h"
#include <tuple>
namespace cvf
{
class ScalarMapperContinuousLog;
@@ -108,8 +110,7 @@ public:
void setIntegerCategories(const std::vector<int>& categories);
void setNamedCategoriesInverse(const std::vector<QString>& categoryNames);
void setNamedCategories(const std::vector<QString>& categoryNames);
void setCategoryColors(const std::vector<cvf::Color3ub>& categoryColors);
void setCategoryItems(const std::vector<std::tuple<QString, int, cvf::Color3ub>>& categories);
QString categoryNameFromCategoryValue(int categoryValue) const;
void setTitle(const cvf::String& title);