39 : fMessenger(nullptr),
40#if defined(TOOLS_USE_FREETYPE)
41 fDefaultStyle(
"ROOT_default"),
42 fAvailableStyles(
"ROOT_default hippodrow inlib_default"),
44 fDefaultStyle(
"inlib_default"),
45 fAvailableStyles(
"inlib_default"),
49 fMessenger = std::make_unique<G4PlotMessenger>(
this);
59 if ( columns > rows ||
60 columns < 1 || columns > fkMaxColumns ||
61 rows < 1 || rows > fkMaxRows ) {
62 Warn(
"Layout: " + to_string(columns) +
" x " + to_string(rows) +
64 "Supported layouts (columns <= rows): \n" +
65 " columns = 1 .. " + to_string(fkMaxColumns) +
"\n" +
66 " rows = 1 .. " + to_string(fkMaxRows),
67 fkClass,
"SetLayout");
86 if ( fAvailableStyles.find(style) == std::string::npos ) {
87 Warn(
"Style: " + style +
" was ignored.\n" +
88 "Supported styles: " + fAvailableStyles,
95 if ( fStyle ==
"ROOT_default" ) {
96 fScale = fkDefaultScale;
void SetLayout(G4int columns, G4int rows)
void SetDimensions(G4int width, G4int height)
void SetStyle(const G4String &style)
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)