54 "This type of session does not support output styles.");
69 interactors[a_name] = a_interactor;
75 G4interactor_map::iterator it;
76 if ((it = interactors.find(a_name)) == interactors.end())
return nullptr;
81const std::map<G4String, G4VInteractiveSession::OutputStyle>&
93 const auto& setStyle = [&](
const G4String& dest) {
95 if (styleG4 ==
"fixed") {
96 styleForThisDestination.fixed =
true;
98 else if (styleG4 ==
"proportional") {
99 styleForThisDestination.fixed =
false;
101 else if (styleG4 ==
"bold") {
102 styleForThisDestination.bold =
true;
104 else if (styleG4 ==
"plain") {
105 styleForThisDestination.bold =
false;
106 styleForThisDestination.highlight =
false;
108 else if (styleG4 ==
"highlight") {
109 styleForThisDestination.highlight =
true;
114 if (destinationG4 ==
"all") {
121 setStyle(destinationG4);
125 ed <<
"Unrecognised output destination \"" << destinationG4 <<
'"';
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
void SetStyleUtility(const G4String &destination, const G4String &style)
const std::map< G4String, OutputStyle > & GetOutputStyles() const
std::map< G4String, OutputStyle > fOutputStyles
virtual void SetOutputStyle(const char *, const char *)
virtual void DefaultIcons(bool)
void AddInteractor(G4String, G4Interactor)
virtual void UpdateSceneTree(const G4SceneTreeItem &)
G4Interactor GetInteractor(G4String)
virtual void AddMenu(const char *, const char *)
virtual void AddIcon(const char *, const char *, const char *, const char *)
virtual ~G4VInteractiveSession()
virtual void AddButton(const char *, const char *, const char *)
virtual void NativeMenu(bool)