46 :myUserPhantom(myUsrPhtm),bps(false)
55 modelCmd->
SetGuidance(
"Set sex of Phantom: MIRD, ORNLFemale, ORNLMale, MIX, MIRDHead, ORNLHead.");
58 modelCmd->
SetCandidates(
"MIRD ORNLFemale ORNLMale MIX MIRDHead ORNLHead");
62 sexCmd->
SetGuidance(
"Set sex of Phantom: Male or Female.");
69 bodypartCmd->
SetGuidance(
"Add a Body Part to Phantom");
91 if( command == modelCmd )
95 if( command == sexCmd )
99 if( command == bodypartCmd )
103 if( command == endCmd )
106 " ****************>>>> NEW PHANTOM CONSTRUCTION <<<<***************** "
114 char* str =
new char[newBodyPartSensitivity.length()+1];
116 strcpy(str, newBodyPartSensitivity.c_str());
118 std::string bpart = strtok(str,
" ");
120 std::string sensitivity = strtok(NULL,
" ");
122 if(sensitivity==
"yes"){
128 G4cout <<
" >>> Body Part = " << bpart <<
"\n"
129 <<
" >>> Sensitivity = " << sensitivity <<
G4endl;
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4HumanPhantomMessenger(G4HumanPhantomConstruction *myUsrPhtm)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetPhantomModel(G4String)
void SetPhantomSex(G4String)
G4GLOB_DLL std::ostream G4cout
void SetBodyPartSensitivity(G4String, G4bool)
void SetGuidance(const char *aGuidance)
void AddBodyPart(G4String)
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
~G4HumanPhantomMessenger()