Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
PlottingEngine.hh
Go to the documentation of this file.
1// Abstract base class for plotting engines
2
3#ifndef G_PLOTTING_ENGINE_H
4#define G_PLOTTING_ENGINE_H
5
6#include "Medium.hh"
7#include "Sensor.hh"
8
9namespace Garfield {
10
12
13 public:
14 // Constructor
16 : m_className("PlottingEngine"),
17 m_colorLine1("dark-blue"),
18 m_colorLine2("olive"),
19 m_colorElectron("orange"),
20 m_colorHole("red"),
21 m_colorIon("dark-red"),
22 m_colorPhoton("blue"),
23 m_colorChargedParticle("dark-green"),
24 m_debug(false) {}
25
26 // Destructor
27 virtual ~PlottingEngine() {}
28
29 // Set/get colors.
30 void SetLineColor1(const std::string& col) { m_colorLine1 = col; }
31 void SetLineColor2(const std::string& col) { m_colorLine2 = col; }
32 void SetElectronColor(const std::string& col) { m_colorElectron = col; }
33 void SetHoleColor(const std::string& col) { m_colorHole = col; }
34 void SetIonColor(const std::string& col) { m_colorIon = col; }
35 void SetPhotonColor(const std::string& col) { m_colorPhoton = col; }
36 void SetChargedParticleColor(const std::string& col) {
38 }
39
40 std::string GetLineColor1() const { return m_colorLine1; }
41 std::string GetLineColor2() const { return m_colorLine2; }
42 std::string GetElectronColor() const { return m_colorElectron; }
43 std::string GetHoleColor() const { return m_colorHole; }
44 std::string GetIonColor() const { return m_colorIon; }
45 std::string GetPhotonColor() const { return m_colorPhoton; }
46 std::string GetChargedParticleColor() const { return m_colorChargedParticle; }
47
48 // Switch on/off debugging messages
49 void EnableDebugging() { m_debug = true; }
50 void DisableDebugging() { m_debug = false; }
51
52 protected:
53 std::string m_className;
54
56 std::string m_colorElectron;
57 std::string m_colorHole;
58 std::string m_colorIon;
59 std::string m_colorPhoton;
61
62 bool m_debug;
63};
64}
65
66#endif
std::string GetIonColor() const
std::string GetLineColor2() const
std::string m_colorChargedParticle
void SetElectronColor(const std::string &col)
void SetPhotonColor(const std::string &col)
void SetChargedParticleColor(const std::string &col)
void SetLineColor2(const std::string &col)
void SetIonColor(const std::string &col)
std::string GetPhotonColor() const
void SetHoleColor(const std::string &col)
std::string GetElectronColor() const
std::string GetHoleColor() const
std::string GetLineColor1() const
std::string GetChargedParticleColor() const
void SetLineColor1(const std::string &col)