35 #ifndef G4VISCOMMANDSMODELCREATE_HH 36 #define G4VISCOMMANDSMODELCREATE_HH 39 #include "G4String.hh" 45 template <
typename Factory>
73 template <
typename Factory>
79 G4String factoryName = factory->Name();
82 G4String guidance =
"Create a "+factoryName+
" model and associated messengers.";
90 template <
typename Factory>
101 template <
typename Factory>
108 template <
typename Factory>
112 std::ostringstream oss;
117 template <
typename Factory>
124 template <
typename Factory>
133 G4String guidance =
"Commands for "+newName+
" model.";
140 typename Factory::ModelAndMessengers creation =
fpFactory->Create(
Placement(), newName);
146 typename Factory::Messengers::iterator iter = creation.second.begin();
148 while (iter != creation.second.end()) {
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4String GetCurrentValue(G4UIcommand *)
void SetNewValue(G4UIcommand *command, G4String newValue)
std::vector< G4UIcommand * > fDirectoryList
G4VisCommandModelCreate(Factory *, const G4String &placement)
void RegisterMessenger(G4UImessenger *messenger)
void SetGuidance(const char *aGuidance)
G4String Placement() const
void RegisterModel(G4VTrajectoryModel *model)
virtual ~G4VisCommandModelCreate()
G4UIcmdWithAString * fpCommand
static G4VisManager * fpVisManager