32 #ifndef G4APPLYCOMMANDST_HH
33 #define G4APPLYCOMMANDST_HH
36 #include "G4String.hh"
80 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
113 template <
typename M>
117 delete fpComponentCmd;
120 template <
typename M>
126 if (cmd == fpStringCmd) {
128 std::istringstream is (newValue);
129 is >> parameter >> colour;
134 ed <<
"G4Colour with key "<<colour<<
" does not exist ";
136 (
"G4ModelCmdApplyStringColour<M>::SetNewValue",
142 if (cmd == fpComponentCmd) {
144 std::istringstream is (newValue);
145 is >> parameter >> red >> green >> blue >>
alpha;
147 G4Colour colour(red, green, blue, alpha);
151 Apply(parameter, myColour);
158 template <
typename M>
184 template <
typename M>
189 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
218 template <
typename M>
222 delete fpComponentCmd;
225 template <
typename M>
230 if (cmd == fpStringCmd) {
232 std::istringstream is (newValue);
238 ed <<
"G4Colour with key "<<colour<<
" does not exist ";
240 (
"G4ModelCmdApplyColour<M>::SetNewValue",
246 if (cmd == fpComponentCmd) {
248 std::istringstream is (newValue);
249 is >> red >> green >> blue >>
alpha;
251 G4Colour colour(red, green, blue, alpha);
262 template <
typename M>
285 template <
typename M>
289 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
295 template <
typename M>
301 template <
typename M>
304 Apply(fpCmd->GetNewBoolValue(newValue));
306 if (visManager) visManager->NotifyHandlers();
311 template <
typename M>
325 virtual void Apply() = 0;
335 template <
typename M>
339 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
343 template <
typename M>
349 template <
typename M>
359 template <
typename M>
383 template <
typename M>
387 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
393 template <
typename M>
399 template <
typename M>
402 Apply(fpCmd->GetNewDoubleValue(newValue));
404 if (visManager) visManager->NotifyHandlers();
409 template <
typename M>
433 template <
typename M>
437 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
443 template <
typename M>
449 template <
typename M>
452 Apply(fpCmd->GetNewDoubleValue(newValue));
454 if (visManager) visManager->NotifyHandlers();
459 template <
typename M>
482 template <
typename M>
486 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
492 template <
typename M>
498 template <
typename M>
501 Apply(fpCmd->GetNewIntValue(newValue));
503 if (visManager) visManager->NotifyHandlers();
508 template <
typename M>
532 template <
typename M>
536 G4String dir = placement+
"/"+model->Name()+
"/"+cmdName;
541 template <
typename M>
547 template <
typename M>