37 : fMessenger(nullptr),
43 fDefaultHeight((
G4int)(29.7f/21.0f*fDefaultWidth)),
44 fDefaultStyle(
"ROOT_default"),
48 fAvailableStyles(
"ROOT_default hippodrow inlib_default"),
51 fDefaultHeight((
G4int)(29.7f/21.0f*fDefaultWidth)),
52 fDefaultStyle(
"inlib_default"),
56 fAvailableStyles(
"inlib_default"),
58 fColumns(fDefaultColumns),
60 fWidth(fDefaultWidth),
61 fHeight(fDefaultHeight),
62 fScale(fDefaultScale),
65 fMessenger = G4Analysis::make_unique<G4PlotMessenger>(
this);
75 if ( columns > rows ||
76 columns < 1 || columns > fMaxColumns ||
77 rows < 1 || rows > fMaxRows ) {
80 <<
"Layout: " << columns <<
" x " << rows <<
" was ignored." <<
G4endl
81 <<
"Suported layouts: " <<
G4endl
82 <<
" columns <= rows" <<
G4endl
83 <<
" columns = 1 .. " << fMaxColumns <<
G4endl
84 <<
" rows = 1 .. " << fMaxRows <<
G4endl;
105 if ( fAvailableStyles.find(style) == std::string::npos ) {
108 <<
"Style: " << style <<
" was ignored." <<
G4endl
109 <<
"Supported styles: " << fAvailableStyles <<
G4endl;
117 if ( fStyle ==
"ROOT_default" ) {
118 fScale = fDefaultScale;
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetLayout(G4int columns, G4int rows)
void SetDimensions(G4int width, G4int height)
void SetStyle(const G4String &style)