G4UIcmdWithADouble Class Reference

#include <G4UIcmdWithADouble.hh>

Inheritance diagram for G4UIcmdWithADouble:

G4UIcommand

Public Member Functions

 G4UIcmdWithADouble (const char *theCommandPath, G4UImessenger *theMessenger)
void SetParameterName (const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue (G4double defVal)

Static Public Member Functions

static G4double GetNewDoubleValue (const char *paramString)

Detailed Description

Definition at line 41 of file G4UIcmdWithADouble.hh.


Constructor & Destructor Documentation

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

Definition at line 34 of file G4UIcmdWithADouble.cc.

00035 :G4UIcommand(theCommandPath,theMessenger)
00036 {
00037   G4UIparameter * dblParam = new G4UIparameter('d');
00038   SetParameter(dblParam);
00039 }


Member Function Documentation

G4double G4UIcmdWithADouble::GetNewDoubleValue ( const char *  paramString  )  [static]

Definition at line 41 of file G4UIcmdWithADouble.cc.

References G4UIcommand::ConvertToDouble().

Referenced by GFlashShowerModelMessenger::SetNewValue(), G4VisCommandViewerZoom::SetNewValue(), G4VisCommandSetLineWidth::SetNewValue(), G4QMessenger::SetNewValue(), G4OpticalPhysicsMessenger::SetNewValue(), G4ModelCmdApplyDouble< M >::SetNewValue(), G4HepRepMessenger::SetNewValue(), G4HadronicEPTestMessenger::SetNewValue(), G4GeometryMessenger::SetNewValue(), G4GeneralParticleSourceMessenger::SetNewValue(), G4ErrorMessenger::SetNewValue(), G4EnergyLossMessenger::SetNewValue(), and G4DecayTableMessenger::SetNewValue().

00042 {
00043   return ConvertToDouble(paramString);
00044 }

void G4UIcmdWithADouble::SetDefaultValue ( G4double  defVal  ) 

Definition at line 55 of file G4UIcmdWithADouble.cc.

References G4UIcommand::GetParameter(), and G4UIparameter::SetDefaultValue().

Referenced by G4QMessenger::Add(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4HadronicEPTestMessenger::G4HadronicEPTestMessenger(), G4VisCommandSetLineWidth::G4VisCommandSetLineWidth(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), and G4VisCommandsViewerSet::G4VisCommandsViewerSet().

00056 {
00057   G4UIparameter * theParam = GetParameter(0);
00058   theParam->SetDefaultValue(defVal);
00059 }

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

Definition at line 47 of file G4UIcmdWithADouble.cc.

References G4UIparameter::SetCurrentAsDefault(), G4UIparameter::SetOmittable(), and G4UIparameter::SetParameterName().

Referenced by G4QMessenger::Add(), G4DecayTableMessenger::G4DecayTableMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4HadronicEPTestMessenger::G4HadronicEPTestMessenger(), G4ModelCmdApplyDouble< M >::G4ModelCmdApplyDouble(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), G4VisCommandSetLineWidth::G4VisCommandSetLineWidth(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), and GFlashShowerModelMessenger::GFlashShowerModelMessenger().

00048 {
00049   G4UIparameter * theParam = GetParameter(0);
00050   theParam->SetParameterName(theName);
00051   theParam->SetOmittable(omittable);
00052   theParam->SetCurrentAsDefault(currentAsDefault);
00053 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:36 2013 for Geant4 by  doxygen 1.4.7