4 // Author: I. Hrivnacova
6 // Class AliModuleConstructionMessenger
7 // ------------------------------------
8 // Messenger class that defines command directory and
9 // commands for each AliModuleConstruction instance.
11 #ifndef ALI_MODULE_CONSTRUCTION_MESSENGER_H
12 #define ALI_MODULE_CONSTRUCTION_MESSENGER_H
14 #include <G4UImessenger.hh>
17 class AliModuleConstruction;
20 class G4UIcmdWithABool;
21 class G4UIcmdWithAString;
22 class G4UIcmdWithoutParameter;
23 class G4LogicalVolume;
25 class AliModuleConstructionMessenger: public G4UImessenger
28 AliModuleConstructionMessenger(
29 AliModuleConstruction* moduleConstruction, const G4String& moduleName);
31 // AliModuleConstructionMessenger();
32 // AliModuleConstructionMessenger(
33 // const AliModuleConstructionMessenger& right);
34 virtual ~AliModuleConstructionMessenger();
37 virtual void SetNewValue(G4UIcommand* command, G4String newValues);
40 AliModuleConstructionMessenger();
41 AliModuleConstructionMessenger(
42 const AliModuleConstructionMessenger& right);
45 AliModuleConstructionMessenger& operator=(
46 const AliModuleConstructionMessenger &right);
50 AliModuleConstruction* fModuleConstruction; //associated class
51 G4UIdirectory* fModuleDirectory; //command directory
52 G4UIcmdWithAString* fSetFrameCmd; //command: setFrame
53 G4UIcmdWithoutParameter* fListCmd; //command: list
54 G4UIcmdWithoutParameter* fListLongCmd; //command: listLong
55 G4UIcmdWithAString* fListDaughtersCmd; //command: listDaughters
56 G4UIcmdWithAString* fListLongDaughtersCmd; //command: listLongDaughters
58 #ifdef ALICE_VISUALIZE
59 // commands data members
60 G4LogicalVolume* fCurrentVolume; //current logical volume
61 G4UIcmdWithAString* fSetCurrentLVCmd; //command: setVolume
62 G4UIcmdWithABool* fSetDetVisibilityCmd; //command: setDetVisibility
63 G4UIcmdWithABool* fSetLVTreeVisibilityCmd; //command: setLVTreeVisibility
64 G4UIcmdWithABool* fSetVolVisibilityCmd; //command: setVolVisibility
65 G4UIcmdWithAString* fSetDetColourCmd; //command: setDetColour
66 G4UIcmdWithAString* fSetLVTreeColourCmd; //command: setLVTreeColour
67 G4UIcmdWithAString* fSetVolColourCmd; //command: setVolColour
68 #endif //ALICE_VISUALIZE
71 #endif //ALI_MODULE_CONSTRUCTION_MESSENGER_H