#include <G4UIcmdWithNucleusLimits.hh>
Inheritance diagram for G4UIcmdWithNucleusLimits:
Public Member Functions | |
G4UIcmdWithNucleusLimits (const char *theCommandPath, G4UImessenger *theMessenger) | |
~G4UIcmdWithNucleusLimits () | |
G4NucleusLimits | GetNewNucleusLimitsValue (G4String paramString) |
G4String | ConvertToString (G4NucleusLimits nuclimit) |
void | SetParameterName (const char *theNameAMin, const char *theNameAMax, const char *theNameZMin, const char *theNameZMax, G4bool omittable, G4bool currentAsDefault=true) |
void | SetDefaultValue (G4NucleusLimits defVal) |
Definition at line 76 of file G4UIcmdWithNucleusLimits.hh.
G4UIcmdWithNucleusLimits::G4UIcmdWithNucleusLimits | ( | const char * | theCommandPath, | |
G4UImessenger * | theMessenger | |||
) |
Definition at line 32 of file G4UIcmdWithNucleusLimits.cc.
00033 :G4UIcommand(theCommandPath,theMessenger) 00034 { 00035 G4UIparameter * intParamAMin = new G4UIparameter('i'); 00036 SetParameter(intParamAMin); 00037 G4UIparameter * intParamAMax = new G4UIparameter('i'); 00038 SetParameter(intParamAMax); 00039 G4UIparameter * intParamZMin = new G4UIparameter('i'); 00040 SetParameter(intParamZMin); 00041 G4UIparameter * intParamZMax = new G4UIparameter('i'); 00042 SetParameter(intParamZMax); 00043 }
G4UIcmdWithNucleusLimits::~G4UIcmdWithNucleusLimits | ( | ) |
G4String G4UIcmdWithNucleusLimits::ConvertToString | ( | G4NucleusLimits | nuclimit | ) |
Definition at line 67 of file G4UIcmdWithNucleusLimits.cc.
References G4NucleusLimits::GetAMax(), G4NucleusLimits::GetAMin(), G4NucleusLimits::GetZMax(), and G4NucleusLimits::GetZMin().
00068 { 00069 std::ostringstream os; 00070 os << defLimits.GetAMin() << " " << defLimits.GetAMax() 00071 << defLimits.GetZMin() << " " << defLimits.GetZMax() ; 00072 G4String vl = os.str(); 00073 return vl; 00074 }
G4NucleusLimits G4UIcmdWithNucleusLimits::GetNewNucleusLimitsValue | ( | G4String | paramString | ) |
Definition at line 54 of file G4UIcmdWithNucleusLimits.cc.
Referenced by G4RadioactiveDecaymessenger::SetNewValue().
00055 { 00056 G4int aMin; 00057 G4int aMax; 00058 G4int zMin; 00059 G4int zMax; 00060 std::istringstream is(paramString); 00061 is >> aMin >> aMax >> zMin >> zMax; 00062 return G4NucleusLimits(aMin,aMax,zMin,zMax); 00063 }
void G4UIcmdWithNucleusLimits::SetDefaultValue | ( | G4NucleusLimits | defVal | ) |
Definition at line 100 of file G4UIcmdWithNucleusLimits.cc.
References G4NucleusLimits::GetAMax(), G4NucleusLimits::GetAMin(), G4UIcommand::GetParameter(), G4NucleusLimits::GetZMax(), G4NucleusLimits::GetZMin(), and G4UIparameter::SetDefaultValue().
00101 { 00102 G4UIparameter * theParamAMin = GetParameter(0); 00103 theParamAMin->SetDefaultValue(defLimits.GetAMin()); 00104 G4UIparameter * theParamAMax = GetParameter(1); 00105 theParamAMax->SetDefaultValue(defLimits.GetAMax()); 00106 G4UIparameter * theParamZMin = GetParameter(2); 00107 theParamZMin->SetDefaultValue(defLimits.GetZMin()); 00108 G4UIparameter * theParamZMax = GetParameter(3); 00109 theParamZMax->SetDefaultValue(defLimits.GetZMax()); 00110 }
void G4UIcmdWithNucleusLimits::SetParameterName | ( | const char * | theNameAMin, | |
const char * | theNameAMax, | |||
const char * | theNameZMin, | |||
const char * | theNameZMax, | |||
G4bool | omittable, | |||
G4bool | currentAsDefault = true | |||
) |
Definition at line 78 of file G4UIcmdWithNucleusLimits.cc.
References G4UIparameter::SetCurrentAsDefault(), G4UIparameter::SetOmittable(), and G4UIparameter::SetParameterName().
00080 { 00081 G4UIparameter * theParamAMin = GetParameter(0); 00082 theParamAMin->SetParameterName(theNameAMin); 00083 theParamAMin->SetOmittable(omittable); 00084 theParamAMin->SetCurrentAsDefault(currentAsDefault); 00085 G4UIparameter * theParamAMax = GetParameter(1); 00086 theParamAMax->SetParameterName(theNameAMax); 00087 theParamAMax->SetOmittable(omittable); 00088 theParamAMax->SetCurrentAsDefault(currentAsDefault); 00089 G4UIparameter * theParamZMin = GetParameter(2); 00090 theParamZMin->SetParameterName(theNameZMin); 00091 theParamZMin->SetOmittable(omittable); 00092 theParamZMin->SetCurrentAsDefault(currentAsDefault); 00093 G4UIparameter * theParamZMax = GetParameter(3); 00094 theParamZMax->SetParameterName(theNameZMax); 00095 theParamZMax->SetOmittable(omittable); 00096 theParamZMax->SetCurrentAsDefault(currentAsDefault); 00097 }