49 modulatorDir -> SetGuidance(
"Command to change the modulator wheel proprties");
52 modulatorMatCmd -> SetGuidance(
"Set material of modulatorWheel");
53 modulatorMatCmd -> SetParameterName(
"Material",
false);
57 modulatorExternalFile -> SetGuidance(
"set properties of modulator steps via a external file");
58 modulatorExternalFile -> SetParameterName(
"FileName",
true,
false);
59 modulatorExternalFile -> SetDefaultValue (
"default");
60 modulatorExternalFile -> AvailableForStates(
G4State_Idle);
63 modulatorPositionCmd -> SetGuidance(
"Set position of modulato");
64 modulatorPositionCmd -> SetParameterName(
"PositionAlongX",
66 "PositionAlongZ",
false);
67 modulatorPositionCmd -> SetDefaultUnit(
"mm");
68 modulatorPositionCmd -> SetUnitCandidates(
"mm cm m");
69 modulatorPositionCmd -> AvailableForStates(
G4State_Idle);
73 modulatorOuterRadiusCmd -> SetGuidance(
"Set size of outer radius");
74 modulatorOuterRadiusCmd-> SetParameterName(
"Size",
false);
75 modulatorOuterRadiusCmd -> SetDefaultUnit(
"mm");
76 modulatorOuterRadiusCmd-> SetUnitCandidates(
"mm cm m");
77 modulatorOuterRadiusCmd-> AvailableForStates(
G4State_Idle);
80 modulatorInnerRadiusCmd -> SetGuidance(
"Set size of inner radius");
81 modulatorInnerRadiusCmd-> SetParameterName(
"Size",
false);
82 modulatorInnerRadiusCmd -> SetDefaultUnit(
"mm");
83 modulatorInnerRadiusCmd-> SetUnitCandidates(
"mm cm m");
84 modulatorInnerRadiusCmd-> AvailableForStates(
G4State_Idle);
87 modulatorAngleCmd -> SetGuidance(
"Set Modulator Angle");
88 modulatorAngleCmd -> SetParameterName(
"Size",
false);
89 modulatorAngleCmd -> SetRange(
"Size>=0.");
90 modulatorAngleCmd -> SetUnitCategory(
"Angle");
96 delete modulatorAngleCmd;
97 delete modulatorMatCmd;
98 delete modulatorPositionCmd;
99 delete modulatorInnerRadiusCmd;
100 delete modulatorOuterRadiusCmd;
109 if( command == modulatorAngleCmd )
110 {Modulator -> SetModulatorAngle
111 (modulatorAngleCmd -> GetNewDoubleValue(newValue));}
113 else if( command == modulatorMatCmd )
114 {Modulator -> SetModulatorMaterial(newValue);}
116 else if (command== modulatorExternalFile)
119 else if( command == modulatorPositionCmd )
120 {
G4ThreeVector size = modulatorPositionCmd-> GetNew3VectorValue(newValue);
121 Modulator -> SetModulatorPosition(size);}
123 else if( command == modulatorOuterRadiusCmd )
124 { Modulator -> SetModulatorOuterRadius(
125 modulatorOuterRadiusCmd -> GetNewDoubleValue(newValue));}
127 else if( command == modulatorInnerRadiusCmd )
128 { Modulator -> SetModulatorInnerRadius(
129 modulatorInnerRadiusCmd -> GetNewDoubleValue(newValue));}
void GetDataFromFile(G4String value)
HadrontherapyModulatorMessenger(HadrontherapyModulator *)
~HadrontherapyModulatorMessenger()
void SetNewValue(G4UIcommand *, G4String)