48 fPlotParameters(plotParameters)
50 fHelper = std::make_unique<G4AnalysisMessengerHelper>(
"plot");
69 fSetStyleCmd = std::make_unique<G4UIcmdWithAString>(
"/analysis/plot/setStyle",
this);
70#if defined(TOOLS_USE_FREETYPE)
72 fSetStyleCmd->SetGuidance(
" ROOT_default: ROOT style with high resolution fonts");
73 fSetStyleCmd->SetGuidance(
" hippodraw: hippodraw style with high resolution fonts");
74 fSetStyleCmd->SetGuidance(
" inlib_default: PAW style with low resolution fonts");
77 fSetStyleCmd->SetGuidance(
"Only one plotting style is available in low resolution: ");
78 fSetStyleCmd->SetGuidance(
" inlib_default: PAW style with low resolution fonts");
90 columns->SetGuidance(
"The number of columns in the page layout.");
91 G4String range =
"columns>=1 && columns<=";
93 range.append(to_string(maxColumns));
94 columns->SetParameterRange(range);
97 rows->SetGuidance(
"The number of rows in the page layout.");
98 range =
"rows>=1 && rows<=";
100 range.append(to_string(maxRows));
101 rows->SetParameterRange(range);
103 fSetLayoutCmd = std::make_unique<G4UIcommand>(
"/analysis/plot/setLayout",
this);
109 fSetLayoutCmd->SetGuidance(
"Set page layout (number of columns and rows per page).");
111 G4String guidance =
" columns = 1 .. ";
112 guidance.append(to_string(maxColumns));
114 guidance =
" rows = 1 .. ";
115 guidance.append(to_string(maxRows));
116 guidance.append(
" and >= columns");
127 width->SetGuidance(
"The page width.");
130 height->SetGuidance(
"The page height.");
132 fSetDimensionsCmd = std::make_unique<G4UIcommand>(
"/analysis/plot/setDimensions",
this);
133 fSetDimensionsCmd->SetGuidance(
"Set the plotter window size (width and height) in pixels.");
147 std::vector<G4String> parameters;
152 fHelper->WarnAboutParameters(command, parameters.size());
168#if defined(TOOLS_USE_FREETYPE)
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
virtual ~G4PlotMessenger()
G4PlotParameters * fPlotParameters
Associated class.
std::unique_ptr< G4UIcommand > fSetDimensionsCmd
std::unique_ptr< G4UIcommand > fSetLayoutCmd
std::unique_ptr< G4UIdirectory > fDirectory
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4UIcmdWithAString > fSetStyleCmd
void SetLayout(G4int columns, G4int rows)
G4String GetAvailableStyles()
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)