Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ enum class DiscretePalette {
enum class CategoricalPalette {
COLORBREWER,
DISTINCT150,
CHESAPEAKE,
};

/**
Expand Down
5 changes: 4 additions & 1 deletion hydra_visualizer/src/color/colormap_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const std::vector<Color>& lookupColormap(CategoricalPalette cmap) {
switch (cmap) {
case CategoricalPalette::COLORBREWER:
return spark_dsg::colormaps::colorbrewerPalette();
case CategoricalPalette::CHESAPEAKE:
return spark_dsg::colormaps::chesapeakePalette();
case CategoricalPalette::DISTINCT150:
default:
return spark_dsg::colormaps::distinct150Palette();
Expand Down Expand Up @@ -211,7 +213,8 @@ void declare_config(CategoricalColormap::Config& config) {
enum_field(config.palette,
"palette",
{{CategoricalPalette::COLORBREWER, "colorbrewer"},
{CategoricalPalette::DISTINCT150, "distinct150"}});
{CategoricalPalette::DISTINCT150, "distinct150"},
{CategoricalPalette::CHESAPEAKE, "chesapeake"}});
field(config.default_color, "default_color");
}

Expand Down
Loading