bpp-core3  3.0.0
DefaultColorSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_GRAPHICS_DEFAULTCOLORSET_H
6 #define BPP_GRAPHICS_DEFAULTCOLORSET_H
7 
8 
9 #include "ColorSet.h"
10 #include "ColorTools.h"
11 
12 namespace bpp
13 {
18  public AbstractColorSet
19 {
20 public:
22  {
23  colors_["black"] = ColorTools::BLACK;
24  colors_["red"] = ColorTools::RED;
25  colors_["green"] = ColorTools::GREEN;
26  colors_["blue"] = ColorTools::BLUE;
27  colors_["yellow"] = ColorTools::YELLOW;
28  colors_["magenta"] = ColorTools::MAGENTA;
29  colors_["cyan"] = ColorTools::CYAN;
30  colors_["white"] = ColorTools::WHITE;
31  }
32  virtual ~DefaultColorSet() {}
33 };
34 } // end of namespace bpp;
35 #endif // BPP_GRAPHICS_DEFAULTCOLORSET_H
static const RGBColor CYAN
Definition: ColorTools.h:89
std::map< std::string, RGBColor > colors_
Definition: ColorSet.h:66
Partial implementation of the ColorSet interface.
Definition: ColorSet.h:62
static const RGBColor BLUE
Definition: ColorTools.h:85
static const RGBColor RED
Definition: ColorTools.h:83
static const RGBColor YELLOW
Definition: ColorTools.h:88
static const RGBColor BLACK
Definition: ColorTools.h:86
static const RGBColor GREEN
Definition: ColorTools.h:84
Default color definitions.
static const RGBColor MAGENTA
Definition: ColorTools.h:90
static const RGBColor WHITE
Definition: ColorTools.h:87