| 121 | } |
| 122 | |
| 123 | void 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 | } |
nothing calls this directly
no test coverage detected