36 : fMessenger(nullptr),
39#if defined(TOOLS_USE_FREETYPE)
42 fDefaultHeight((
G4int)(29.7f/21.0f*fDefaultWidth)),
43 fDefaultStyle(
"ROOT_default"),
47 fAvailableStyles(
"ROOT_default hippodrow inlib_default"),
50 fDefaultHeight((
G4int)(29.7f/21.0f*fDefaultWidth)),
51 fDefaultStyle(
"inlib_default"),
55 fAvailableStyles(
"inlib_default"),
57 fColumns(fDefaultColumns),
59 fWidth(fDefaultWidth),
60 fHeight(fDefaultHeight),
61 fScale(fDefaultScale),
64 fMessenger = G4Analysis::make_unique<G4PlotMessenger>(
this);
74 if ( columns > rows ||
75 columns < 1 || columns > fMaxColumns ||
76 rows < 1 || rows > fMaxRows ) {
79 <<
"Layout: " << columns <<
" x " << rows <<
" was ignored." <<
G4endl
80 <<
"Supported layouts: " <<
G4endl
81 <<
" columns <= rows" <<
G4endl
82 <<
" columns = 1 .. " << fMaxColumns <<
G4endl
83 <<
" rows = 1 .. " << fMaxRows <<
G4endl;
104 if ( fAvailableStyles.find(style) == std::string::npos ) {
107 <<
"Style: " << style <<
" was ignored." <<
G4endl
108 <<
"Supported styles: " << fAvailableStyles <<
G4endl;
116 if ( fStyle ==
"ROOT_default" ) {
117 fScale = fDefaultScale;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
void SetLayout(G4int columns, G4int rows)
void SetDimensions(G4int width, G4int height)
void SetStyle(const G4String &style)