LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Colors.h
Go to the documentation of this file.
1 #ifndef EVDB_COLORS_H
7 #define EVDB_COLORS_H
8 
9 #include <vector>
10 #include <string>
11 
15 #include "fhiclcpp/ParameterSet.h"
17 
18 namespace evdb
19 {
20  class ColorScale;
21  class Colors : public Reconfigurable
22  {
23  public:
24  Colors(fhicl::ParameterSet const& p);
25  ~Colors();
26  void reconfigure(fhicl::ParameterSet const& p);
27 
32  void WhiteOnBlack();
33 
38  void BlackOnWhite();
39 
45  int Foreground(int i=0);
46 
52  int Background(int i=0);
53 
57  ColorScale& Scale(const std::string& nm);
58 
59  private:
64  const std::string& c);
68  void SetStyle();
69 
70  private:
71  static const int kMAX_FGBG = 6;
72  int fFG[kMAX_FGBG];
73  int fBG[kMAX_FGBG];
74  std::map<std::string,ColorScale*> fColorScales;
78  };
79 }
80 
82 #endif // EVDB_COLORS
83 
std::map< std::string, ColorScale * > fColorScales
Definition: Colors.h:77
void BlackOnWhite()
Definition: Colors.cc:114
int fFG[kMAX_FGBG]
Foreground colors.
Definition: Colors.h:72
Manage all things related to colors for the event display.
void UnpackColorScale(fhicl::ParameterSet const &p, const std::string &c)
Definition: Colors.cc:47
int fBG[kMAX_FGBG]
Definition: Colors.h:73
void SetStyle()
Definition: Colors.cc:145
void WhiteOnBlack()
Definition: Colors.cc:101
int Background(int i=0)
Definition: Colors.cc:136
Colors(fhicl::ParameterSet const &p)
Definition: Colors.cc:14
#define DECLARE_ART_SERVICE(svc, scope)
Build an association between a numerical range and a ROOT color index for use in, eg...
Definition: ColorScale.h:44
ColorScale & Scale(const std::string &nm)
Definition: Colors.cc:90
Interface class to services that are intended to be reconfigurable through the event display...
int Foreground(int i=0)
Definition: Colors.cc:127
void reconfigure(fhicl::ParameterSet const &p)
Definition: Colors.cc:32
static const int kMAX_FGBG
Definition: Colors.h:71