29#ifndef G4PLOTTERMANAGER_HH
30#define G4PLOTTERMANAGER_HH
45 using Style = std::vector<StyleItem>;
47 using Styles = std::vector<NamedStyle>;
57 void ListStyles()
const;
59 void SelectStyle(
const G4String& style);
60 void RemoveStyle(
const G4String& name);
61 void PrintStyle(
const G4String&)
const;
64 typedef std::pair<G4String,G4Plotter> NamedPlotter;
65 std::vector<NamedPlotter> fPlotters;
72 Messenger(
G4PlotterManager& aPlotterManager):fPlotterManager(aPlotterManager) {
77 remove_style =
new G4UIcommand(
"/vis/plotter/style/remove",
this);
85 select_style =
new G4UIcommand(
"/vis/plotter/style/select",
this);
86 select_style->
SetGuidance(
"Select a named style for further style/add commands.");
87 select_style->
SetGuidance(
"If not existing, the named style is created.");
94 add_style_parameter =
new G4UIcommand(
"/vis/plotter/style/add",
this);
95 add_style_parameter->
SetGuidance(
"Add a (parameter,value) to the current named style.");
105 list_styles =
new G4UIcommand(
"/vis/plotter/style/list",
this);
106 list_styles->
SetGuidance(
"List known not embedded styles.");
110 print_style =
new G4UIcommand(
"/vis/plotter/style/print",
this);
116 virtual ~Messenger() {
119 delete add_style_parameter;
133 Messenger* fMessenger;
std::vector< NamedStyle > Styles
G4Plotter & GetPlotter(const G4String &a_name)
std::pair< G4String, Style > NamedStyle
std::vector< StyleItem > Style
std::pair< G4String, G4String > StyleItem
static G4PlotterManager & GetInstance()
const Styles & GetStyles() const
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)