Geant4  10.01.p03
ExG4DetectorConstruction01Messenger Class Reference

Messenger class that defines commands for ExG4DetectorConstruction01. More...

#include <ExG4DetectorConstruction01Messenger.hh>

+ Inheritance diagram for ExG4DetectorConstruction01Messenger:
+ Collaboration diagram for ExG4DetectorConstruction01Messenger:

Public Member Functions

 ExG4DetectorConstruction01Messenger (ExG4DetectorConstruction01 *)
 
virtual ~ExG4DetectorConstruction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
 ExG4DetectorConstruction01Messenger (ExG4DetectorConstruction01 *)
 
virtual ~ExG4DetectorConstruction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
 ExG4DetectorConstruction01Messenger (ExG4DetectorConstruction01 *)
 
virtual ~ExG4DetectorConstruction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

ExG4DetectorConstruction01fDetectorConstruction
 
G4UIdirectoryfTopDirectory
 
G4UIdirectoryfDirectory
 
G4UIcmdWithAStringfSetMaterialCmd
 
G4UIcmdWith3VectorAndUnitfSetDimensionsCmd
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Messenger class that defines commands for ExG4DetectorConstruction01.

It implements commands:

  • /ExG4/det/setMaterialName name
  • /ExG4/det/setDimensions hx hy hz unit

Definition at line 51 of file ExG4DetectorConstruction01Messenger.hh.

Constructor & Destructor Documentation

ExG4DetectorConstruction01Messenger::ExG4DetectorConstruction01Messenger ( ExG4DetectorConstruction01 detectorConstruction)

Definition at line 41 of file ExG4DetectorConstruction01Messenger.cc.

References G4UIcommand::AvailableForStates(), fDirectory, fSetDimensionsCmd, fSetMaterialCmd, fTopDirectory, G4State_Idle, G4State_PreInit, G4UIcommand::SetGuidance(), G4UIcmdWithAString::SetParameterName(), and G4UIcmdWith3VectorAndUnit::SetParameterName().

+ Here is the call graph for this function:

ExG4DetectorConstruction01Messenger::~ExG4DetectorConstruction01Messenger ( )
virtual
ExG4DetectorConstruction01Messenger::ExG4DetectorConstruction01Messenger ( ExG4DetectorConstruction01 )
virtual ExG4DetectorConstruction01Messenger::~ExG4DetectorConstruction01Messenger ( )
virtual
ExG4DetectorConstruction01Messenger::ExG4DetectorConstruction01Messenger ( ExG4DetectorConstruction01 )
virtual ExG4DetectorConstruction01Messenger::~ExG4DetectorConstruction01Messenger ( )
virtual

Member Function Documentation

void ExG4DetectorConstruction01Messenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 85 of file ExG4DetectorConstruction01Messenger.cc.

References fDetectorConstruction, fSetDimensionsCmd, fSetMaterialCmd, G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), ExG4DetectorConstruction01::SetDimensions(), and ExG4DetectorConstruction01::SetMaterial().

+ Here is the call graph for this function:

virtual void ExG4DetectorConstruction01Messenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

virtual void ExG4DetectorConstruction01Messenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Member Data Documentation

ExG4DetectorConstruction01 * ExG4DetectorConstruction01Messenger::fDetectorConstruction
private

Definition at line 60 of file ExG4DetectorConstruction01Messenger.hh.

Referenced by SetNewValue().

G4UIdirectory * ExG4DetectorConstruction01Messenger::fDirectory
private
G4UIcmdWith3VectorAndUnit * ExG4DetectorConstruction01Messenger::fSetDimensionsCmd
private
G4UIcmdWithAString * ExG4DetectorConstruction01Messenger::fSetMaterialCmd
private
G4UIdirectory * ExG4DetectorConstruction01Messenger::fTopDirectory
private

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