44 fDetectorConstruction(detectorConstruction),
47 fSetBoxMaterialCmd(0),
48 fSetWorldMaterialCmd(0),
49 fSetBoxDimensionsCmd(0),
50 fSetWorldSizeFactorCmd(0)
54 fTopDirectory->
SetGuidance(
"UI commands of common example classes");
61 fSetBoxMaterialCmd->
SetGuidance(
"Select material of the box.");
67 fSetWorldMaterialCmd->
SetGuidance(
"Select material of the world.");
73 fSetBoxDimensionsCmd->
SetGuidance(
"Set box dimensions (in half lentgh).");
75 "BoxDimensionsHx",
"BoxDimensionsHy",
"BoxDimensionsHz",
80 fSetWorldSizeFactorCmd
83 "Set the multiplication factor from box dimensions to world dimensions.");
85 fSetWorldSizeFactorCmd->
SetRange(
"WorldSizeFactor >= 1");
95 delete fSetBoxMaterialCmd;
96 delete fSetWorldMaterialCmd;
97 delete fSetBoxDimensionsCmd;
98 delete fSetWorldSizeFactorCmd;
106 if( command == fSetBoxMaterialCmd ) {
109 else if( command == fSetWorldMaterialCmd ) {
112 else if( command == fSetBoxDimensionsCmd ) {
115 fDetectorConstruction
117 newDimensions.
x(), newDimensions.
y(), newDimensions.
z());
119 else if ( command == fSetWorldSizeFactorCmd ) {
120 fDetectorConstruction
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
void SetWorldMaterial(const G4String &materialName)
void SetBoxDimensions(G4double hx, G4double hy, G4double hz)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
Definition of the ExG4DetectorConstruction02 class.
Simple detector construction with a box volume placed in a world.
static G4double GetNewDoubleValue(const char *paramString)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetBoxMaterial(const G4String &materialName)
Definition of the ExG4DetectorConstruction02Messenger class.
void AvailableForStates(G4ApplicationState s1)
virtual ~ExG4DetectorConstruction02Messenger()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetWorldSizeFactor(G4double factor)
ExG4DetectorConstruction02Messenger(ExG4DetectorConstruction02 *)