Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4UIcmdWithAString Class Reference

#include <G4UIcmdWithAString.hh>

+ Inheritance diagram for G4UIcmdWithAString:

Public Member Functions

 G4UIcmdWithAString (const char *theCommandPath, G4UImessenger *theMessenger)
 
void SetParameterName (const char *theName, G4bool omittable, G4bool currentAsDefault=false)
 
void SetCandidates (const char *candidateList)
 
void SetDefaultValue (const char *defVal)
 
- Public Member Functions inherited from G4UIcommand
 G4UIcommand ()
 
 G4UIcommand (const char *theCommandPath, G4UImessenger *theMessenger)
 
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
 

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)
 

Detailed Description

Definition at line 42 of file G4UIcmdWithAString.hh.

Constructor & Destructor Documentation

◆ G4UIcmdWithAString()

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

Definition at line 33 of file G4UIcmdWithAString.cc.

35:G4UIcommand(theCommandPath,theMessenger)
36{
37 G4UIparameter * strParam = new G4UIparameter('s');
38 SetParameter(strParam);
39}
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:147

Member Function Documentation

◆ SetCandidates()

void G4UIcmdWithAString::SetCandidates ( const char *  candidateList)

Definition at line 50 of file G4UIcmdWithAString.cc.

51{
52 G4UIparameter * theParam = GetParameter(0);
53 G4String canList = candidateList;
54 theParam->SetParameterCandidates(canList);
55}
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:140
void SetParameterCandidates(const char *theString)

Referenced by G4QMessenger::Add(), G4AdjointSimMessenger::G4AdjointSimMessenger(), G4EmMessenger::G4EmMessenger(), G4EmQMessenger::G4EmQMessenger(), G4GeneralParticleSourceMessenger::G4GeneralParticleSourceMessenger(), G4ModelCmdSetAuxPtsFillStyle< M >::G4ModelCmdSetAuxPtsFillStyle(), G4ModelCmdSetAuxPtsSizeType< M >::G4ModelCmdSetAuxPtsSizeType(), G4ModelCmdSetAuxPtsType< M >::G4ModelCmdSetAuxPtsType(), G4ModelCmdSetStepPtsFillStyle< M >::G4ModelCmdSetStepPtsFillStyle(), G4ModelCmdSetStepPtsSizeType< M >::G4ModelCmdSetStepPtsSizeType(), G4ModelCmdSetStepPtsType< M >::G4ModelCmdSetStepPtsType(), G4NistMessenger::G4NistMessenger(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4ParticleMessenger::G4ParticleMessenger(), G4PersistencyCenterMessenger::G4PersistencyCenterMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4VisCommandManagerMode< Manager >::G4VisCommandManagerMode(), G4VisCommandSetTextLayout::G4VisCommandSetTextLayout(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), G4ParticleMessenger::GetCurrentValue(), G4ProcessTableMessenger::GetCurrentValue(), G4UserPhysicsListMessenger::GetCurrentValue(), and G4ParticleMessenger::SetNewValue().

◆ SetDefaultValue()

◆ SetParameterName()

void G4UIcmdWithAString::SetParameterName ( const char *  theName,
G4bool  omittable,
G4bool  currentAsDefault = false 
)

Definition at line 41 of file G4UIcmdWithAString.cc.

43{
44 G4UIparameter * theParam = GetParameter(0);
45 theParam->SetParameterName(theName);
46 theParam->SetOmittable(omittable);
47 theParam->SetCurrentAsDefault(currentAsDefault);
48}
void SetOmittable(G4bool om)
void SetParameterName(const char *theName)
void SetCurrentAsDefault(G4bool val)

Referenced by G4QMessenger::Add(), G4AdjointSimMessenger::G4AdjointSimMessenger(), G4AnalysisMessenger::G4AnalysisMessenger(), G4DMmessenger::G4DMmessenger(), G4EmMessenger::G4EmMessenger(), G4EmQMessenger::G4EmQMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4FastSimulationMessenger::G4FastSimulationMessenger(), G4GDMLMessenger::G4GDMLMessenger(), G4GeneralParticleSourceMessenger::G4GeneralParticleSourceMessenger(), G4GMocrenMessenger::G4GMocrenMessenger(), G4INCLXXInterfaceMessenger::G4INCLXXInterfaceMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4NistMessenger::G4NistMessenger(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4ParticleMessenger::G4ParticleMessenger(), G4PersistencyCenterMessenger::G4PersistencyCenterMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4RadioactiveDecaymessenger::G4RadioactiveDecaymessenger(), G4RunMessenger::G4RunMessenger(), G4ScoringMessenger::G4ScoringMessenger(), G4SDmessenger::G4SDmessenger(), G4UIcontrolMessenger::G4UIcontrolMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList(), G4VisCommandListManagerSelect< Manager >::G4VisCommandListManagerSelect(), G4VisCommandManagerMode< Manager >::G4VisCommandManagerMode(), G4VisCommandModelCreate< Factory >::G4VisCommandModelCreate(), G4VisCommandSetTextLayout::G4VisCommandSetTextLayout(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), and G4VisCommandViewerDefaultStyle::G4VisCommandViewerDefaultStyle().


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