#include <G4UIcmdWithABool.hh>
Inheritance diagram for G4UIcmdWithABool:
Public Member Functions | |
G4UIcmdWithABool (const char *theCommandPath, G4UImessenger *theMessenger) | |
void | SetParameterName (const char *theName, G4bool omittable, G4bool currentAsDefault=false) |
void | SetDefaultValue (G4bool defVal) |
Static Public Member Functions | |
static G4bool | GetNewBoolValue (const char *paramString) |
Definition at line 45 of file G4UIcmdWithABool.hh.
G4UIcmdWithABool::G4UIcmdWithABool | ( | const char * | theCommandPath, | |
G4UImessenger * | theMessenger | |||
) |
Definition at line 34 of file G4UIcmdWithABool.cc.
00035 :G4UIcommand(theCommandPath,theMessenger) 00036 { 00037 G4UIparameter * blParam = new G4UIparameter('b'); 00038 SetParameter(blParam); 00039 }
G4bool G4UIcmdWithABool::GetNewBoolValue | ( | const char * | paramString | ) | [static] |
Definition at line 41 of file G4UIcmdWithABool.cc.
References G4UIcommand::ConvertToBool().
Referenced by G4RunMessenger::SetNewValue(), G4RTMessenger::SetNewValue(), G4RadioactiveDecaymessenger::SetNewValue(), G4PolarizationMessenger::SetNewValue(), G4ParticlePropertyMessenger::SetNewValue(), G4OpticalPhysicsMessenger::SetNewValue(), G4ModelCmdApplyBool< M >::SetNewValue(), G4MatScanMessenger::SetNewValue(), G4HepRepMessenger::SetNewValue(), G4GMocrenMessenger::SetNewValue(), G4GeometryMessenger::SetNewValue(), G4GeneralParticleSourceMessenger::SetNewValue(), G4EnergyLossMessenger::SetNewValue(), and G4AnalysisMessenger::SetNewValue().
00042 { 00043 return ConvertToBool(paramString); 00044 }
void G4UIcmdWithABool::SetDefaultValue | ( | G4bool | defVal | ) |
Definition at line 55 of file G4UIcmdWithABool.cc.
References G4UIcommand::GetParameter(), and G4UIparameter::SetDefaultValue().
Referenced by G4EnergyLossMessenger::G4EnergyLossMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4GMocrenMessenger::G4GMocrenMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4RunMessenger::G4RunMessenger(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), and G4VisCommandViewerDefaultHiddenEdge::G4VisCommandViewerDefaultHiddenEdge().
00056 { 00057 G4UIparameter * theParam = GetParameter(0); 00058 theParam->SetDefaultValue(defVal); 00059 }
void G4UIcmdWithABool::SetParameterName | ( | const char * | theName, | |
G4bool | omittable, | |||
G4bool | currentAsDefault = false | |||
) |
Definition at line 47 of file G4UIcmdWithABool.cc.
References G4UIparameter::SetCurrentAsDefault(), G4UIparameter::SetOmittable(), and G4UIparameter::SetParameterName().
Referenced by G4AnalysisMessenger::G4AnalysisMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4GMocrenMessenger::G4GMocrenMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4ModelCmdApplyBool< M >::G4ModelCmdApplyBool(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), G4ParticlePropertyMessenger::G4ParticlePropertyMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4RunMessenger::G4RunMessenger(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), and G4VisCommandViewerDefaultHiddenEdge::G4VisCommandViewerDefaultHiddenEdge().
00048 { 00049 G4UIparameter * theParam = GetParameter(0); 00050 theParam->SetParameterName(theName); 00051 theParam->SetOmittable(omittable); 00052 theParam->SetCurrentAsDefault(currentAsDefault); 00053 }