#include <G4PlotMessenger.hh>
Definition at line 46 of file G4PlotMessenger.hh.
◆ G4PlotMessenger()
Definition at line 47 of file G4PlotMessenger.cc.
49 fPlotParameters(plotParameters),
50 fHelper(nullptr),
51 fDirectory(nullptr),
52 fSetLayoutCmd(nullptr),
53 fSetDimensionsCmd(nullptr),
54 fSetStyleCmd(nullptr)
55{
56 fHelper = G4Analysis::make_unique<G4AnalysisMessengerHelper>("plot");
57
58 fDirectory = fHelper->CreateHnDirectory();
59
60 SetStyleCmd();
61 SetLayoutCmd();
62 SetDimensionsCmd();
63}
◆ ~G4PlotMessenger()
G4PlotMessenger::~G4PlotMessenger |
( |
| ) |
|
|
virtual |
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 153 of file G4PlotMessenger.cc.
154{
155
156 std::vector<G4String> parameters;
158
160
161 fHelper->WarnAboutParameters(command, parameters.size());
162 return;
163 }
164
165 if ( command == fSetLayoutCmd.get() ) {
166 auto counter = 0;
169 fPlotParameters->
SetLayout(columns, rows);
170 }
171 else if ( command == fSetDimensionsCmd.get() ) {
172 auto counter = 0;
176 }
177#if defined(TOOLS_USE_FREETYPE)
178 else if ( command == fSetStyleCmd.get() ) {
179 fPlotParameters->
SetStyle(newValues);
180 }
181#endif
182}
void SetLayout(G4int columns, G4int rows)
void SetDimensions(G4int width, G4int height)
void SetStyle(const G4String &style)
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
The documentation for this class was generated from the following files: