MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetNewValue

Method SetNewValue

source/visualization/management/src/G4PlotterManager.cc:123–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void G4PlotterManager::Messenger::SetNewValue(G4UIcommand* a_cmd,G4String a_value) {
124 std::vector<std::string> args;
125 tools::double_quotes_tokenize(a_value,args);
126 if(args.size()!=a_cmd->GetParameterEntries()) return;
127 if(a_cmd==select_style) {
128 fPlotterManager.SelectStyle(args[0]);
129 } else if(a_cmd==add_style_parameter) {
130 fPlotterManager.AddStyleParameter(args[0],args[1]);
131 } else if(a_cmd==remove_style) {
132 fPlotterManager.RemoveStyle(args[0]);
133 } else if(a_cmd==list_styles) {
134 G4cout << "default (embedded)." << G4endl;
135 G4cout << "ROOT_default (embedded)." << G4endl;
136 G4cout << "hippodraw (embedded)." << G4endl;
137 fPlotterManager.ListStyles();
138 } else if(a_cmd==print_style) {
139 fPlotterManager.PrintStyle(args[0]);
140 }
141}

Callers

nothing calls this directly

Calls 7

GetParameterEntriesMethod · 0.80
SelectStyleMethod · 0.80
AddStyleParameterMethod · 0.80
RemoveStyleMethod · 0.80
ListStylesMethod · 0.80
PrintStyleMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected