]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliModuleConstructionMessenger.h
updated commands description
[u/mrichter/AliRoot.git] / AliGeant4 / AliModuleConstructionMessenger.h
1 // $Id$
2 // Category: geometry
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class AliModuleConstructionMessenger
7 // ------------------------------------
8 // Messenger class that defines command directory and
9 // commands for each AliModuleConstruction instance.
10
11 #ifndef ALI_MODULE_CONSTRUCTION_MESSENGER_H
12 #define ALI_MODULE_CONSTRUCTION_MESSENGER_H
13
14 #include <G4UImessenger.hh>
15 #include <globals.hh>
16
17 class AliModuleConstruction;
18
19 class G4UIdirectory;
20 class G4UIcmdWithABool;
21 class G4UIcmdWithAString;
22 class G4UIcmdWithoutParameter;
23 class G4LogicalVolume;
24
25 class AliModuleConstructionMessenger: public G4UImessenger
26 {
27   public:
28     AliModuleConstructionMessenger(
29        AliModuleConstruction* moduleConstruction, const G4String& moduleName);
30     // --> protected   
31     // AliModuleConstructionMessenger();
32     // AliModuleConstructionMessenger(
33     //       const AliModuleConstructionMessenger& right);
34     virtual ~AliModuleConstructionMessenger();
35
36     // methods
37     virtual void SetNewValue(G4UIcommand* command, G4String newValues);
38
39   protected:
40     AliModuleConstructionMessenger();
41     AliModuleConstructionMessenger(
42              const AliModuleConstructionMessenger& right);
43
44     // operators
45     AliModuleConstructionMessenger& operator=(
46              const AliModuleConstructionMessenger &right);
47              
48   private:
49     // data members
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  
57     
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
69 };
70
71 #endif //ALI_MODULE_CONSTRUCTION_MESSENGER_H
72