LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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
int fFG[kMAX_FGBG]
Foreground colors.
Definition: Colors.h:72
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
Manage all things related to colors for the event display.
void UnpackColorScale(fhicl::ParameterSet const &p, const std::string &c)
int fBG[kMAX_FGBG]
Definition: Colors.h:73
int Background(int i=0)
Colors(fhicl::ParameterSet const &p)
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)
Interface class to services that are intended to be reconfigurable through the event display...
int Foreground(int i=0)
void reconfigure(fhicl::ParameterSet const &p)
static const int kMAX_FGBG
Definition: Colors.h:71