44 using namespace G4Analysis;
49 fPlotParameters(plotParameters),
52 fSetLayoutCmd(nullptr),
53 fSetDimensionsCmd(nullptr),
56 fHelper = G4Analysis::make_unique<G4AnalysisMessengerHelper>(
"plot");
76 fSetStyleCmd = G4Analysis::make_unique<G4UIcmdWithAString>(
"/analysis/plot/setStyle",
this);
77 #if defined(TOOLS_USE_FREETYPE)
79 fSetStyleCmd->SetGuidance(
" ROOT_default: ROOT style with high resolution fonts");
80 fSetStyleCmd->SetGuidance(
" hippodraw: hippodraw style with high resolution fonts");
81 fSetStyleCmd->SetGuidance(
" inlib_default: PAW style with low resolution fonts");
84 fSetStyleCmd->SetGuidance(
"Only one plotting style is available in low resolution: ");
85 fSetStyleCmd->SetGuidance(
" inlib_default: PAW style with low resolution fonts");
97 columns->SetGuidance(
"The number of columns in the page layout.");
98 G4String range =
"columns>=1 && columns<=";
99 std::ostringstream osMaxColumns;
101 range.
append(osMaxColumns.str());
102 columns->SetParameterRange(range);
105 rows->SetGuidance(
"The number of rows in the page layout.");
106 range =
"rows>=1 && rows<=";
107 std::ostringstream osMaxRows;
109 range.
append(osMaxRows.str());
110 rows->SetParameterRange(range);
112 fSetLayoutCmd = G4Analysis::make_unique<G4UIcommand>(
"/analysis/plot/setLayout",
this);
118 fSetLayoutCmd->SetGuidance(
"Set page layout (number of columns and rows per page).");
120 G4String guidance =
" columns = 1 .. ";
121 guidance.
append(osMaxColumns.str());
123 guidance =
" rows = 1 .. ";
124 guidance.
append(osMaxRows.str());
125 guidance.
append(
" and >= columns");
136 width->SetGuidance(
"The page width.");
139 height->SetGuidance(
"The page height.");
141 fSetDimensionsCmd = G4Analysis::make_unique<G4UIcommand>(
"/analysis/plot/setDimensions",
this);
142 fSetDimensionsCmd->SetGuidance(
"Set the plotter window size (width and height) in pixels.");
161 fHelper->WarnAboutParameters(command, parameters.size());
177 #if defined(TOOLS_USE_FREETYPE)