Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4UIcmdWithNucleusLimits Class Reference

#include <G4UIcmdWithNucleusLimits.hh>

Inheritance diagram for G4UIcmdWithNucleusLimits:
G4UIcommand

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)
 
- Public Member Functions inherited from G4UIcommand
 G4UIcommand ()
 
 G4UIcommand (const char *theCommandPath, G4UImessenger *theMessenger, G4bool tBB=true)
 
virtual ~G4UIcommand ()
 
G4int operator== (const G4UIcommand &right) const
 
G4int operator!= (const G4UIcommand &right) const
 
virtual G4int DoIt (G4String parameterList)
 
G4String GetCurrentValue ()
 
void AvailableForStates (G4ApplicationState s1)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4, G4ApplicationState s5)
 
G4bool IsAvailable ()
 
virtual void List ()
 
void SetRange (const char *rs)
 
const G4StringGetRange () const
 
G4int GetGuidanceEntries () const
 
const G4StringGetGuidanceLine (G4int i) const
 
const G4StringGetCommandPath () const
 
const G4StringGetCommandName () const
 
G4int GetParameterEntries () const
 
G4UIparameterGetParameter (G4int i) const
 
std::vector< G4ApplicationState > * GetStateList ()
 
G4UImessengerGetMessenger () const
 
void SetParameter (G4UIparameter *const newParameter)
 
void SetGuidance (const char *aGuidance)
 
const G4String GetTitle () const
 
void SetToBeBroadcasted (G4bool val)
 
G4bool ToBeBroadcasted () const
 
void SetToBeFlushed (G4bool val)
 
G4bool ToBeFlushed () const
 
void SetWorkerThreadOnly (G4bool val=true)
 
G4bool IsWorkerThreadOnly () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4UIcommand
static G4String ConvertToString (G4bool boolVal)
 
static G4String ConvertToString (G4int intValue)
 
static G4String ConvertToString (G4double doubleValue)
 
static G4String ConvertToString (G4double doubleValue, const char *unitName)
 
static G4String ConvertToString (G4ThreeVector vec)
 
static G4String ConvertToString (G4ThreeVector vec, const char *unitName)
 
static G4bool ConvertToBool (const char *st)
 
static G4int ConvertToInt (const char *st)
 
static G4double ConvertToDouble (const char *st)
 
static G4double ConvertToDimensionedDouble (const char *st)
 
static G4ThreeVector ConvertTo3Vector (const char *st)
 
static G4ThreeVector ConvertToDimensioned3Vector (const char *st)
 
static G4double ValueOf (const char *unitName)
 
static G4String CategoryOf (const char *unitName)
 
static G4String UnitsList (const char *unitCategory)
 
- Protected Member Functions inherited from G4UIcommand
G4int CheckNewValue (const char *newValue)
 
- Protected Attributes inherited from G4UIcommand
G4bool toBeBroadcasted
 
G4bool toBeFlushed
 
G4bool workerThreadOnly
 

Detailed Description

Definition at line 76 of file G4UIcmdWithNucleusLimits.hh.

Constructor & Destructor Documentation

G4UIcmdWithNucleusLimits::G4UIcmdWithNucleusLimits ( const char *  theCommandPath,
G4UImessenger theMessenger 
)

Definition at line 32 of file G4UIcmdWithNucleusLimits.cc.

33 :G4UIcommand(theCommandPath,theMessenger)
34 {
35  G4UIparameter * intParamAMin = new G4UIparameter('i');
36  SetParameter(intParamAMin);
37  G4UIparameter * intParamAMax = new G4UIparameter('i');
38  SetParameter(intParamAMax);
39  G4UIparameter * intParamZMin = new G4UIparameter('i');
40  SetParameter(intParamZMin);
41  G4UIparameter * intParamZMax = new G4UIparameter('i');
42  SetParameter(intParamZMax);
43 }
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:152
G4UIcmdWithNucleusLimits::~G4UIcmdWithNucleusLimits ( )

Definition at line 47 of file G4UIcmdWithNucleusLimits.cc.

48 {
49  ;
50 }

Member Function Documentation

G4String G4UIcmdWithNucleusLimits::ConvertToString ( G4NucleusLimits  nuclimit)

Definition at line 67 of file G4UIcmdWithNucleusLimits.cc.

References G4NucleusLimits::GetAMax(), G4NucleusLimits::GetAMin(), G4NucleusLimits::GetZMax(), and G4NucleusLimits::GetZMin().

68 {
69  std::ostringstream os;
70  os << defLimits.GetAMin() << " " << defLimits.GetAMax()
71  << defLimits.GetZMin() << " " << defLimits.GetZMax() ;
72  G4String vl = os.str();
73  return vl;
74 }
G4NucleusLimits G4UIcmdWithNucleusLimits::GetNewNucleusLimitsValue ( G4String  paramString)

Definition at line 54 of file G4UIcmdWithNucleusLimits.cc.

Referenced by G4RadioactiveDecaymessenger::SetNewValue().

55 {
56  G4int aMin;
57  G4int aMax;
58  G4int zMin;
59  G4int zMax;
60  std::istringstream is(paramString);
61  is >> aMin >> aMax >> zMin >> zMax;
62  return G4NucleusLimits(aMin,aMax,zMin,zMax);
63 }
int G4int
Definition: G4Types.hh:78
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().

101 {
102  G4UIparameter * theParamAMin = GetParameter(0);
103  theParamAMin->SetDefaultValue(defLimits.GetAMin());
104  G4UIparameter * theParamAMax = GetParameter(1);
105  theParamAMax->SetDefaultValue(defLimits.GetAMax());
106  G4UIparameter * theParamZMin = GetParameter(2);
107  theParamZMin->SetDefaultValue(defLimits.GetZMin());
108  G4UIparameter * theParamZMax = GetParameter(3);
109  theParamZMax->SetDefaultValue(defLimits.GetZMax());
110 }
void SetDefaultValue(const char *theDefaultValue)
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:145
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().

80 {
81  G4UIparameter * theParamAMin = GetParameter(0);
82  theParamAMin->SetParameterName(theNameAMin);
83  theParamAMin->SetOmittable(omittable);
84  theParamAMin->SetCurrentAsDefault(currentAsDefault);
85  G4UIparameter * theParamAMax = GetParameter(1);
86  theParamAMax->SetParameterName(theNameAMax);
87  theParamAMax->SetOmittable(omittable);
88  theParamAMax->SetCurrentAsDefault(currentAsDefault);
89  G4UIparameter * theParamZMin = GetParameter(2);
90  theParamZMin->SetParameterName(theNameZMin);
91  theParamZMin->SetOmittable(omittable);
92  theParamZMin->SetCurrentAsDefault(currentAsDefault);
93  G4UIparameter * theParamZMax = GetParameter(3);
94  theParamZMax->SetParameterName(theNameZMax);
95  theParamZMax->SetOmittable(omittable);
96  theParamZMax->SetCurrentAsDefault(currentAsDefault);
97 }
void SetOmittable(G4bool om)
void SetParameterName(const char *theName)
void SetCurrentAsDefault(G4bool val)
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:145

The documentation for this class was generated from the following files: