27#include <CLHEP/Units/SystemOfUnits.h>
28#include <G4ApplicationState.hh>
29#include <G4ThreeVector.hh>
31#include <G4UIcommand.hh>
32#include <G4UImessenger.hh>
33#include <G4UIparameter.hh>
36#include "G4UIcmdWithAnInteger.hh"
37#include "G4UIcmdWithoutParameter.hh"
38#include "G4UIcmdWithABool.hh"
39#include "G4UIdirectory.hh"
46 , fParallel(aParallel)
49 fExampleDir->SetGuidance(
"UI commands specific to this example");
52 fParallelDir->SetGuidance(
"Parallel construction UI commands");
55 fPrintCmd->SetGuidance(
"Print current settings.");
65 fNbRowsCmd->SetGuidance(
"Set number of rows.");
68 fNbRowsCmd->AvailableForStates(G4State_PreInit);
G4int GetNbOfRows() const
Get number of rows.
void SetNbOfSlices(G4int aNumber)
Set number of slices.
void SetNbOfRows(G4int aNumber)
Set number of rows.
G4int GetNbOfSlices() const
Get number of slices.
G4UIcmdWithAnInteger * fNbSlicesCmd
Command to set the number of slices.
Par04ParallelMessenger(Par04ParallelFullWorld *)
Par04ParallelFullWorld * fParallel
Parallel world to setup.
virtual void SetNewValue(G4UIcommand *, G4String) final
Invokes appropriate methods based on the typed command.
G4UIdirectory * fParallelDir
Command to set the directory for parallel settings /Par04/parallel.
~Par04ParallelMessenger()
G4UIcmdWithoutParameter * fPrintCmd
Command printing current settings.
G4UIcmdWithAnInteger * fNbRowsCmd
Command to set the number of rows.
G4UIdirectory * fExampleDir
Command to set the directory common to all messengers in this example /Par04.
virtual G4String GetCurrentValue(G4UIcommand *) final
Retrieves the current settings.